Skip to content

Commit f15579d

Browse files
committed
Add default field to schema, fix GITHUB_HOST default and input ID mismatch
- Add `default` property to input schema - Add default value "https://api.github.com" to GITHUB_HOST input - Fix input ID mismatch: GITHUB_TOKEN → GITHUB_PERSONAL_ACCESS_TOKEN to match env var https://claude.ai/code/session_013AxurW8hPAfnUNvik354Xx
1 parent fa16b5f commit f15579d

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

schemas/server-definition.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@
223223
"type": "string",
224224
"description": "Help text for this input"
225225
},
226+
"default": {
227+
"type": "string",
228+
"description": "Default value for this input. Used when the user does not provide a value."
229+
},
226230
"placeholder": {
227231
"type": "string",
228232
"description": "Placeholder text"

servers/com.github-mcp.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"ghcr.io/github/github-mcp-server"
2020
],
2121
"env": {
22-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:GITHUB_TOKEN}",
22+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:GITHUB_PERSONAL_ACCESS_TOKEN}",
2323
"GITHUB_HOST": "${input:GITHUB_HOST}"
2424
},
2525
"metadata": {
2626
"inputs": [
2727
{
28-
"id": "GITHUB_TOKEN",
28+
"id": "GITHUB_PERSONAL_ACCESS_TOKEN",
2929
"label": "GitHub Personal Access Token",
3030
"description": "Token used to authenticate with the GitHub API. Requires repo and read:org scopes.",
3131
"type": "password",
@@ -40,12 +40,13 @@
4040
},
4141
{
4242
"id": "GITHUB_HOST",
43-
"label": "GitHub Host (Optional)",
44-
"description": "Leave empty for GitHub.com. For GitHub Enterprise Server, use https://YOUR-HOSTNAME. For GitHub Enterprise Cloud with data residency, use https://SUBDOMAIN.ghe.com.",
45-
"type": "text",
43+
"label": "GitHub Host",
44+
"description": "GitHub hostname. Set this for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency. Leave empty for github.com.",
45+
"type": "url",
4646
"required": false,
4747
"secret": false,
48-
"placeholder": "https://github.example.com or https://octocorp.ghe.com"
48+
"default": "https://api.github.com",
49+
"placeholder": "https://github.example.com"
4950
}
5051
]
5152
}

0 commit comments

Comments
 (0)