Skip to content

Commit 5808b8d

Browse files
authored
Updated with review from kkeirstead
1 parent ca8b123 commit 5808b8d

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

docs/ide/copilot-agent.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ In agent mode, Copilot operates autonomously and determines the relevant context
3131

3232
Follow these steps to get started:
3333

34-
1. Make sure that agent mode is enabled by clicking Tools > Options > GitHub > Copilot and the "Enable Agent mode in the chat pane".
34+
1. Make sure that agent mode is enabled by clicking Tools > Options > GitHub > Copilot and the "Enable agent mode in the chat pane".
3535

3636
![Copilot Agent Settings](./media/vs-2022/copilot-agent/copilotagent-settingupdated.png)
3737

38-
2. Enable agent mode by opening the GitHub Copilot window, clicking the mode dropdown that says "Ask", then select "Agent".
38+
2. Open the GitHub Copilot window, click the mode dropdown that says "Ask", then select "Agent".
3939

4040
![Copilot Agent Mode Selector](./media/vs-2022/copilot-agent/copilotagent-dropdown.png)
4141

4242
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.
4343

4444

4545

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

4848
![Copilot Agent Tool Selector](./media/vs-2022/copilot-agent/copilotagent-tools.png)
4949

@@ -53,7 +53,7 @@ Follow these steps to get started:
5353

5454
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.
5555

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

5858
![Copilot Agent List of Changes](./media/vs-2022/copilot-agent/copilotagent-keepundo.png)
5959

@@ -67,7 +67,7 @@ Follow these steps to get started:
6767

6868
## Agent mode tools
6969

70-
![Copilot Agent Tool Selector](./media/vs-2022/copilot-agent/copilotagent-partialtools.png)
70+
![Copilot Agent Tool Selector](./media/vs-2022/copilotagent-mcp/copilotagent-partialtools.png)
7171

7272
Agent mode can use the following tools:
7373

@@ -141,14 +141,14 @@ Take the following troubleshooting steps in the order specified:
141141

142142
### What happened to Copilot Edits in Visual Studio?
143143

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

147147
### As an administrator, how do I control use of Agent mode for Visual Studio users?
148148

149149
Agent mode in Visual Studio is governed by the "Editor preview features" flag in the GitHub Copilot dashboard for administrator.
150150

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).
152152

153153
## Related content
154154

docs/ide/mcp.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Model Context Protocol (MCP) is an open standard that enables AI models to inter
2323

2424
## How do MCP and Visual Studio extend GitHub Copilot's agent?
2525

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
2727
* MCP servers provide one or more tools that expose specific functionalities through a well-defined interface.
2828
* The Model Context Protocol (MCP) defines the message format for communication between clients and servers, including tool discovery, invocation, and response handling
2929

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

3232
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.
3333

@@ -52,7 +52,7 @@ By standardizing this interaction, MCP eliminates the need for custom integratio
5252
"command": "npx",
5353
"args": [ "-y", "@modelcontextprotocol/server-github" ],
5454
"env": {
55-
"GITHUB_PERSONAL_ACCESS_TOKEN": "GITHUB_PAT"
55+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
5656
}
5757
}
5858
}
@@ -86,28 +86,30 @@ MCP's [official server repository](https://github.com/modelcontextprotocol/serve
8686

8787
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.
8888

89-
## Adding an MCP server
89+
## Adding an MCP server
9090

9191
### Create a file to manage configuration of MCP servers
9292

9393
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.
9494

9595
### File locations for automatic discovery of MCP configuration
9696

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:
9898

9999
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.
101101

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:
103103

104104
3. `<SOLUTIONDIR>\.mcp.json`
105105

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

108108
4. `<SOLUTIONDIR>\.vscode\mcp.json`
109109
5. `<SOLUTIONDIR>\.cursor\mcp.json`
110110

111+
For #1 and #3, the `.` before `mcp.json` is not a typo, `.mcp.json` is the correct filename for these two directories.
112+
111113
### MCP configuration format
112114

113115
You may define both **remote** (URL + credentials) and **local** (command-line invocation).

0 commit comments

Comments
 (0)