Skip to content

feat: OAuth 2.1 authorization flow for MCP servers#12157

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

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
@DushesS01 DushesS01 closed this Apr 21, 2026
@github-project-automation github-project-automation Bot moved this from New to Done in Roo Code Roadmap Apr 21, 2026
@DushesS01 DushesS01 deleted the feat/mcp-oauth-auth branch April 21, 2026 00:46
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