Skip to content

Commit 47c72d4

Browse files
authored
MCP docs updates
1 parent e6f11cb commit 47c72d4

File tree

2 files changed

+49
-18
lines changed

2 files changed

+49
-18
lines changed

docs/copilot/chat/mcp-servers.md

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ MCP is still a relatively new standard, and the ecosystem is rapidly evolving. A
5959
## Enable MCP support in VS Code
6060

6161
> [!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).
6563
6664
### Centrally manage MCP support
6765

@@ -75,14 +73,12 @@ You have two options to centrally manage MCP support in your organization:
7573

7674
You have multiple options to add an MCP server in VS Code:
7775

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.
7877
* **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.
8480

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.
8682

8783
After you add an MCP server, you can [use the tools it provides in agent mode](#use-mcp-tools-in-agent-mode).
8884

@@ -116,6 +112,10 @@ To add an MCP server to your workspace:
116112
}
117113
],
118114
"servers": {
115+
// https://github.com/github/github-mcp-server/
116+
"Github": {
117+
"url": "https://api.githubcopilot.com/mcp/"
118+
},
119119
// https://github.com/ppl-ai/modelcontextprotocol/
120120
"Perplexity": {
121121
"type": "stdio",
@@ -144,6 +144,32 @@ Alternatively, use the **MCP: Add Server** command from the Command Palette, pro
144144

145145
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.
146146

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:
152+
153+
```json
154+
{
155+
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",
156+
"customizations": {
157+
"vscode": {
158+
"mcp": {
159+
"servers": {
160+
"playwright": {
161+
"command": "npx",
162+
"args": ["-y", "@microsoft/mcp-server-playwright"]
163+
}
164+
}
165+
}
166+
}
167+
}
168+
}
169+
```
170+
171+
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+
147173
### Automatic discovery of MCP servers
148174

149175
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
236262
"PERPLEXITY_API_KEY": "${input:perplexity-key}"
237263
}
238264
},
265+
// https://github.com/github/github-mcp-server/
266+
"Github": {
267+
"url": "https://api.githubcopilot.com/mcp/"
268+
},
239269
// https://github.com/modelcontextprotocol/servers/tree/main/src/fetch
240270
"fetch": {
241271
"type": "stdio",
242272
"command": "uvx",
243273
"args": ["mcp-server-fetch"]
244-
},
245-
"my-remote-server": {
246-
"type": "sse",
247-
"url": "http://api.contoso.com/sse",
248-
"headers": { "VERSION": "1.2" }
249274
}
250275
}
251276
}
@@ -287,6 +312,12 @@ To use MCP tools in agent mode:
287312

288313
![MCP Tool Input Parameters](images/mcp-servers/mcp-tool-edit-parameters.png)
289314

315+
## MCP elicitations
316+
317+
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+
290321
## Use MCP resources
291322

292323
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
319350

320351
## Manage MCP servers
321352

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.
323354

324355
![Screenshot showing the MCP servers in the Extensions view.](images/mcp-servers/extensions-view-mcp-servers.png)
325356

@@ -337,7 +368,7 @@ Right-click on an MCP server or select the gear icon to perform the following ac
337368
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.
338369

339370
> [!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.
341372
342373
![MCP server configuration with lenses to manage server.](images/mcp-servers/mcp-server-config-lenses.png)
343374

@@ -418,7 +449,7 @@ Verify that the command arguments are correct and that the container is not runn
418449

419450
### I'm getting an error that says "Cannot have more than 128 tools per request."
420451

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.
422453

423454
![Screenshot showing the Chat view, highlighting the Tools icon in the chat input and showing the tools Quick Pick where you can select which tools are active.](images/copilot-edits/agent-mode-select-tools.png)
424455

release-notes/v1_102.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ The view also has entries for tool calls on their own, and a prompt-tsx debug vi
234234

235235
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!
236236

237-
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.
237+
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.
238238

239239
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.
240240

0 commit comments

Comments
 (0)