Skip to content

Commit fa16b5f

Browse files
committed
Add headers support to HTTP transport schema, use PAT bearer for GitHub
Schema change: - Added optional 'headers' field to HTTP transport with ${input:ID} placeholder support GitHub remote definition: - Added Authorization header: "Bearer ${input:GITHUB_TOKEN}" - Changed auth type from oauth to api_key (PAT-only, no DCR/OAuth) - Made GITHUB_TOKEN required - Platform does not use DCR or pre-registered OAuth clients https://claude.ai/code/session_013AxurW8hPAfnUNvik354Xx
1 parent 3531bce commit fa16b5f

2 files changed

Lines changed: 13 additions & 5 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: 8 additions & 5 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. Supports OAuth or Personal Access Token (Bearer) authentication.",
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.",
77
"icon": "https://avatars.githubusercontent.com/u/9919?v=4",
88
"schema_version": "2.1",
99
"categories": ["developer-tools", "version-control"],
@@ -12,14 +12,17 @@
1212
"transport": {
1313
"type": "http",
1414
"url": "https://api.githubcopilot.com/mcp/",
15+
"headers": {
16+
"Authorization": "Bearer ${input:GITHUB_TOKEN}"
17+
},
1518
"metadata": {
1619
"inputs": [
1720
{
1821
"id": "GITHUB_TOKEN",
1922
"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.",
23+
"description": "Personal Access Token for GitHub. Create a fine-grained PAT with the scopes needed for the tools you want to use.",
2124
"type": "password",
22-
"required": false,
25+
"required": true,
2326
"secret": true,
2427
"placeholder": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
2528
"obtain": {
@@ -33,8 +36,8 @@
3336
},
3437

3538
"auth": {
36-
"type": "oauth",
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."
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."
3841
},
3942

4043
"contributor": {

0 commit comments

Comments
 (0)