Skip to content

Commit 7683cd4

Browse files
CopilotBestraam-stead
authored
Update Copilot Spaces docs with MCP server configuration for X-MCP-Toolsets header (#58707)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Bestra <[email protected]> Co-authored-by: Chris Westra <[email protected]> Co-authored-by: Anne-Marie <[email protected]>
1 parent d6244e1 commit 7683cd4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

content/copilot/how-tos/provide-context/use-copilot-spaces/use-copilot-spaces.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,28 @@ Once you've accessed space context from your IDE:
3838

3939
### Prerequisites
4040

41-
To use {% data variables.copilot.copilot_spaces_short %} in your IDE, you need to install the {% data variables.product.github %} MCP server. For setup instructions, see [AUTOTITLE](/copilot/how-tos/provide-context/use-mcp/use-the-github-mcp-server).
41+
To use {% data variables.copilot.copilot_spaces_short %} in your IDE, you need to:
42+
43+
* Set up the remote {% data variables.product.github %} MCP server for your IDE. For more information, see [AUTOTITLE](/copilot/how-tos/provide-context/use-mcp/set-up-the-github-mcp-server) and [Remote {% data variables.product.github %} MCP Server](https://github.com/github/github-mcp-server/blob/main/docs/remote-server.md) in the {% data variables.product.github %} MCP server documentation.
44+
* Configure the set up of the remote {% data variables.product.github %} MCP server so that the {% data variables.copilot.copilot_spaces_short %} toolset is enabled.
45+
46+
The {% data variables.copilot.copilot_spaces_short %} toolset is not included in the default configuration, so you must explicitly enable it using the `X-MCP-Toolsets` header. The following example configuration enables both the default tools and {% data variables.copilot.copilot_spaces_short %}:
47+
48+
```json copy
49+
{
50+
"servers": {
51+
"github": {
52+
"type": "http",
53+
"url": "https://api.githubcopilot.com/mcp/",
54+
"headers": {
55+
"X-MCP-Toolsets": "default,copilot_spaces"
56+
}
57+
}
58+
}
59+
}
60+
```
61+
62+
Alternatively, you can use the dedicated {% data variables.copilot.copilot_spaces_short %} toolset URL: `https://api.githubcopilot.com/mcp/x/copilot_spaces`. Note that this configuration provides _only_ {% data variables.copilot.copilot_spaces_short %} tools, without other default {% data variables.product.github %} MCP server functionality.
4263

4364
### Accessing space context from your IDE
4465

0 commit comments

Comments
 (0)