Skip to content

Commit b984361

Browse files
committed
feat: split GitHub HTTP into separate OAuth and PAT variants
- com.github-mcp-http: pure OAuth, zero config - com.github-mcp-http-pat: PAT-based auth with required token input Cleaner separation so users pick the auth method they want. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 6ec8da7 commit b984361

2 files changed

Lines changed: 66 additions & 19 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.github-mcp-http-pat",
4+
"name": "GitHub (Remote PAT)",
5+
"alias": "gh-pat",
6+
"description": "Interact with GitHub repositories, issues, pull requests, actions, and code security through GitHub's hosted remote MCP server. Authenticates with a Personal Access Token.",
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", "pat"],
11+
12+
"transport": {
13+
"type": "http",
14+
"url": "https://api.githubcopilot.com/mcp/",
15+
"metadata": {
16+
"inputs": [
17+
{
18+
"id": "GITHUB_TOKEN",
19+
"label": "GitHub Personal Access Token",
20+
"description": "PAT sent as Bearer token to the GitHub remote MCP server. Requires repo and read:org scopes.",
21+
"type": "text",
22+
"required": true,
23+
"secret": true,
24+
"placeholder": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
25+
"obtain": {
26+
"url": "https://github.com/settings/tokens/new",
27+
"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_)",
28+
"button_label": "Create Token"
29+
}
30+
}
31+
]
32+
}
33+
},
34+
35+
"auth": {
36+
"type": "api_key",
37+
"instructions": "Create a personal access token at https://github.com/settings/tokens with repo and read:org scopes"
38+
},
39+
40+
"contributor": {
41+
"name": "GitHub",
42+
"github": "github",
43+
"url": "https://github.com"
44+
},
45+
46+
"links": {
47+
"repository": "https://github.com/github/github-mcp-server",
48+
"homepage": "https://github.com",
49+
"documentation": "https://github.com/github/github-mcp-server#readme"
50+
},
51+
52+
"platforms": ["all"],
53+
54+
"capabilities": {
55+
"tools": true,
56+
"resources": true,
57+
"prompts": true,
58+
"read_only_mode": false
59+
},
60+
61+
"changelog_url": "https://github.com/github/github-mcp-server/releases"
62+
}

servers/com.github-mcp-http.json

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"id": "com.github-mcp-http",
44
"name": "GitHub (Remote)",
55
"alias": "gh",
6-
"description": "Interact with GitHub repositories, issues, pull requests, actions, and code security through GitHub's hosted remote MCP server. No local setup required.",
6+
"description": "Interact with GitHub repositories, issues, pull requests, actions, and code security through GitHub's hosted remote MCP server. Authenticates via OAuth, no token setup required.",
77
"icon": "https://avatars.githubusercontent.com/u/9919?v=4",
88
"schema_version": "2.1",
99
"categories": ["developer-tools", "version-control"],
@@ -13,28 +13,13 @@
1313
"type": "http",
1414
"url": "https://api.githubcopilot.com/mcp/",
1515
"metadata": {
16-
"inputs": [
17-
{
18-
"id": "GITHUB_TOKEN",
19-
"label": "GitHub Personal Access Token",
20-
"description": "Optional PAT for authentication instead of OAuth. If provided, sent as Bearer token. Leave empty to use OAuth flow.",
21-
"type": "text",
22-
"required": false,
23-
"secret": true,
24-
"placeholder": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
25-
"obtain": {
26-
"url": "https://github.com/settings/tokens/new",
27-
"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_)",
28-
"button_label": "Create Token"
29-
}
30-
}
31-
]
16+
"inputs": []
3217
}
3318
},
3419

3520
"auth": {
36-
"type": "optional_api_key",
37-
"instructions": "Uses OAuth by default. Optionally provide a Personal Access Token (PAT) with repo and read:org scopes for token-based auth."
21+
"type": "oauth",
22+
"instructions": "Authenticates via OAuth in your browser using your GitHub account. No token setup needed."
3823
},
3924

4025
"contributor": {

0 commit comments

Comments
 (0)