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
+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
@@ -20,15 +20,15 @@ MCP follows a client-server architecture:
20
20
21
21
-**MCP clients** (like VS Code) connect to MCP servers and request actions on behalf of the AI model
22
22
-**MCP servers** provide one or more tools that expose specific functionalities through a well-defined interface
23
-
-**The MCP protocol** defines the message format for communication between clients and servers, including tool discovery, invocation, and response handling
23
+
-**The Model Context Protocol (MCP)** defines the message format for communication between clients and servers, including tool discovery, invocation, and response handling
24
24
25
25
For example, a file system MCP server might provide tools for reading, writing, or searching files and directories. GitHub's MCP server offers tools to list repositories, create pull requests, or manage issues. MCP servers can run locally on your machine or be hosted remotely, and VS Code supports both configurations.
26
26
27
27
By standardizing this interaction, MCP eliminates the need for custom integrations between each AI model and each tool. This allows you to extend your AI assistant's capabilities by simply adding new MCP servers to your workspace. Learn more about the [Model Context Protocol specification](https://modelcontextprotocol.io/).
28
28
29
29
### Supported MCP capabilities
30
30
31
-
VS Code supports local standard input/output (`stdio`) and server-sent events (`sse`) for MCP server transport. Currently, servers can only provide `tools` to Copilot's agent mode. The list and descriptions of tools can be updated dynamically using *list changed* events. VS Code provides servers with the current workspace folders using `roots` ([spec](https://modelcontextprotocol.io/docs/concepts/roots)).
31
+
VS Code supports local standard input/output (`stdio`) and server-sent events (`sse`) for MCP server transport. Currently of the [3 primitives](https://github.com/modelcontextprotocol/specification/blob/main/docs/specification/2025-03-26/server/_index.md) (`tools`, `prompts`, `resources`), servers can only provide `tools` to Copilot's agent mode. The list and descriptions of tools can be updated dynamically using *list changed* events. VS Code provides servers with the current workspace folders using `roots` ([spec](https://modelcontextprotocol.io/docs/concepts/roots)).
32
32
33
33
### Finding MCP servers
34
34
@@ -76,7 +76,7 @@ To add an MCP server to your workspace, follow these steps (see below for how to
76
76
}
77
77
```
78
78
79
-
1. Alternatively, specify the server in the `setting(mcp)` VS Code [user settings](/docs/getstarted/personalize-vscode.md#configure-settings) to enable the MCP server across all workspaces.
79
+
1. Optionally, specify the server in the `setting(mcp)` VS Code [user settings](/docs/getstarted/personalize-vscode.md#configure-settings) to enable the MCP server across all workspaces.
80
80
81
81
If you use the **MCP: Add Server** command from the Command Palette, choose **User Settings** to add a new MCP server configuration in user settings.
82
82
@@ -100,7 +100,7 @@ Use the following JSON configuration format to define MCP servers.
100
100
| Field | Description | Examples |
101
101
|-------|-------------|----------|
102
102
| `type` | Server connection type. | `"stdio"` |
103
-
| `command` | Command to start the server executable. | `"npx"`, `"python"`, `"docker"` |
103
+
| `command` | Command to start the server executable. | `"npx"`,`"node"`, `"python"`, `"docker"` |
104
104
| `args` | Array of arguments passed to the command. | `["server.py", "--port", "3000"]` |
105
105
| `env` | Environment variables for the server. | `{"API_KEY": "${input:api-key}"}` |
106
106
| `envFile` | Path to an `.env` from which to load additional environment variables. | `"${workspaceFolder}/.env"` |
0 commit comments