v3.10.0 β OAuth for remote MCP servers
Completes Remote MCP + OAuth.
Added
- OAuth 2.1 login for remote MCP servers. Two flows:
- Interactive β opens your browser (authorization-code + PKCE), with server discovery and dynamic client registration:
/mcp add linear https://mcp.linear.app/mcp --oauth - Machine-to-machine (no browser):
/mcp add api https://example.com/mcp --oauth-client-id env:CID --oauth-client-secret env:CSEC - Optional
--scope "read write".
- Interactive β opens your browser (authorization-code + PKCE), with server discovery and dynamic client registration:
- Token caching + auto-refresh β cached under
~/.kodiqa/oauth/(0600), reused across sessions, refreshed before expiry and transparently on a401.
Tests
- Full coverage of PKCE, discovery, dynamic registration, the callback server, token exchange/refresh, both grants, a deterministic interactive end-to-end (real callback server + fake browser), and 401 refresh-and-retry. 409 total; ruff + CI green.
Only the live browser login is user-verified; everything around it is tested.