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
1.Create an `.mcp.json` file in your solution or %USERPROFILE% directory.
23
23
2. Add this configuration:
24
24
```json
25
25
{
26
26
"servers": {
27
27
"github": {
28
-
"url": "https://api.githubcopilot.com/mcp/",
29
-
"authorization_token": "Bearer YOUR_GITHUB_PAT"
28
+
"url": "https://api.githubcopilot.com/mcp/"
30
29
}
31
30
}
32
31
}
33
32
```
34
-
3. Restart Visual Studio
33
+
3. Save the file. Wait for CodeLens to update to offer a way to authenticate to the new server, activate that and pick the GitHub account to authenticate with.
34
+
4. In the GitHub Copilot Chat window, switch to Agent mode.
35
+
5. Activate the tool picker in the Chat window and enable one or more tools from the "github" MCP server.
35
36
36
37
### Local Server
37
38
38
39
For users who prefer to run the GitHub MCP server locally. Requires Docker installed and running.
39
40
40
41
#### Configuration
41
-
1. Create an `.mcp.json` file in your solution directory
42
+
1. Create an `.mcp.json` file in your solution or %USERPROFILE% directory.
42
43
2. Add this configuration:
43
44
```json
44
45
{
@@ -65,9 +66,11 @@ For users who prefer to run the GitHub MCP server locally. Requires Docker insta
65
66
}
66
67
}
67
68
```
68
-
3. Save the file and restart Visual Studio
69
+
3. Save the file. Wait for CodeLens to update to offer a way to provide user inputs, activate that and paste in a PAT you generate from https://github.com/settings/tokens.
70
+
4. In the GitHub Copilot Chat window, switch to Agent mode.
71
+
5. Activate the tool picker in the Chat window and enable one or more tools from the "github" MCP server.
69
72
70
-
**Documentation:**[Visual Studio MCP Guide](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022)
73
+
**Documentation:**[Visual Studio MCP Guide](https://learn.microsoft.com/visualstudio/ide/mcp-servers)
0 commit comments