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
> You will still need to have a personal access token with the appropriate scopes called `GITHUB_MCP_PAT` in your environment.
41
+
42
+
### Method 2: Remote Server
43
+
44
+
You can also connect to the hosted MCP server directly. After securely storing your PAT, configure Gemini CLI with:
36
45
37
46
```json
38
47
// ~/.gemini/settings.json
@@ -41,14 +50,14 @@ The simplest way is to use GitHub's hosted MCP server:
41
50
"github": {
42
51
"httpUrl": "https://api.githubcopilot.com/mcp/",
43
52
"headers": {
44
-
"Authorization": "Bearer $GITHUB_PAT"
53
+
"Authorization": "Bearer $GITHUB_MCP_PAT"
45
54
}
46
55
}
47
56
}
48
57
}
49
58
```
50
59
51
-
### Method 2: Local Docker
60
+
### Method 3: Local Docker
52
61
53
62
With docker running, you can run the GitHub MCP server in a container:
54
63
@@ -67,14 +76,14 @@ With docker running, you can run the GitHub MCP server in a container:
67
76
"ghcr.io/github/github-mcp-server"
68
77
],
69
78
"env": {
70
-
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
79
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_MCP_PAT"
71
80
}
72
81
}
73
82
}
74
83
}
75
84
```
76
85
77
-
### Method 3: Binary
86
+
### Method 4: Binary
78
87
79
88
You can download the latest binary release from the [GitHub releases page](https://github.com/github/github-mcp-server/releases) or build it from source by running `go build -o github-mcp-server ./cmd/github-mcp-server`.
80
89
@@ -88,7 +97,7 @@ Then, replacing `/path/to/binary` with the actual path to your binary, configure
0 commit comments