Skip to content

Commit 6ec8da7

Browse files
committed
feat: add optional PAT input to GitHub remote HTTP variant
Allow users to optionally provide a Personal Access Token instead of using the default OAuth flow. Auth type changed to optional_api_key. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 260e4df commit 6ec8da7

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
@@ -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": "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+
]
1732
}
1833
},
1934

2035
"auth": {
21-
"type": "oauth",
22-
"instructions": "Authenticates via OAuth in your browser using your GitHub account. No token setup needed."
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."
2338
},
2439

2540
"contributor": {

0 commit comments

Comments
 (0)