Skip to content

Commit f233bba

Browse files
committed
feat: add GitHub remote MCP server and merge enterprise into local
- com.github-mcp: Merge local + enterprise into one definition with optional GITHUB_HOST input (leave empty for GitHub.com, set for GHES/ghe.com) - com.github-mcp-http: Add remote HTTP server at api.githubcopilot.com/mcp/ with OAuth (note: DCR not supported, requires pre-registered OAuth app) https://claude.ai/code/session_013AxurW8hPAfnUNvik354Xx
1 parent 7c243a3 commit f233bba

2 files changed

Lines changed: 64 additions & 6 deletions

File tree

servers/com.github-mcp-http.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.github-mcp-http",
4+
"name": "GitHub (Remote)",
5+
"alias": "gh-remote",
6+
"description": "Interact with GitHub repositories, issues, pull requests, actions, and code security through GitHub's hosted remote MCP server. No local installation required. Requires an MCP host with a pre-registered GitHub OAuth App (VS Code 1.101+, Claude Desktop, Cursor, Windsurf, etc.).",
7+
"icon": "https://avatars.githubusercontent.com/u/9919?v=4",
8+
"schema_version": "2.1",
9+
"categories": ["developer-tools", "version-control"],
10+
"tags": ["git", "github", "code", "issues", "pull-requests", "repos", "actions", "code-review", "remote"],
11+
12+
"transport": {
13+
"type": "http",
14+
"url": "https://api.githubcopilot.com/mcp/",
15+
"metadata": {
16+
"inputs": []
17+
}
18+
},
19+
20+
"auth": {
21+
"type": "oauth",
22+
"instructions": "Your MCP host must have a pre-registered GitHub OAuth App. GitHub does not support Dynamic Client Registration (DCR). Compatible hosts include VS Code 1.101+, Claude Desktop, Cursor, and Windsurf. For hosts without pre-registered OAuth, use the local Docker version instead."
23+
},
24+
25+
"contributor": {
26+
"name": "GitHub",
27+
"github": "github",
28+
"url": "https://github.com"
29+
},
30+
31+
"links": {
32+
"repository": "https://github.com/github/github-mcp-server",
33+
"homepage": "https://github.com",
34+
"documentation": "https://github.com/github/github-mcp-server#readme"
35+
},
36+
37+
"platforms": ["all"],
38+
39+
"capabilities": {
40+
"tools": true,
41+
"resources": true,
42+
"prompts": true,
43+
"read_only_mode": false
44+
},
45+
46+
"changelog_url": "https://github.com/github/github-mcp-server/releases"
47+
}

servers/com.github-mcp.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
{
22
"$schema": "../schemas/server-definition.schema.json",
33
"id": "com.github-mcp",
4-
"name": "GitHub",
4+
"name": "GitHub (Local)",
55
"alias": "gh",
6-
"description": "Interact with GitHub repositories, issues, pull requests, actions, and code security through the official GitHub MCP server.",
6+
"description": "Interact with GitHub repositories, issues, pull requests, actions, and code security through the official GitHub MCP server running locally via Docker. Supports GitHub.com, GitHub Enterprise Server, and GitHub Enterprise Cloud (ghe.com).",
77
"icon": "https://avatars.githubusercontent.com/u/9919?v=4",
88
"schema_version": "2.1",
99
"categories": ["developer-tools", "version-control"],
10-
"tags": ["git", "github", "code", "issues", "pull-requests", "repos", "actions", "code-review"],
10+
"tags": ["git", "github", "code", "issues", "pull-requests", "repos", "actions", "code-review", "enterprise"],
1111

1212
"transport": {
1313
"type": "stdio",
1414
"command": "docker",
1515
"args": [
16-
"run", "-i", "--rm", "-e",
17-
"GITHUB_PERSONAL_ACCESS_TOKEN",
16+
"run", "-i", "--rm",
17+
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN",
18+
"-e", "GITHUB_HOST",
1819
"ghcr.io/github/github-mcp-server"
1920
],
2021
"env": {
21-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:GITHUB_TOKEN}"
22+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:GITHUB_TOKEN}",
23+
"GITHUB_HOST": "${input:GITHUB_HOST}"
2224
},
2325
"metadata": {
2426
"inputs": [
@@ -35,6 +37,15 @@
3537
"instructions": "1. Click 'Generate new token (classic)'\n2. Give it a name like 'McpMux'\n3. Select scopes: repo, read:org\n4. Click 'Generate token'\n5. Copy the token (starts with ghp_)",
3638
"button_label": "Create Token"
3739
}
40+
},
41+
{
42+
"id": "GITHUB_HOST",
43+
"label": "GitHub Host (Optional)",
44+
"description": "Leave empty for GitHub.com. For GitHub Enterprise Server, use https://YOUR-HOSTNAME. For GitHub Enterprise Cloud with data residency, use https://SUBDOMAIN.ghe.com.",
45+
"type": "text",
46+
"required": false,
47+
"secret": false,
48+
"placeholder": "https://github.example.com or https://octocorp.ghe.com"
3849
}
3950
]
4051
}

0 commit comments

Comments
 (0)