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/installation-guides/install-other-copilot-ides.md
+80-71Lines changed: 80 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,51 +4,55 @@ Quick setup guide for the GitHub Model Context Protocol (MCP) server across diff
4
4
5
5
## Important Prerequisites
6
6
7
-
-**Organization Policy**: To use GitHub Copilot with the _Remote_ GitHub MCP Server via OAuth, your organization must enable the Editor Preview Policy while MCP support remains in public preview
8
7
-**Authentication Methods**:
9
8
- VS Code supports both OAuth and PAT for remote servers
10
-
- Copilot in all other IDEs (Visual Studio, JetBrains, Xcode, Eclipse) currently supports PAT-only for the remote server
11
-
- Copilot in all IDEs supports local server installation with PAT authentication
9
+
- Copilot in all other IDEs (Visual Studio, JetBrains, Xcode, Eclipse) currently supports PAT-only for the remote and local servers
12
10
13
11
---
14
12
15
13
## Important Notes on GitHub MCP Server
16
14
17
-
-**Official Migration**: The GitHub MCP server has migrated to GitHub's official repository at [github/github-mcp-server](https://github.com/github/github-mcp-server)
18
15
-**Docker Image**: The official Docker image is now `ghcr.io/github/github-mcp-server`
19
16
-**npm Package**: The npm package `@modelcontextprotocol/server-github` is still maintained but includes a deprecation notice
20
-
-**Remote Server**: The remote server URL remains`https://api.githubcopilot.com/mcp/`
17
+
-**Remote Server**: The remote server URL is`https://api.githubcopilot.com/mcp/`
21
18
22
19
---
20
+
# GitHub MCP Server Installation Guide
21
+
22
+
Quick setup guide for the GitHub MCP server in GitHub Copilot across different IDEs. For VS Code instructions, refer to the [VS Code install guide in the README](/README.md#installation-in-vs-code)
23
23
24
24
## Visual Studio Setup
25
25
26
-
Requires Visual Studio 2022 version 17.14 or later. Visual Studio supports both remote and local GitHub MCP server configurations.
26
+
Requires Visual Studio 2022 version 17.14 or later.
27
27
28
-
### Remote Server Configuration (PAT Only)
29
-
Visual Studio currently supports PAT authentication only for remote MCP servers.
28
+
### Remote Server (Recommended)
30
29
31
-
1. Create an `.mcp.json` file in your solution directory
30
+
The remote GitHub MCP server is hosted by GitHub and provides automatic updates with no local setup required.
31
+
32
+
**Note**: OAuth authentication is not yet supported in Visual Studio. You must use a Personal Access Token (PAT).
33
+
34
+
#### Configuration
35
+
1. Go to **Tools** → **Options** → **GitHub** → **Copilot** → **MCP Servers**
32
36
2. Add this configuration:
33
37
```json
34
38
{
35
39
"servers": {
36
40
"github": {
37
-
"type": "http",
38
41
"url": "https://api.githubcopilot.com/mcp/",
39
-
"headers": {
40
-
"Authorization": "Bearer YOUR_GITHUB_PAT"
41
-
}
42
+
"authorization_token": "Bearer YOUR_GITHUB_PAT"
42
43
}
43
44
}
44
45
}
45
46
```
46
-
3. Save the file and restart Visual Studio
47
-
4. Open Agent Mode in Copilot Chat to access MCP tools
47
+
3. Restart Visual Studio
48
48
49
-
### Local Server Configuration
50
-
Requires Docker installed and running.
49
+
### Local Server
51
50
51
+
For users who prefer to run the GitHub MCP server locally. Requires Docker installed and running.
52
+
53
+
#### Configuration
54
+
1. Create an `.mcp.json` file in your solution directory
55
+
2. Add this configuration:
52
56
```json
53
57
{
54
58
"inputs": [
@@ -74,6 +78,7 @@ Requires Docker installed and running.
74
78
}
75
79
}
76
80
```
81
+
3. Save the file and restart Visual Studio
77
82
78
83
**Documentation:**[Visual Studio MCP Guide](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022)
79
84
@@ -83,7 +88,13 @@ Requires Docker installed and running.
83
88
84
89
Agent mode and MCP support available in public preview across IntelliJ IDEA, PyCharm, WebStorm, and other JetBrains IDEs.
85
90
86
-
### Remote Server Configuration (PAT Only)
91
+
### Remote Server (Recommended)
92
+
93
+
The remote GitHub MCP server is hosted by GitHub and provides automatic updates with no local setup required.
94
+
95
+
**Note**: OAuth authentication is not yet supported in JetBrains IDEs. You must use a Personal Access Token (PAT).
See our [Personal Access Token documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) for setup instructions.
259
+
For PAT authentication, see our [Personal Access Token documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) for setup instructions.
247
260
248
261
---
249
262
@@ -252,26 +265,22 @@ See our [Personal Access Token documentation](https://docs.github.com/en/authent
252
265
After setup:
253
266
1. Restart your IDE completely
254
267
2. Open Agent mode in Copilot Chat
255
-
3. Click the tools icon to see available MCP tools
256
-
4. Try: *"List recent issues in this repository"*
257
-
5. Copilot can now access GitHub data and perform repository operations
268
+
3. Try: *"List recent issues in this repository"*
269
+
4. Copilot can now access GitHub data and perform repository operations
258
270
259
271
---
260
272
261
273
## Troubleshooting
262
274
263
275
-**Connection issues**: Verify GitHub PAT permissions and IDE version compatibility
264
-
-**Authentication errors**:
265
-
- Check if your organization has enabled the Editor Preview Policy
266
-
- Ensure PAT has correct scopes
267
-
- For Enterprise Managed Users with PAT restrictions, OAuth is not available
276
+
-**Authentication errors**: Check if your organization has enabled the MCP policy for Copilot
268
277
-**Tools not appearing**: Restart IDE after configuration changes and check error logs
269
-
-**Local server issues**: Ensure Docker is running (for Docker-based setups) or Node.js is installed (for npx-based setups)
278
+
-**Local server issues**: Ensure Docker is running for Docker-based setups
270
279
271
280
---
272
281
273
282
## What's Next
274
283
275
-
All IDEs now support the GitHub MCP server, with both remote and local installation options. While VS Code offers support for OAuth authentication, OAuth support is coming to all Copilot IDEs in the coming months.
284
+
All IDEs now support the remote GitHub MCP server. VS Code offers OAuth authentication, while Visual Studio, JetBrains IDEs, Xcode, and Eclipse currently use PAT authentication with OAuth support coming soon.
276
285
277
286
**Advanced configuration:** See the [GitHub MCP Server repository](https://github.com/github/github-mcp-server) for toolsets, read-only mode, and additional options.
0 commit comments