Skip to content

Commit 3531bce

Browse files
committed
Add bearer auth token input to GitHub remote MCP server
GitHub's remote MCP endpoint supports both OAuth and PAT bearer token authentication. Added optional GITHUB_TOKEN input for hosts that don't have pre-registered GitHub OAuth Apps. https://claude.ai/code/session_013AxurW8hPAfnUNvik354Xx
1 parent f233bba commit 3531bce

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

servers/com.github-mcp-http.json

Lines changed: 18 additions & 3 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-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.).",
6+
"description": "Interact with GitHub repositories, issues, pull requests, actions, and code security through GitHub's hosted remote MCP server. No local installation required. Supports OAuth or Personal Access Token (Bearer) authentication.",
77
"icon": "https://avatars.githubusercontent.com/u/9919?v=4",
88
"schema_version": "2.1",
99
"categories": ["developer-tools", "version-control"],
@@ -13,13 +13,28 @@
1313
"type": "http",
1414
"url": "https://api.githubcopilot.com/mcp/",
1515
"metadata": {
16-
"inputs": []
16+
"inputs": [
17+
{
18+
"id": "GITHUB_TOKEN",
19+
"label": "GitHub Personal Access Token",
20+
"description": "Personal Access Token for bearer authentication. Required if your MCP host does not support GitHub OAuth. Create a fine-grained PAT with the scopes needed for the tools you want to use.",
21+
"type": "password",
22+
"required": false,
23+
"secret": true,
24+
"placeholder": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
25+
"obtain": {
26+
"url": "https://github.com/settings/tokens?type=beta",
27+
"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",
28+
"button_label": "Create Token"
29+
}
30+
}
31+
]
1732
}
1833
},
1934

2035
"auth": {
2136
"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."
37+
"instructions": "Primary: OAuth via a pre-registered GitHub OAuth App (VS Code 1.101+, Claude Desktop, Cursor, Windsurf). GitHub does not support DCR. Alternative: Provide a GitHub Personal Access Token (PAT) as a Bearer token in the Authorization header for hosts that don't support GitHub OAuth."
2338
},
2439

2540
"contributor": {

0 commit comments

Comments
 (0)