Skip to content

Commit daaa97a

Browse files
belaltaher8Copilotam-stead
authored
Clarify MCP server toolset configuration (#58666)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com>
1 parent bf60e5c commit daaa97a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

content/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,21 @@ If you want to allow {% data variables.product.prodname_copilot_short %} to acce
310310
"github-mcp-server": {
311311
"type": "http",
312312
// Remove "/readonly" to enable wider access to all tools.
313-
// Then, use the "tools" key to specify the subset of tools you'd like to include.
313+
// Then, use the "X-MCP-Toolsets" header to specify which toolsets you'd like to include.
314+
// Use the "tools" field to select individual tools from the toolsets.
314315
"url": "https://api.githubcopilot.com/mcp/readonly",
315-
"tools": ["*"]
316+
"tools": ["*"],
317+
"headers": {
318+
"X-MCP-Toolsets": "repos,issues,users,pull_requests,code_security,secret_protection,actions,web_search"
319+
}
316320
}
317321
}
318322
}
319323
```
320324

325+
326+
For more information on toolsets, refer to the [README](https://github.com/github/github-mcp-server?tab=readme-ov-file#available-toolsets) in the {% data variables.product.github %} Remote MCP Server documentation.
327+
321328
1. Click **Save**.
322329
{% data reusables.actions.sidebar-environment %}
323330
1. Click the `copilot` environment.

0 commit comments

Comments
 (0)