Skip to content

Commit d710697

Browse files
authored
Merge branch 'main' into feature/github-packages-support
2 parents e58383b + 0188cc0 commit d710697

File tree

1 file changed

+48
-27
lines changed

1 file changed

+48
-27
lines changed

README.md

Lines changed: 48 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,27 @@ The default configuration is:
9898

9999
See [Remote Server Documentation](docs/remote-server.md) for full details on remote server configuration, toolsets, headers, and advanced usage. This file provides comprehensive instructions and examples for connecting, customizing, and installing the remote GitHub MCP Server in VS Code and other MCP hosts.
100100

101+
#### Enterprise Cloud with data residency (ghe.com)
102+
103+
GitHub Enterprise Cloud can also make use of the remote server.
104+
105+
Example for `https://octocorp.ghe.com`:
106+
```
107+
{
108+
...
109+
"proxima-github": {
110+
"type": "http",
111+
"url": "https://copilot-api.octocorp.ghe.com/mcp",
112+
"headers": {
113+
"Authorization": "Bearer ${input:github_mcp_pat}"
114+
}
115+
},
116+
...
117+
}
118+
```
119+
120+
GitHub Enterprise Server does not support remote server hosting. Please refer to [GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com)](#github-enterprise-server-and-enterprise-cloud-with-data-residency-ghecom) from the local server configuration.
121+
101122
---
102123

103124
## Local GitHub MCP Server
@@ -160,6 +181,33 @@ To keep your GitHub PAT secure and reusable across different MCP hosts:
160181

161182
</details>
162183

184+
### GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com)
185+
186+
The flag `--gh-host` and the environment variable `GITHUB_HOST` can be used to set
187+
the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency.
188+
189+
- For GitHub Enterprise Server, prefix the hostname with the `https://` URI scheme, as it otherwise defaults to `http://`, which GitHub Enterprise Server does not support.
190+
- For GitHub Enterprise Cloud with data residency, use `https://YOURSUBDOMAIN.ghe.com` as the hostname.
191+
``` json
192+
"github": {
193+
"command": "docker",
194+
"args": [
195+
"run",
196+
"-i",
197+
"--rm",
198+
"-e",
199+
"GITHUB_PERSONAL_ACCESS_TOKEN",
200+
"-e",
201+
"GITHUB_HOST",
202+
"ghcr.io/github/github-mcp-server"
203+
],
204+
"env": {
205+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}",
206+
"GITHUB_HOST": "https://<your GHES or ghe.com domain name>"
207+
}
208+
}
209+
```
210+
163211
## Installation
164212

165213
### Install in GitHub Copilot on VS Code
@@ -1241,33 +1289,6 @@ docker run -i --rm \
12411289
ghcr.io/github/github-mcp-server
12421290
```
12431291

1244-
## GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com)
1245-
1246-
The flag `--gh-host` and the environment variable `GITHUB_HOST` can be used to set
1247-
the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency.
1248-
1249-
- For GitHub Enterprise Server, prefix the hostname with the `https://` URI scheme, as it otherwise defaults to `http://`, which GitHub Enterprise Server does not support.
1250-
- For GitHub Enterprise Cloud with data residency, use `https://YOURSUBDOMAIN.ghe.com` as the hostname.
1251-
``` json
1252-
"github": {
1253-
"command": "docker",
1254-
"args": [
1255-
"run",
1256-
"-i",
1257-
"--rm",
1258-
"-e",
1259-
"GITHUB_PERSONAL_ACCESS_TOKEN",
1260-
"-e",
1261-
"GITHUB_HOST",
1262-
"ghcr.io/github/github-mcp-server"
1263-
],
1264-
"env": {
1265-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}",
1266-
"GITHUB_HOST": "https://<your GHES or ghe.com domain name>"
1267-
}
1268-
}
1269-
```
1270-
12711292
## i18n / Overriding Descriptions
12721293

12731294
The descriptions of the tools can be overridden by creating a

0 commit comments

Comments
 (0)