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/concepts/context/mcp.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,21 +36,25 @@ category:
36
36
37
37
The Model Context Protocol (MCP) is an open standard that defines how applications share context with large language models (LLMs). MCP provides a standardized way to connect AI models to different data sources and tools, enabling them to work together more effectively.
38
38
39
-
You can use MCP to extend the capabilities of {% data variables.copilot.copilot_chat_short %} by integrating it with a wide range of existing tools and services. For example, the {% data variables.product.github %} MCP server allows you to use {% data variables.copilot.copilot_chat_short %} in your IDE to perform tasks on {% data variables.product.github %}. You can also use MCP to create new tools and services that work with {% data variables.copilot.copilot_chat_short %}, allowing you to customize and enhance your experience.
39
+
You can use MCP to extend the capabilities of {% data variables.product.prodname_copilot %} by integrating it with a wide range of existing tools and services. MCP works across all major {% data variables.product.prodname_copilot_short %} surfaces—whether you're working in an IDE, using {% data variables.copilot.copilot_cli %}, or delegating tasks to the coding agent on {% data variables.product.prodname_dotcom_the_website %}. You can also use MCP to create new tools and services that work with {% data variables.product.prodname_copilot_short %}, allowing you to customize and enhance your experience.
40
40
41
-
For more information on MCP, see [the official MCP documentation](https://modelcontextprotocol.io/introduction). For information on currently available MCP servers, see [the MCP servers repository](https://github.com/modelcontextprotocol/servers/tree/main).
41
+
For more information on MCP, see [the official MCP documentation](https://modelcontextprotocol.io/introduction). For a curated list of MCP servers from partners and the community, see the [{% data variables.product.github %} MCP Registry](https://github.com/mcp).
42
42
43
-
To learn how to configure and use MCP servers with {% data variables.copilot.copilot_chat_short %}, see [AUTOTITLE](/copilot/how-tos/context/model-context-protocol/extending-copilot-chat-with-mcp).
43
+
To learn how to configure and use MCP servers, see:
44
+
45
+
*[AUTOTITLE](/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp) for {% data variables.copilot.copilot_chat_short %} in your IDE
46
+
*[AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers) for {% data variables.copilot.copilot_cli_short %}
47
+
*[AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp) for {% data variables.copilot.copilot_coding_agent %}
44
48
45
49
{% data reusables.copilot.mcp.mcp-policy %}
46
50
47
51
## Availability
48
52
49
-
There is currently broad support for local MCP servers in clients such as {% data variables.product.prodname_vscode %}, JetBrains IDEs, XCode, and others.
50
-
51
-
Support for remote MCP servers is growing, with editors like {% data variables.product.prodname_vscode %}, {% data variables.product.prodname_vs %}, JetBrains IDEs, Xcode, Eclipse, and Cursor providing this functionality with OAuth or PAT, and Windsurf supporting PAT only.
53
+
MCP is supported across the following clients:
52
54
53
-
To find out if your preferred editor supports remote MCP servers, check the documentation for your specific editor.
55
+
***IDEs**: There is broad support for local MCP servers in clients such as {% data variables.product.prodname_vscode %}, JetBrains IDEs, Xcode, and others. Support for remote MCP servers is growing, with editors like {% data variables.product.prodname_vscode %}, {% data variables.product.prodname_vs %}, JetBrains IDEs, Xcode, Eclipse, Cursor, and Windsurf providing this functionality with OAuth or PAT. To find out if your preferred editor supports remote MCP servers, check the documentation for your specific editor.
56
+
***{% data variables.copilot.copilot_cli_short %}**: {% data variables.copilot.copilot_cli %} supports both local and remote MCP servers. The {% data variables.product.github %} MCP server is built in and available without additional configuration.
57
+
***{% data variables.copilot.copilot_coding_agent %}**: {% data variables.copilot.copilot_coding_agent %} supports MCP servers configured at the repository level. The {% data variables.product.github %} MCP server and the Playwright MCP server are configured by default.
54
58
55
59
## About the {% data variables.product.github %} MCP server
56
60
@@ -97,8 +101,10 @@ The {% data variables.product.github %} MCP Registry is a curated list of MCP se
*[AUTOTITLE](/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp)—Add MCP servers to {% data variables.copilot.copilot_chat_short %} in your IDE
105
+
*[AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers)—Add MCP servers to {% data variables.copilot.copilot_cli_short %}
106
+
*[AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp)—Add MCP servers to {% data variables.copilot.copilot_coding_agent %}
107
+
*[AUTOTITLE](/copilot/how-tos/provide-context/use-mcp/set-up-the-github-mcp-server)—Set up the {% data variables.product.github %} MCP server
108
+
*[AUTOTITLE](/copilot/how-tos/provide-context/use-mcp/use-the-github-mcp-server)—Use the {% data variables.product.github %} MCP server
Copy file name to clipboardExpand all lines: content/copilot/how-tos/provide-context/use-copilot-spaces/use-copilot-spaces.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,9 @@ For more detailed information on using the {% data variables.product.github %} M
65
65
66
66
Note that {% data variables.copilot.copilot_spaces_short %} can only be used in agent mode in your IDE, since spaces are accessed via the {% data variables.product.github %} MCP server.
67
67
68
-
1. In your IDE, open {% data variables.copilot.copilot_chat_short %} and select **Agent** from the mode dropdown or select the **Agent** tab.
69
-
* To confirm that the {% data variables.copilot.copilot_spaces_short %} tools are enabled, in the {% data variables.copilot.copilot_chat_short %} box, click the tools icon. In the dropdown, expand the list of available tools for **MCP Server: github**, and confirm that the `get_copilot_space` and `list_copilot_spaces` tools are enabled.
68
+
1. In your IDE, open {% data variables.copilot.copilot_chat_short %} and select **Agent** from the agent dropdown menu.
69
+
* To confirm that the {% data variables.copilot.copilot_spaces_short %} tools are enabled, in the {% data variables.copilot.copilot_chat_short %} box, click the tools icon. In the tools list, expand the {% data variables.product.github %} MCP server entry and confirm that the `get_copilot_space` and `list_copilot_spaces` tools are listed and enabled.
70
+
* If you don't see the tools listed, check that you have completed the prerequisites above, including enabling the `copilot_spaces` toolset in your {% data variables.product.github %} MCP server configuration.
70
71
1. In the {% data variables.copilot.copilot_chat_short %} box, enter a prompt that references the space that you want to use as context. If you know the exact name of the space and the name of the user or organization that owns the space, you can provide that. Otherwise, {% data variables.product.prodname_copilot_short %} will automatically use the `list_copilot_spaces` tool to find spaces that match the name or text you provide and access the context from those spaces.
71
72
72
73
For example, you could use either of these two prompts:
Copy file name to clipboardExpand all lines: content/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ category:
21
21
22
22
The Model Context Protocol (MCP) is an open standard that defines how applications share context with large language models (LLMs). For an overview of MCP, see [AUTOTITLE](/copilot/concepts/about-mcp).
23
23
24
-
For information on currently available MCP servers, see [the MCP servers repository](https://github.com/modelcontextprotocol/servers/tree/main).
24
+
For a curated list of MCP servers from partners and the community, see the [{% data variables.product.github %} MCP Registry](https://github.com/mcp).
25
25
26
26
{% data reusables.copilot.mcp.mcp-policy %}
27
27
@@ -45,11 +45,10 @@ MCP servers can be configured manually in a configuration file, or through the {
45
45
Only MCP servers listed in the {% data variables.product.github %} MCP Registry can be added through the registry. Other servers can be configured manually. See [Configuring MCP servers manually](#configuring-mcp-servers-manually).
46
46
47
47
1. In {% data variables.product.prodname_vscode %}, open the extensions panel by clicking the extensions icon in the sidebar or pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>X</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>X</kbd> (Mac).
48
-
1. In the extensions search bar, click the filter icon and select **MCP Registry** from the dropdown.
49
-
1. If it is your first time using the MCP Registry, follow the prompts on screen to enable the registry.
50
-
1. In the search bar, type the name of the MCP server you want to add and select it from the search results.
51
-
1. On the MCP server's configuration page, click **Install**.
52
-
1. To check that the MCP server is configured correctly, open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac).
48
+
1. In the extensions search bar, type `@mcp` followed by the name of the MCP server you want to add. This opens the MCP server gallery and shows matching results.
49
+
1. Select the MCP server from the search results. On the MCP server's details page, click **Install**.
50
+
1. When prompted, confirm that you trust the server to start it. {% data variables.product.prodname_vscode_shortname %} discovers the server's tools and makes them available in chat.
51
+
1. To verify that the MCP server is configured correctly, open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac).
53
52
1. Type and select **MCP: List Servers**. You should see the MCP server listed as a configured server.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/provide-context/use-mcp/set-up-the-github-mcp-server.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,17 +36,16 @@ For the latest information and updates, see the [{% data variables.product.githu
36
36
37
37
The {% data variables.product.github %} MCP server in {% data variables.product.prodname_vscode %} can be configured remotely or locally. The remote {% data variables.product.github %} MCP server is hosted by {% data variables.product.github %} and is the recommended option for most users. The local {% data variables.product.github %} MCP server is hosted on your machine and is recommended for users who want to customize their setup or have specific security requirements.
38
38
39
-
The steps below describe remote configuration through the MCP marketplace in {% data variables.product.prodname_vscode %}'s extension panel. The MCP marketplace is powered by the {% data variables.product.github %} MCP Registry. See [MCP Registry](https://github.com/mcp).
39
+
The steps below describe remote configuration through the MCP Registry view in {% data variables.product.prodname_vscode %}'s extensions panel. This view is backed by the {% data variables.product.github %} MCP Registry. See [{% data variables.product.github %} MCP Registry](https://github.com/mcp).
40
40
41
41
For information on manually configuring the remote or local {% data variables.product.github %} MCP server, see the [{% data variables.product.github %} MCP server documentation](https://github.com/mcp/io.github.github/github-mcp-server?ref_product=copilot&ref_type=engagement&ref_style=text).
42
42
43
43
1. In {% data variables.product.prodname_vscode %}, open the extensions panel by clicking the extensions icon in the sidebar or pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>X</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>X</kbd> (Mac).
44
-
1. In the extensions search bar, click the filter icon and select **MCP Server** from the dropdown.
45
-
1. If it is your first time using the MCP Servers Marketplace, follow the prompts on screen to enable the Marketplace.
46
-
1. In the search bar, type `github` and select the {% data variables.product.github %} MCP server from the search results.
47
-
1. On the {% data variables.product.github %} MCP server configuration page, click **Install**.
48
-
1. To check that the {% data variables.product.github %} MCP server is configured correctly, open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac).
49
-
1. Type and select **MCP: List Servers**. You should see `github` listed as a configured server.
44
+
1. In the extensions search bar, type `@mcp github` to search the MCP server gallery.
45
+
1. Select the {% data variables.product.github %} MCP server from the search results. On the details page, click **Install**.
46
+
1. When prompted, confirm that you trust the server to start it.
47
+
1. To verify that the {% data variables.product.github %} MCP server is configured correctly, open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac).
48
+
1. Type and select **MCP: List Servers**. You should see the {% data variables.product.github %} MCP server listed as a configured server.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/provide-context/use-mcp/use-the-github-mcp-server.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,8 @@ The {% data variables.product.github %} MCP server enables you to perform a wide
35
35
36
36
{% data reusables.copilot.open-chat-vs-code %}
37
37
{% data reusables.copilot.select-agent %}
38
-
1. To see the available actions, in the {% data variables.copilot.copilot_chat_short %} box, click the **Select tools** icon.
39
-
*In the **Tools** dropdown, under **MCP Server: {% data variables.product.github %}**, you will see a list of available actions.
38
+
1. To see the available actions, in the {% data variables.copilot.copilot_chat_short %} box, click the **Configure tools** icon.
39
+
*If you expand the {% data variables.product.github %} MCP server entry, you will see a list of available tools.
40
40
1. In the {% data variables.copilot.copilot_chat_short %} box, type a command or question related to the action you want to perform, and press **Enter**.
41
41
* For example, you can ask the {% data variables.product.github %} MCP server to create a new issue, list pull requests, or retrieve repository information.
42
42
1. The {% data variables.product.github %} MCP server will process your request and provide a response in the chat interface.
@@ -98,7 +98,7 @@ The {% data variables.product.github %} MCP server enables you to perform a wide
98
98

99
99
1. At the top of the chat panel, click the **Agent** tab.
100
100
1. To see the available actions, in the {% data variables.copilot.copilot_chat_short %} box, click the tools icon.
101
-
*Under **MCP Server: {% data variables.product.github %}**, you will see a list of available actions.
101
+
*You will see a list of available actions from the {% data variables.product.github %} MCP server.
102
102
1. In the {% data variables.copilot.copilot_chat_short %} box, type a command or question related to the action you want to perform, and press **Enter**.
103
103
* For example, you can ask the {% data variables.product.github %} MCP server to create a new issue, list pull requests, or retrieve repository information.
104
104
1. The {% data variables.product.github %} MCP server will process your request and provide a response in the chat interface.
@@ -127,7 +127,7 @@ The {% data variables.product.github %} MCP server enables you to perform a wide
127
127
1. To open the chat view, click **Editor** in the menu bar, then click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} {% data variables.product.prodname_copilot_short %}** then **Open Chat**. {% data variables.copilot.copilot_chat_short %} opens in a new window.
128
128
1. At the bottom of the chat panel, select **Agent**.
129
129
1. To see the available actions, in the {% data variables.copilot.copilot_chat_short %} box, click the tools icon.
130
-
*Under **MCP Server: {% data variables.product.github %}**, you will see a list of available actions.
130
+
*You will see a list of available actions from the {% data variables.product.github %} MCP server.
131
131
1. In the {% data variables.copilot.copilot_chat_short %} box, type a command or question related to the action you want to perform, and press **Enter**.
132
132
* For example, you can ask the {% data variables.product.github %} MCP server to create a new issue, list pull requests, or retrieve repository information.
133
133
1. The {% data variables.product.github %} MCP server will process your request and provide a response in the chat interface.
0 commit comments