Skip to content

Commit 176cdf0

Browse files
committed
feat: add headers support to HTTP transport schema, use in GitHub PAT variant
- Add optional `headers` field to HTTP transport schema for sending custom headers (supports ${input:ID} interpolation) - GitHub PAT variant now sends `Authorization: Bearer ${input:GITHUB_TOKEN}` Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent b984361 commit 176cdf0

2 files changed

Lines changed: 8 additions & 0 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 send with requests (supports ${input:ID} interpolation)"
174+
},
170175
"metadata": {
171176
"$ref": "#/$defs/metadata"
172177
}

servers/com.github-mcp-http-pat.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
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
{

0 commit comments

Comments
 (0)