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: docs/copilot/chat/mcp-servers.md
+48-17Lines changed: 48 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,7 @@ MCP is still a relatively new standard, and the ecosystem is rapidly evolving. A
59
59
## Enable MCP support in VS Code
60
60
61
61
> [!NOTE]
62
-
> MCP support in VS Code is available starting from VS Code 1.99.
63
-
64
-
To enable MCP support in VS Code, enable the `setting(chat.mcp.enabled)` setting.
62
+
> MCP support in VS Code is generally available starting from VS Code 1.102, but can be [disabled by your organization](#centrally-manage-mcp-support).
65
63
66
64
### Centrally manage MCP support
67
65
@@ -75,14 +73,12 @@ You have two options to centrally manage MCP support in your organization:
75
73
76
74
You have multiple options to add an MCP server in VS Code:
77
75
76
+
***Direct installation**: Visit the [curated list of MCP servers](https://code.visualstudio.com/mcp) and select **Install** on any MCP server to automatically add it to your VS Code instance.
78
77
***Workspace settings**: add a `.vscode/mcp.json` file in your workspace to configure MCP servers for a workspace and share configurations with team members.
79
-
***User settings**: specify the server in your user settings to enable the MCP server across all workspaces.
80
-
***Automatic discovery**: enable autodiscovery of MCP servers defined in other tools, such as Claude Desktop.
81
-
82
-
> [!TIP]
83
-
> You can directly install an MCP server from the [curated list of MCP servers](https://code.visualstudio.com/mcp) on the VS Code website. This automatically adds the MCP server configuration to your environment.
78
+
***User settings**: specify the server in your user configuration (**MCP: Open User Configuration**) to enable the MCP server across all workspaces, synchronized via [Settings Sync](/docs/configure/settings-sync.md).
79
+
***Automatic discovery**: enable autodiscovery (`chat.mcp.discovery.enabled`) of MCP servers defined in other tools, such as Claude Desktop.
84
80
85
-
To view and manage the list of configured MCP servers, run the **MCP: List Servers** command from the Command Palette.
81
+
To view and manage the list of configured MCP servers, run the **MCP: Show Installed Servers** command from the Command Palette or visit the **MCP SERVERS - INSTALLED** section in the Extensions view.
86
82
87
83
After you add an MCP server, you can [use the tools it provides in agent mode](#use-mcp-tools-in-agent-mode).
88
84
@@ -116,6 +112,10 @@ To add an MCP server to your workspace:
@@ -144,6 +144,32 @@ Alternatively, use the **MCP: Add Server** command from the Command Palette, pro
144
144
145
145
When you use multiple VS Code [profiles](/docs/configure/profiles.md), this allows you to switch between different MCP server configurations based on your active profile. For example, the [Playwright MCP server](https://github.com/microsoft/playwright-mcp) could be configured in a web development profile, but not in a Python development profile.
146
146
147
+
### Dev Container support
148
+
149
+
MCP servers can be configured in Dev Containers through the `devcontainer.json` file. This allows you to include MCP server configurations as part of your containerized development environment.
150
+
151
+
To configure MCP servers in a Dev Container, add the server configuration to the `customizations.vscode.mcp` section:
When the Dev Container is created, VS Code automatically writes the MCP server configurations to the remote `mcp.json` file, making them available in your containerized development environment.
172
+
147
173
### Automatic discovery of MCP servers
148
174
149
175
VS Code can automatically detect and reuse MCP servers that you defined in other tools, such as Claude Desktop.
@@ -236,16 +262,15 @@ The following code snippet shows an example MCP server configuration that specif
MCP servers can request additional input from you through elicitations. When an MCP server needs more information to complete a task, it can prompt you for specific details, such as confirmations, configuration values, or other parameters required for the operation.
318
+
319
+
When an MCP server sends an elicitation request, VS Code presents you with a dialog or input field where you can provide the requested information. This allows MCP servers to gather necessary data dynamically without requiring all configuration to be set up in advance.
320
+
290
321
## Use MCP resources
291
322
292
323
In addition to tools, MCP servers can also provide resources that you can use as context in your chat prompts. For example, a file system MCP server might provide access to files and directories, or a database MCP server might provide access to database tables.
@@ -319,7 +350,7 @@ Learn more about how to [create and use tool sets in VS Code](/docs/copilot/chat
319
350
320
351
## Manage MCP servers
321
352
322
-
You can manage the list of installed MCP servers from the Extension view (`kb(workbench.view.extensions)`) in VS Code.
353
+
You can manage the list of installed MCP servers from the **MCP SERVERS - INSTALLED** section in the Extensions view (`kb(workbench.view.extensions)`) in VS Code. This dedicated view makes it easy to monitor, configure, and control your installed MCP servers.
323
354
324
355

325
356
@@ -337,7 +368,7 @@ Right-click on an MCP server or select the gear icon to perform the following ac
337
368
Alternatively, run the **MCP: List Servers** command from the Command Palette to view the list of configured MCP servers. You can then select a server and perform actions on it.
338
369
339
370
> [!TIP]
340
-
> When you open the `.vscode/mcp.json` file, VS Code shows commands to start, stop, or restart a server directly from the editor.
371
+
> When you open the `.vscode/mcp.json` file via **MCP: Open Workspace Folder MCP Configuration**, VS Code shows commands to start, stop, or restart a server directly from the editor.
341
372
342
373

343
374
@@ -418,7 +449,7 @@ Verify that the command arguments are correct and that the container is not runn
418
449
419
450
### I'm getting an error that says "Cannot have more than 128 tools per request."
420
451
421
-
A chat request can have a maximum of 128 tools enabled at a time. If you have more than 128 tools selected, reduce the number of tools by deselecting some tools in the tools picker in the Chat view.
452
+
A chat request can have a maximum of 128 tools enabled at a time due to model constrains. If you have more than 128 tools selected, reduce the number of tools by deselecting some tools or whole servers in the tools picker in the Chat view.
422
453
423
454

Copy file name to clipboardExpand all lines: release-notes/v1_102.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,7 +238,7 @@ This release includes several changes to the predictability and reliability of t
238
238
239
239
We've have been working on expanding MCP support in VS Code for the past few months, and [support the full range of MCP features in the specification](https://code.visualstudio.com/blogs/2025/06/12/full-mcp-spec-support). As of this release, MCP support is now generally available in VS Code!
240
240
241
-
In addition, businesses can now control the availability of MCP servers in their organization with a GitHub Copilot policy. Learn more about [Managing policies and features for Copilot in your enterprise](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/administer/enterprises/managing-policies-and-features-for-copilot-in-your-enterprise) in the GitHub Copilot documentation.
241
+
In addition, organizations can now control the availability of MCP servers with a GitHub Copilot policy. Learn more about [Managing policies and features for Copilot in your enterprise](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/administer/enterprises/managing-policies-and-features-for-copilot-in-your-enterprise) in the GitHub Copilot documentation.
242
242
243
243
You can get started by installing some of the [popular MCP servers from our curated list](https://code.visualstudio.com/mcp). Learn more about [using MCP servers in VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) and how you can use them to extend agent mode.
0 commit comments