feat: OAuth 2.1 authorization flow for MCP servers#12157
Open
DushesS01 wants to merge 2 commits intoRooCodeInc:mainfrom
Open
feat: OAuth 2.1 authorization flow for MCP servers#12157DushesS01 wants to merge 2 commits intoRooCodeInc:mainfrom
DushesS01 wants to merge 2 commits intoRooCodeInc:mainfrom
Conversation
…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
… and SDK annotations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Interactively review PR in Roo Code Cloud