Skip to content

Commit cc721f9

Browse files
committed
Updates
1 parent 3db29d2 commit cc721f9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/ide/mcp-servers.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ Some of these locations require `.mcp.json` while others require `mcp.json`.
119119

120120
### MCP configuration format
121121

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

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

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

128128
### Editing MCP configuration
129129

@@ -135,23 +135,23 @@ When the file is saved with valid syntax, GitHub Copilot's agent restarts and re
135135

136136
### Tool Lifecycle
137137

138-
As soon as a MCP server is discovered or added:
138+
As soon as a server is discovered or added:
139139

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

147147
### Manage tool approvals
148148

149149
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.
150150

151-
:::image type="content" source="media/vs-2022/copilot-agent/copilot-agent-tool-approval.png" alt-text="Screenshot that shows managing agent tool approvals." lightbox="media/vs-2022/copilot-agent/copilot-agent-tool-approval.png":::
152-
153151
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.
154152

153+
:::image type="content" source="media/vs-2022/copilot-agent/copilot-agent-tool-approval.png" alt-text="Screenshot that shows managing agent tool approvals." lightbox="media/vs-2022/copilot-agent/copilot-agent-tool-approval.png":::
154+
155155
You can reset tool confirmation selections in **Tools** > **Options** > **GitHub** > **Copilot** > **Tools**.
156156

157157
:::image type="content" source="media/vs-2022/copilot-agent/copilot-agent-tool-config.png" alt-text="Screenshot that shows the tools configuration setting." lightbox="media/vs-2022/copilot-agent/copilot-agent-tool-config.png":::

0 commit comments

Comments
 (0)