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/ide/mcp-servers.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,11 +119,11 @@ Some of these locations require `.mcp.json` while others require `mcp.json`.
119
119
120
120
### MCP configuration format
121
121
122
-
You may define both **remote** (URL + credentials) and **local** (command-line invocation).
122
+
You may define both **remote** (URL and credentials) and **local** (command-line invocation) servers.
123
123
124
-
It’s common to invoke tools via package managers (for example, `pip install … && mcp-server or npx @cursor/mcp`) - Visual Studio respects whatever command you specify so you can pin versions or flags.
124
+
It’s common to invoke tools via package managers. For example, `pip install … && mcp-server or npx @cursor/mcp`. Visual Studio respects whatever command you specify, allowing you to pin versions or pass flags as needed.
125
125
126
-
Format must follow the MCP spec (e.g. array of server objects, each with `name`, `command` or `url`, `transport`, etc.).
126
+
Format must follow the MCP specification, for example, an array of server objects, each with `name`, `command` or `url`, `transport`, etc.
127
127
128
128
### Editing MCP configuration
129
129
@@ -135,23 +135,23 @@ When the file is saved with valid syntax, GitHub Copilot's agent restarts and re
135
135
136
136
### Tool Lifecycle
137
137
138
-
As soon as a MCP server is discovered or added:
138
+
As soon as a server is discovered or added:
139
139
140
-
1. Visual Studio initializes the server (performs a handshake and queries the tool list).
141
-
1. Visual Studio subscribes to the MCP event `notifications/tools/list_changed`.
142
-
1. When that event fires, Visual Studio resets any prior acceptances or permissions on tools (to prevent *rug-pull* attacks), re-fetches the tool list, and updates the count/UI live.
143
-
1. When the server is successfully enabled, tools are made available to the Agent. The tools are disabled by default and must be manually enabled.
144
-
1. If a server is removed, Visual Studio immediately kills its process and withdraws all its tools from the UI.
145
-
1. If you edit a server definition, Visual Studio terminates and relaunches it, and then re-queries.
140
+
* Visual Studio initializes the server (performs a handshake and queries the tool list).
141
+
* Visual Studio subscribes to the MCP event `notifications/tools/list_changed`.
142
+
* When that event fires, Visual Studio resets any prior acceptances or permissions on tools (to prevent *rug-pull* attacks), re-fetches the tool list, and updates the count/UI live.
143
+
* When the server is successfully enabled, tools are made available to the Agent. The tools are disabled by default and must be manually enabled.
144
+
* If a server is removed, Visual Studio immediately kills its process and withdraws all its tools from the UI.
145
+
* If you edit a server definition, Visual Studio terminates and relaunches it, and then re-queries.
146
146
147
147
### Manage tool approvals
148
148
149
149
When a tool is invoked, Copilot requests confirmation to run the tool. This is because tools might run locally on your machine and perform actions that modify files or data.
In the chat pane, after a tool invocation, use the **Allow** dropdown options to automatically confirm the specific tool for the current session, solution, or all future invocations.
0 commit comments