Skip to content

Commit 7a6f00d

Browse files
authored
Merge pull request #9 from mcpmux/claude/add-github-mcp-nYwV7
feat: add GitHub remote MCP server and merge enterprise into local
2 parents d8f4302 + 8df8a95 commit 7a6f00d

3 files changed

Lines changed: 89 additions & 7 deletions

File tree

schemas/server-definition.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@
167167
"format": "uri",
168168
"description": "HTTP endpoint URL (supports Streamable HTTP)"
169169
},
170+
"headers": {
171+
"type": "object",
172+
"additionalProperties": { "type": "string" },
173+
"description": "HTTP headers to include with requests. Values support ${input:ID} placeholders for user-provided values."
174+
},
170175
"metadata": {
171176
"$ref": "#/$defs/metadata"
172177
}

servers/com.github-mcp-http.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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. Authenticates with a Personal Access Token (PAT) via Bearer header.",
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+
"headers": {
16+
"Authorization": "Bearer ${input:GITHUB_TOKEN}"
17+
},
18+
"metadata": {
19+
"inputs": [
20+
{
21+
"id": "GITHUB_TOKEN",
22+
"label": "GitHub Personal Access Token",
23+
"description": "Personal Access Token for GitHub. Create a fine-grained PAT with the scopes needed for the tools you want to use.",
24+
"type": "password",
25+
"required": true,
26+
"secret": true,
27+
"placeholder": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
28+
"obtain": {
29+
"url": "https://github.com/settings/tokens?type=beta",
30+
"instructions": "1. Go to github.com/settings/tokens\n2. Click 'Generate new token' > 'Fine-grained token'\n3. Set expiration, select repositories, and choose permissions\n4. Click 'Generate token' and copy it",
31+
"button_label": "Create Token"
32+
}
33+
}
34+
]
35+
}
36+
},
37+
38+
"auth": {
39+
"type": "api_key",
40+
"instructions": "Create a GitHub Personal Access Token (fine-grained) at https://github.com/settings/tokens with the scopes needed for the tools you want to use. The token is sent as a Bearer token in the Authorization header."
41+
},
42+
43+
"contributor": {
44+
"name": "GitHub",
45+
"github": "github",
46+
"url": "https://github.com"
47+
},
48+
49+
"links": {
50+
"repository": "https://github.com/github/github-mcp-server",
51+
"homepage": "https://github.com",
52+
"documentation": "https://github.com/github/github-mcp-server#readme"
53+
},
54+
55+
"platforms": ["all"],
56+
57+
"capabilities": {
58+
"tools": true,
59+
"resources": true,
60+
"prompts": true,
61+
"read_only_mode": false
62+
},
63+
64+
"changelog_url": "https://github.com/github/github-mcp-server/releases"
65+
}

servers/com.github-mcp.json

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
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_PERSONAL_ACCESS_TOKEN}",
23+
"GITHUB_HOST": "${input:GITHUB_HOST}"
2224
},
2325
"metadata": {
2426
"inputs": [
2527
{
26-
"id": "GITHUB_TOKEN",
28+
"id": "GITHUB_PERSONAL_ACCESS_TOKEN",
2729
"label": "GitHub Personal Access Token",
2830
"description": "Token used to authenticate with the GitHub API. Requires repo and read:org scopes.",
2931
"type": "password",
@@ -35,6 +37,16 @@
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",
44+
"description": "GitHub hostname. Set this for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency. Leave empty for github.com.",
45+
"type": "url",
46+
"required": false,
47+
"secret": false,
48+
"default": "https://api.github.com",
49+
"placeholder": "https://github.example.com"
3850
}
3951
]
4052
}

0 commit comments

Comments
 (0)