Context
Part of #5016 (RFC: stacklok/toolhive-rfcs#70). Depends on #5028 (token lifecycle) and #5029 (proxy).
Scope
Registry interface:
Detect() bool, Apply(config) error, Revert() error interface for tool adapters
- Auto-discovery registry — adding a new tool requires only implementing the interface and registering; no changes to setup/teardown orchestration
Token helper (direct) mode tools:
- Claude Code — patches
apiKeyHelper and base URL in ~/.claude/settings.json
- Gemini CLI — patches token command and base URL in Gemini CLI's config
Proxy mode tools:
- Cursor — patches base URL and placeholder API key in Cursor's config
- VS Code (GitHub Copilot) — patches base URL and placeholder API key in VS Code's settings
- Apple Xcode — patches base URL and placeholder API key in Xcode's config
Acceptance Criteria
Dependencies
References
Context
Part of #5016 (RFC: stacklok/toolhive-rfcs#70). Depends on #5028 (token lifecycle) and #5029 (proxy).
Scope
Registry interface:
Detect() bool,Apply(config) error,Revert() errorinterface for tool adaptersToken helper (direct) mode tools:
apiKeyHelperand base URL in~/.claude/settings.jsonProxy mode tools:
Acceptance Criteria
apiKeyHelperand base URL in~/.claude/settings.jsonDetect/Apply/Revertand registering — no changes to orchestration, proxy, or token sourceDependencies
References