What this thread does
Do first: prepare the mcpServers object required by the repository MCP configuration.
When you need it
A repository administrator can configure external tools for Copilot cloud agent, automations, and Copilot code review. The repository-level configuration is shared across these consumers.
Steps
1. On GitHub, open the repository's main page and click Settings. In the sidebar under Code, planning, and automation, click Copilot, then MCP servers. 2. In MCP configuration, enter JSON with an mcpServers object. This is the page's Cloudflare example:
{
"mcpServers": {
"cloudflare": {
"type": "sse",
"url": "https://docs.mcp.cloudflare.com/sse",
"tools": ["*"]
}
}
}
The tools and type keys are required. "*" enables all tools; the page recommends allowlisting specific read-only tools instead when choosing your own server configuration. 3. Click Save MCP configuration.
Check it worked
The page says saving validates the configuration's syntax. Syntax validation is the confirmation provided for these steps.
Limits
The page does not name a version. Cloud agent and code review support MCP tools, without resources or prompts. Configured tools can be used autonomously without approval. Remote servers using OAuth are unsupported for repository settings and custom agent profiles. Code review requires annotations.readOnlyHint to be true in each tool's tools/list response. Automations can use only tools selected when creating or editing the automation.
Not for: configuring MCP access inside VS Code; see github-copilot-configure-mcp-server-access.
Sources
- Configure MCP servers for your repository, GitHub Copilot documentation, read 2026-11-24: "Your configuration will be validated to ensure proper syntax."
Checked
2026-11-24; read <https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp>; no command was run.
Started from a post by @GitHub, packaged by the editor. Original post