Skip to content

Commit 7e6c9c8

Browse files
nhu-doCopilot
andauthored
Add example to configure the GitHub MCP in CCA with wider access (#58151)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 138075e commit 7e6c9c8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,23 @@ If you want to allow {% data variables.product.prodname_copilot_short %} to acce
325325
{% data reusables.repositories.navigate-to-repo %}
326326
{% data reusables.repositories.sidebar-settings %}
327327
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **{% data variables.copilot.copilot_coding_agent_short_cap_c %}**.
328-
1. Add your configuration in the **MCP configuration** section.
328+
1. Add your configuration in the **MCP configuration** section. For example, you can add the following:
329+
330+
```javascript copy
331+
// If you copy and paste this example, you will need to remove the comments prefixed with `//`, which are not valid JSON.
332+
{
333+
"mcpServers": {
334+
"github-mcp-server": {
335+
"type": "http",
336+
// Remove "/readonly" to enable wider access to all tools.
337+
// Then, use the "tools" key to specify the subset of tools you'd like to include.
338+
"url": "https://api.githubcopilot.com/mcp/readonly",
339+
"tools": ["*"]
340+
}
341+
}
342+
}
343+
```
344+
329345
1. Click **Save**.
330346
{% data reusables.actions.sidebar-environment %}
331347
1. Click the `copilot` environment.

0 commit comments

Comments
 (0)