Expand description
File-backed MCP credential provider (v2.2).
Implements McpCredentialProvider using OAuth2 client_credentials.
For each server with an OAuthConfig in mcp.json, the provider
POSTs to token_url to exchange client_id/client_secret for
an access token, caches it in ~/.config/oxicode/mcp-tokens.json, and
returns it on McpCredentialProvider::access_token. Tokens are
refreshed when missing or expired (based on expires_in).
Browser-based authorization-code flow (with a local callback server)
is not implemented in v2.2 — clients without a public client_id
/ client_secret (e.g. MCP servers that require user-interactive
consent) cannot be auto-authenticated. Use the server’s own hosted
login and configure oauth to a machine-client for now.
Trigger a manual refresh via /mcp reauth <server> in the TUI.
Structs§
- File
McpCredential Provider - File-backed credential provider. Constructed once in the bootstrap
and shared with
McpManagerviaArc<dyn McpCredentialProvider>.