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: api/extension-guides/ai/mcp.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,32 @@ You might consider implementing a language model tool with the [Language Model A
34
34
Users can add MCP servers within VS Code in several ways:
35
35
36
36
- Workspace configuration: Specify the server configuration in a `.vscode/mcp.json` file in the workspace.
37
-
-User or remote settings: Define servers globally in VS Code user settings, or for a remote machine or container in its remote settings.
37
+
-Global configuration: Define servers globally in the user [profile](https://code.visualstudio.com/docs/configure/profiles).
38
38
- Autodiscovery: VS Code can discover servers from other tools like Claude Desktop.
39
39
- Extension: VS Code extensions can register MCP servers programmatically.
40
40
41
-
In addition, you can trigger MCP installation by opening a [special URL](#mcp-url-handler) (`vscode:mcp/install`), or from the [command line](/docs/copilot/chat/mcp-servers#_command-line-configuration) (`--add-mcp`).
41
+
In addition, users can trigger MCP installation by opening a [special URL](#mcp-url-handler) (`vscode:mcp/install`), which is used in the [MCP gallery on the VS Code website](https://code.visualstudio.com/mcp). Users can access the gallery directly from the MCP view in the Extensions view.
42
+
43
+
Finally, install MCP servers from the [command line](/docs/copilot/chat/mcp-servers#_command-line-configuration) with the `--add-mcp` command-line option.
42
44
43
45
## Manage MCP servers
44
46
45
-
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 like starting, stopping, viewing the logs, and more.
47
+
You can manage the list of installed MCP servers from the Extension view (`kb(workbench.view.extensions)`) in VS Code.
48
+
49
+

50
+
51
+
Right-click on an MCP server or select the gear icon to perform the following actions:
52
+
53
+
-**Start/Stop/Restart**: Start, stop, or restart the MCP server.
54
+
-**Disconnect Account**: Disconnect the account for authentication with the MCP server.
55
+
-**Show Output**: View the server logs to diagnose issues.
56
+
-**Show Configuration**: View the MCP server configuration.
57
+
-**Configure Model Access**: Configure which models the MCP server can access (sampling).
58
+
-**Show Sampling Requests**: View the sampling requests made by the MCP server.
59
+
-**Browse Resources**: View the resources provided by the MCP server.
60
+
-**Uninstall**: Uninstall the MCP server from your environment.
61
+
62
+
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.
46
63
47
64
> [!TIP]
48
65
> When you open the `.vscode/mcp.json` file, VS Code shows commands to start, stop, or restart a server directly from the editor.
0 commit comments