豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

feat: enhance MCP gateway handling to support multiple servers and improve error logging#4470

Merged
DonJayamanne merged 5 commits intomainfrom
don/fellow-tern
Mar 18, 2026
Merged

feat: enhance MCP gateway handling to support multiple servers and improve error logging#4470
DonJayamanne merged 5 commits intomainfrom
don/fellow-tern

Conversation

@DonJayamanne
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the MCP gateway surface to support multiple concurrently-exposed MCP servers (each with its own endpoint) and wires that into Copilot CLI/Claude session flows, along with some related logging/config changes.

Changes:

  • Update MCP gateway API usage from single address to servers[] (+ onDidChangeServers) and adjust MCP service wrapper/tests accordingly.
  • Update Copilot CLI and Claude Code session to generate per-server MCP configs from the gateway’s servers list.
  • Flip the default for CLI MCP forwarding to enabled.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/platform/mcp/vscode/test/mcpService.spec.ts Updates mocks/assertions to validate servers instead of address.
src/platform/mcp/vscode/mcpServiceImpl.ts Wraps McpGateway with servers/onDidChangeServers passthrough.
src/platform/configuration/common/configurationService.ts Changes default for chat.cli.mcp.enabled migration setting to true.
src/extension/vscode.proposed.mcpServerDefinitions.d.ts Redefines McpGateway to expose multiple McpGatewayServers and change event.
src/extension/chatSessions/copilotcli/node/mcpHandler.ts Builds CLI MCP config entries per gateway server.
src/extension/chatSessions/claude/node/claudeCodeAgent.ts Builds Claude SDK mcpServers entries per gateway server; adds try/catch logging.
package.json Sets github.copilot.chat.cli.mcp.enabled default to true.

Comment thread src/platform/configuration/common/configurationService.ts
Comment thread package.json
Comment thread src/extension/chatSessions/copilotcli/node/mcpHandler.ts
Comment thread src/extension/chatSessions/claude/node/claudeCodeAgent.ts
Comment thread src/extension/chatSessions/claude/node/claudeCodeAgent.ts Outdated
DonJayamanne and others added 4 commits March 18, 2026 11:52
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@DonJayamanne DonJayamanne marked this pull request as ready for review March 18, 2026 10:13
@DonJayamanne DonJayamanne enabled auto-merge March 18, 2026 10:13
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 18, 2026
@DonJayamanne DonJayamanne added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit ed2aef2 Mar 18, 2026
19 checks passed
@DonJayamanne DonJayamanne deleted the don/fellow-tern branch March 18, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants