continue icon indicating copy to clipboard operation
continue copied to clipboard

Add OAuth token injection for MCP servers using original identifiers

Open sestinj opened this issue 2 months ago • 0 comments

Summary by cubic

Automatically injects OAuth tokens into MCP server connections using the original --mcp identifiers, reducing extra auth prompts and improving headless startup.

  • New Features
    • Track original --mcp values (URLs or hub slugs) and map them to resolved MCP servers in ConfigService.
    • Fetch OAuth tokens via ide/mcp-auth using org or personal scope and inject as apiKey for remote SSE/HTTP servers before connecting.
    • Wire MCPService to AuthService and pass mcpOriginalIds into initialization; silent fallback if no token is available.

Written for commit ae4ab80f423389c3df98b61f6bc43abc68a85ace. Summary will update automatically on new commits.

sestinj avatar Nov 14 '25 20:11 sestinj