Add GitHub Copilot CLI as a supported MCP client#5287
Merged
Conversation
Copilot CLI reads MCP server entries from ~/.copilot/mcp-config.json using the standard mcpServers map. Register it with type "http" for streamable HTTP and SSE for the legacy transport, matching the behaviour we already use for VS Code and Cursor. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5287 +/- ##
==========================================
+ Coverage 68.22% 68.37% +0.14%
==========================================
Files 618 619 +1
Lines 63215 63318 +103
==========================================
+ Hits 43131 43291 +160
+ Misses 16861 16794 -67
- Partials 3223 3233 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rdimitrov
approved these changes
May 15, 2026
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
GitHub Copilot CLI supports MCP servers via
~/.copilot/mcp-config.jsonusing the standardmcpServersmap format that ToolHive already handles. Adding it here means users can runthv client register copilot-cliand have ToolHive-managed servers wired up automatically, alongside the other 27 supported clients.The Copilot CLI docs list four transport
typevalues (local,stdio,http,sse). Since ToolHive always proxies servers as streamable HTTP, registered entries get"type": "http"(matching the VS Code / Cursor pattern), with"sse"reserved for the legacy SSE transport.Type of change
Test plan
task lint-fix— cleango test ./pkg/client/...— passestask docsregeneratesdocs/cli/thv_client_register.md,thv_client_remove.md, and the OpenAPI spec withcopilot-clilistedthv client register copilot-cliwrites a valid entry to~/.copilot/mcp-config.jsonand Copilot CLI picks it upDoes this introduce a user-facing change?
Yes.
copilot-cliis now a valid argument tothv client register,thv client remove, and shows up inthv client status.