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
3. Enter your prompt for making edits in the chat input field and select Send (Enter) to submit it. You can specify a high-level requirement, and you don't have to specify which files to work on. In agent mode, Copilot determines the relevant context and files to edit autonomously.
43
43
44
44
45
45
46
-
4. Agent mode might invoke multiple tools to accomplish different tasks. Optionally, select the Tools icon to configure which tools can be used for responding to your request.
46
+
4. Agent mode might invoke multiple tools to accomplish different tasks. Optionally, select the Tools icon to configure which additional tools can be used for responding to your request.
@@ -53,7 +53,7 @@ Follow these steps to get started:
53
53
54
54
6. Copilot detects issues and problems in code edits and terminal commands and will iterate and perform additional actions to resolve them. For example, agent mode might run unit tests as a result of a code edit. If the tests fail, it uses the test outcome to resolve the issue. Copilot agent mode iterates multiple times to resolve issues and problems.
55
55
56
-
7. As Copilot processes your request, notice that Copilot streams the suggested code edits directly in the editor. Review the suggested edits and accept or discard the suggested edits as a whole in the Total Changes section, or individually by clicking on a file and reviewing the code diffs presented in the editor.
56
+
7. As Copilot processes your request, notice that Copilot streams the suggested code edits directly in the editor. Review the suggested edits and either keep or discard the suggested edits as a whole in the Total Changes section, or individually by clicking on a file and reviewing the code diffs presented in the editor.
57
57
58
58

59
59
@@ -67,7 +67,7 @@ Follow these steps to get started:
@@ -141,14 +141,14 @@ Take the following troubleshooting steps in the order specified:
141
141
142
142
### What happened to Copilot Edits in Visual Studio?
143
143
144
-
- We perceive Agent mode to an evolution of Edits, with greater ability to iterate on errors, use tools, and automatically apply code changes.
144
+
- We perceive Agent mode to be an evolution of Edits, with greater ability to iterate on errors, use tools, and automatically apply code changes.
145
145
- For the initial releases of Visual Studio 2022 version 17.14, Edits mode is still available if you uncheck the `Enable agent mode` setting in `Tools > Options`.
146
146
147
147
### As an administrator, how do I control use of Agent mode for Visual Studio users?
148
148
149
149
Agent mode in Visual Studio is governed by the "Editor preview features" flag in the GitHub Copilot dashboard for administrator.
150
150
151
-
More information can be found in the GitHub documentation for [managing policies and feature for copilot in your enterprise](https://docs.github.com/en/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#editor-preview-features).
151
+
More information can be found in the GitHub documentation for [managing policies and features for copilot in your enterprise](https://docs.github.com/en/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#editor-preview-features).
Copy file name to clipboardExpand all lines: docs/ide/mcp.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ Model Context Protocol (MCP) is an open standard that enables AI models to inter
23
23
24
24
## How do MCP and Visual Studio extend GitHub Copilot's agent?
25
25
26
-
* MCP clients (like Visual Studio) connect to MCP servers and request actions on behalf of the AI model
26
+
* MCP clients, such as Visual Studio connect to MCP servers and request actions on behalf of the AI model
27
27
* MCP servers provide one or more tools that expose specific functionalities through a well-defined interface.
28
28
* The Model Context Protocol (MCP) defines the message format for communication between clients and servers, including tool discovery, invocation, and response handling
29
29
30
-
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 Visual Studio supports both configurations.
30
+
For example, a file system MCP server might provide tools for reading, writing, or searching files and directories. [GitHub's official MCP server](https://github.com/github/github-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 Visual Studio supports both configurations.
31
31
32
32
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.
33
33
@@ -52,7 +52,7 @@ By standardizing this interaction, MCP eliminates the need for custom integratio
@@ -86,28 +86,30 @@ MCP's [official server repository](https://github.com/modelcontextprotocol/serve
86
86
87
87
MCP is still a relatively new standard, and the ecosystem is rapidly evolving. As more developers adopt MCP, you can expect to see an increasing number of servers and tools available for integration with your projects.
88
88
89
-
## Adding an MCP server
89
+
## Adding an MCP server
90
90
91
91
### Create a file to manage configuration of MCP servers
92
92
93
93
If you do not already have an `mcp.json` file, you can create it in various locations depending on the repos, users, and IDEs you would like the servers to be available/used for.
94
94
95
95
### File locations for automatic discovery of MCP configuration
96
96
97
-
Visual Studio looks for MCP server configurations in the following directories, in the following order order:
97
+
Visual Studio looks for MCP server configurations in the following directories, in the following order:
98
98
99
99
1.`%USERPROFILE%\.mcp.json` serves as a global MCP server configuration for a specific user. Adding an MCP server here would make it load for all Visual Studio solutions.
100
-
1.`<SOLUTIONDIR>\.vs\mcp.json` is specific to Visual Studio and only loads the specified MCP servers for a specific user, for the specified solution.
100
+
2.`<SOLUTIONDIR>\.vs\mcp.json` is specific to Visual Studio and only loads the specified MCP servers for a specific user, for the specified solution.
101
101
102
-
If you are looking for an MCP configuration that you can track in source control for a repo, this option woudl work well:
102
+
If you are looking for an MCP configuration that you can track in source control for a repo, this option would work well:
103
103
104
104
3.`<SOLUTIONDIR>\.mcp.json`
105
105
106
-
Visual Studio will also check for MCP configurations other development environments have have set up. These are scoped to the repository/solution and are typically not source controlled.
106
+
Visual Studio will also check for MCP configurations set up by other development environments. These are scoped to the repository/solution and are typically not source controlled.
107
107
108
108
4.`<SOLUTIONDIR>\.vscode\mcp.json`
109
109
5.`<SOLUTIONDIR>\.cursor\mcp.json`
110
110
111
+
For #1 and #3, the `.` before `mcp.json` is not a typo, `.mcp.json` is the correct filename for these two directories.
112
+
111
113
### MCP configuration format
112
114
113
115
You may define both **remote** (URL + credentials) and **local** (command-line invocation).
0 commit comments