You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -325,7 +325,23 @@ If you want to allow {% data variables.product.prodname_copilot_short %} to acce
325
325
{% data reusables.repositories.navigate-to-repo %}
326
326
{% data reusables.repositories.sidebar-settings %}
327
327
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.
0 commit comments