Skip to content

feat: OAuth 2.1 authorization flow for MCP servers#12157

Open
DushesS01 wants to merge 2 commits intoRooCodeInc:mainfrom
DushesS01:feat/mcp-oauth-auth
Open

feat: OAuth 2.1 authorization flow for MCP servers#12157
DushesS01 wants to merge 2 commits intoRooCodeInc:mainfrom
DushesS01:feat/mcp-oauth-auth

Conversation

@DushesS01
Copy link
Copy Markdown

@DushesS01 DushesS01 commented Apr 20, 2026

…matic OAuth 2.1 authorization flow when Roo connects\nto protected HTTP-based MCP servers, leveraging the existing\n@modelcontextprotocol/sdk v1.29.0 OAuth client orchestrator.\n\nNew file:\n- src/services/mcp/McpOAuthProvider.ts — Implements the SDK's\n OAuthClientProvider interface as a VS Code adapter using\n SecretStorage for per-server token persistence, localhost\n callback server for authorization code flow, and\n vscode.env.openExternal() for browser launch.\n\nModified files:\n- packages/types/src/mcp.ts — Added authStatus field to McpServer\n- src/services/mcp/McpHub.ts — Wired authProvider into HTTP transport\n- src/activate/handleUri.ts — Added /mcp-auth/callback route\n- webview-ui/src/components/mcp/McpView.tsx — Auth status display\n- i18n: OAuth-related keys in all 18 locales (backend + frontend)\n\nTests:\n- src/services/mcp/__tests__/McpOAuthProvider.spec.ts — 35 unit tests
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Enhancement New feature or request labels Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants