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
Update all documentation to use GITHUB_ACCESS_TOKEN
- Update README.md with GITHUB_ACCESS_TOKEN and deprecation notice- Update docs/server-configuration.md- Update all installation guides- Update script/conformance-test- Add note that server accepts any GitHub access token (PAT or OAuth)Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,9 +132,11 @@ GitHub Enterprise Server does not support remote server hosting. Please refer to
132
132
133
133
1. To run the server in a container, you will need to have[Docker](https://www.docker.com/) installed.
134
134
2. Once Docker is installed, you will also need to ensure Docker is running. The image is public; if you get errors on pull, you may have an expired token and need to`docker logout ghcr.io`.
135
-
3. Lastly you will need to[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new).
135
+
3. Lastly you will need to[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new) or use an OAuth token from your IDE/toolchain.
136
136
The MCP server can use many of the GitHub APIs, so enable the permissions that you feel comfortable granting your AI tools (to learn more about access tokens, please check out the[documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)).
137
137
138
+
>**Note**: The server accepts any valid GitHub access token (PAT or OAuth). The`GITHUB_ACCESS_TOKEN` environment variable is preferred over the deprecated`GITHUB_PERSONAL_ACCESS_TOKEN` variable.
139
+
138
140
<details><summary><b>Handling PATs Securely</b></summary>
139
141
140
142
###Environment Variables (Recommended)
@@ -158,11 +160,11 @@ To keep your GitHub PAT secure and reusable across different MCP hosts:
158
160
3.**Reference the token in configurations**
159
161
```bash
160
162
# CLI usage
161
-
claude mcp update github -eGITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT
163
+
claude mcp update github -eGITHUB_ACCESS_TOKEN=$GITHUB_PAT
162
164
163
165
# In config files (where supported)
164
166
"env": {
165
-
"GITHUB_PERSONAL_ACCESS_TOKEN":"$GITHUB_PAT"
167
+
"GITHUB_ACCESS_TOKEN":"$GITHUB_PAT"
166
168
}
167
169
```
168
170
@@ -199,13 +201,13 @@ the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data r
@@ -308,7 +310,7 @@ For a complete overview of all installation options, see our **[Installation Gui
308
310
###Build from source
309
311
310
312
If you don't have Docker, you can use`go build` to build the binary in the
311
-
`cmd/github-mcp-server` directory, and use the`github-mcp-server stdio` command with the`GITHUB_PERSONAL_ACCESS_TOKEN` environment variable set to your token. To specify the output location of the build, use the`-o` flag. You should configure your server to use the built executable as its`command`. For example:
313
+
`cmd/github-mcp-server` directory, and use the`github-mcp-server stdio` command with the`GITHUB_ACCESS_TOKEN` environment variable set to your token. To specify the output location of the build, use the`-o` flag. You should configure your server to use the built executable as its`command`. For example:
312
314
313
315
```JSON
314
316
{
@@ -318,7 +320,7 @@ If you don't have Docker, you can use `go build` to build the binary in the
318
320
"command":"/path/to/github-mcp-server",
319
321
"args": ["stdio"],
320
322
"env": {
321
-
"GITHUB_PERSONAL_ACCESS_TOKEN":"<YOUR_TOKEN>"
323
+
"GITHUB_ACCESS_TOKEN":"<YOUR_TOKEN>"
322
324
}
323
325
}
324
326
}
@@ -392,7 +394,7 @@ When using Docker, you can pass the toolsets as environment variables: