From a81cb6183fc451c0086af86dc14c3077142dd7db Mon Sep 17 00:00:00 2001 From: tonytrg Date: Mon, 13 Oct 2025 10:37:09 +0200 Subject: [PATCH 1/2] restructure readme for better ghes ghec visibility --- README.md | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 2cf7e5de4..2e89e5cf9 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,33 @@ To keep your GitHub PAT secure and reusable across different MCP hosts: +## GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com) + +The flag `--gh-host` and the environment variable `GITHUB_HOST` can be used to set +the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency. + +- 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. +- For GitHub Enterprise Cloud with data residency, use `https://copilot-api.YOURSUBDOMAIN.ghe.com` as the hostname. +``` json +"github": { + "command": "docker", + "args": [ + "run", + "-i", + "--rm", + "-e", + "GITHUB_PERSONAL_ACCESS_TOKEN", + "-e", + "GITHUB_HOST", + "ghcr.io/github/github-mcp-server" + ], + "env": { + "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}", + "GITHUB_HOST": "https://" + } +} +``` + ## Installation ### Install in GitHub Copilot on VS Code @@ -1181,33 +1208,6 @@ docker run -i --rm \ ghcr.io/github/github-mcp-server ``` -## GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com) - -The flag `--gh-host` and the environment variable `GITHUB_HOST` can be used to set -the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency. - -- 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. -- For GitHub Enterprise Cloud with data residency, use `https://YOURSUBDOMAIN.ghe.com` as the hostname. -``` json -"github": { - "command": "docker", - "args": [ - "run", - "-i", - "--rm", - "-e", - "GITHUB_PERSONAL_ACCESS_TOKEN", - "-e", - "GITHUB_HOST", - "ghcr.io/github/github-mcp-server" - ], - "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}", - "GITHUB_HOST": "https://" - } -} -``` - ## i18n / Overriding Descriptions The descriptions of the tools can be overridden by creating a From c2e41025fab1a3b0dd93a9dbb969742bf9ee2082 Mon Sep 17 00:00:00 2001 From: tonytrg Date: Mon, 13 Oct 2025 11:42:47 +0200 Subject: [PATCH 2/2] adding readme --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e89e5cf9..c0ac851a7 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,27 @@ The default configuration is: 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. +#### Enterprise Cloud with data residency (ghe.com) + +GitHub Enterprise Cloud can also make use of the remote server. + +Example for `https://octocorp.ghe.com`: +``` +{ + ... + "proxima-github": { + "type": "http", + "url": "https://copilot-api.octocorp.ghe.com/mcp", + "headers": { + "Authorization": "Bearer ${input:github_mcp_pat}" + } + }, + ... +} +``` + +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. + --- ## Local GitHub MCP Server @@ -160,13 +181,13 @@ To keep your GitHub PAT secure and reusable across different MCP hosts: -## GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com) +### GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com) The flag `--gh-host` and the environment variable `GITHUB_HOST` can be used to set the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency. - 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. -- For GitHub Enterprise Cloud with data residency, use `https://copilot-api.YOURSUBDOMAIN.ghe.com` as the hostname. +- For GitHub Enterprise Cloud with data residency, use `https://YOURSUBDOMAIN.ghe.com` as the hostname. ``` json "github": { "command": "docker",