Skip to content

Commit 7de447f

Browse files
committed
Fix Context7: add CONTEXT7_API_KEY input with --api-key arg
Add optional API key input passed via --api-key CLI arg per official docs. Key format: ctx7sk_*, obtained from context7.com/dashboard for higher rate limits. https://claude.ai/code/session_013AxurW8hPAfnUNvik354Xx
1 parent 62b3d28 commit 7de447f

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

servers/com.upstash-context7.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,30 @@
1212
"transport": {
1313
"type": "stdio",
1414
"command": "npx",
15-
"args": ["-y", "@upstash/context7-mcp"],
15+
"args": ["-y", "@upstash/context7-mcp", "--api-key", "${input:CONTEXT7_API_KEY}"],
1616
"metadata": {
17-
"inputs": []
17+
"inputs": [
18+
{
19+
"id": "CONTEXT7_API_KEY",
20+
"label": "Context7 API Key",
21+
"description": "API key for higher rate limits. Get a free key at context7.com/dashboard.",
22+
"type": "password",
23+
"required": false,
24+
"secret": true,
25+
"placeholder": "ctx7sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
26+
"obtain": {
27+
"url": "https://context7.com/dashboard",
28+
"instructions": "1. Go to context7.com/dashboard\n2. Sign up or log in\n3. Generate a free API key\n4. Copy the key (starts with ctx7sk_)",
29+
"button_label": "Get Free API Key"
30+
}
31+
}
32+
]
1833
}
1934
},
2035

2136
"auth": {
22-
"type": "none"
37+
"type": "optional_api_key",
38+
"instructions": "Get a free API key at https://context7.com/dashboard for higher rate limits. Works without a key with limited requests."
2339
},
2440

2541
"contributor": {

0 commit comments

Comments
 (0)