Add multi-MCP server support to Copilot chat#715
Draft
Mikearaya wants to merge 16 commits into
Draft
Conversation
…e css in kitchensink example
f02e1e1 to
ee78c68
Compare
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.
Copilot can now connect to additional MCP servers beyond the built-in Unchained one. Users can add, remove, and toggle external MCP servers from a new settings panel in the Copilot header — the engine handles all connections server-side, so there are no API keys or CORS issues on the frontend.
On the engine side, both Fastify and Express chat handlers now accept an optional
mcpServersarray in the request body. Tools from all connected servers are aggregated (prefixed with the server name when multiple are active), and resources are merged into the system prompt. The connection logic was extracted into a sharedconnectMCPServershelper to keep both handlers clean.The built-in Unchained MCP server is always connected — extra servers just augment what's available to the AI.