Skip to content

Commit 9ff2e51

Browse files
committed
Update MCP api guide
1 parent 890921b commit 9ff2e51

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

api/extension-guides/ai/mcp.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,32 @@ You might consider implementing a language model tool with the [Language Model A
3434
Users can add MCP servers within VS Code in several ways:
3535

3636
- 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).
3838
- Autodiscovery: VS Code can discover servers from other tools like Claude Desktop.
3939
- Extension: VS Code extensions can register MCP servers programmatically.
4040

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

4345
## Manage MCP servers
4446

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+
![Screenshot showing the MCP servers in the Extensions view.](../images/ai/mcp/extensions-view-mcp-servers.png)
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.
4663

4764
> [!TIP]
4865
> When you open the `.vscode/mcp.json` file, VS Code shows commands to start, stop, or restart a server directly from the editor.
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)