@upstash/context7-mcp 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -53
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -401,6 +401,45 @@ If the `mcpServers` object does not exist, create it.
|
|
|
401
401
|
|
|
402
402
|
</details>
|
|
403
403
|
|
|
404
|
+
<details>
|
|
405
|
+
<summary><b>Install in Qwen Coder</b></summary>
|
|
406
|
+
|
|
407
|
+
See [Qwen Coder MCP Configuration](https://qwenlm.github.io/qwen-code-docs/en/tools/mcp-server/#how-to-set-up-your-mcp-server) for details.
|
|
408
|
+
|
|
409
|
+
1. Open the Qwen Coder settings file. The location is `~/.qwen/settings.json` (where `~` is your home directory).
|
|
410
|
+
2. Add the following to the `mcpServers` object in your `settings.json` file:
|
|
411
|
+
|
|
412
|
+
```json
|
|
413
|
+
{
|
|
414
|
+
"mcpServers": {
|
|
415
|
+
"context7": {
|
|
416
|
+
"httpUrl": "https://mcp.context7.com/mcp",
|
|
417
|
+
"headers": {
|
|
418
|
+
"CONTEXT7_API_KEY": "YOUR_API_KEY",
|
|
419
|
+
"Accept": "application/json, text/event-stream"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
Or, for a local server:
|
|
427
|
+
|
|
428
|
+
```json
|
|
429
|
+
{
|
|
430
|
+
"mcpServers": {
|
|
431
|
+
"context7": {
|
|
432
|
+
"command": "npx",
|
|
433
|
+
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
If the `mcpServers` object does not exist, create it.
|
|
440
|
+
|
|
441
|
+
</details>
|
|
442
|
+
|
|
404
443
|
<details>
|
|
405
444
|
<summary><b>Install in Claude Desktop</b></summary>
|
|
406
445
|
|
|
@@ -472,61 +511,40 @@ Add the following configuration to your OpenAI Codex MCP server settings:
|
|
|
472
511
|
[mcp_servers.context7]
|
|
473
512
|
args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
|
|
474
513
|
command = "npx"
|
|
475
|
-
```
|
|
476
|
-
|
|
477
|
-
⚠️ Windows Notes
|
|
478
|
-
|
|
479
|
-
On Windows, some users may encounter request timed out errors with the default configuration.
|
|
480
|
-
In that case, explicitly configure the MCP server with the full path to Node.js and the installed package:
|
|
481
|
-
|
|
482
|
-
```toml
|
|
483
|
-
[mcp_servers.context7]
|
|
484
|
-
command = "C:\\Program Files\\nodejs\\node.exe"
|
|
485
|
-
args = [
|
|
486
|
-
"C:\\Users\\yourname\\AppData\\Roaming\\npm\\node_modules\\@upstash\\context7-mcp\\dist\\index.js",
|
|
487
|
-
"--transport",
|
|
488
|
-
"stdio",
|
|
489
|
-
"--api-key",
|
|
490
|
-
"YOUR_API_KEY"
|
|
491
|
-
]
|
|
492
|
-
```
|
|
493
|
-
|
|
494
|
-
Alternatively, you can use the following configuration:
|
|
495
|
-
|
|
496
|
-
```toml
|
|
497
|
-
[mcp_servers.context7]
|
|
498
|
-
command = "cmd"
|
|
499
|
-
args = [
|
|
500
|
-
"/c",
|
|
501
|
-
"npx",
|
|
502
|
-
"-y",
|
|
503
|
-
"@upstash/context7-mcp",
|
|
504
|
-
"--api-key",
|
|
505
|
-
"YOUR_API_KEY"
|
|
506
|
-
]
|
|
507
|
-
env = { SystemRoot="C:\\Windows" }
|
|
508
514
|
startup_timeout_ms = 20_000
|
|
509
515
|
```
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
516
|
+
> Optional troubleshooting — only if you see startup "request timed out" or "not found program". Most users can ignore this.
|
|
517
|
+
>
|
|
518
|
+
> - First try: increase `startup_timeout_ms` to `40_000` and retry.
|
|
519
|
+
> - Windows quick fix (absolute `npx` path + explicit env):
|
|
520
|
+
>
|
|
521
|
+
> ```toml
|
|
522
|
+
> [mcp_servers.context7]
|
|
523
|
+
> command = "C:\\Users\\yourname\\AppData\\Roaming\\npm\\npx.cmd"
|
|
524
|
+
> args = [
|
|
525
|
+
> "-y",
|
|
526
|
+
> "@upstash/context7-mcp",
|
|
527
|
+
> "--api-key",
|
|
528
|
+
> "YOUR_API_KEY"
|
|
529
|
+
> ]
|
|
530
|
+
> env = { SystemRoot="C:\\Windows", APPDATA="C:\\Users\\yourname\\AppData\\Roaming" }
|
|
531
|
+
> startup_timeout_ms = 40_000
|
|
532
|
+
> ```
|
|
533
|
+
>
|
|
534
|
+
> - macOS quick fix (use Node + installed package entry point):
|
|
535
|
+
>
|
|
536
|
+
> ```toml
|
|
537
|
+
> [mcp_servers.context7]
|
|
538
|
+
> command = "/Users/yourname/.nvm/versions/node/v22.14.0/bin/node"
|
|
539
|
+
> args = ["/Users/yourname/.nvm/versions/node/v22.14.0/lib/node_modules/@upstash/context7-mcp/dist/index.js",
|
|
540
|
+
> "--transport",
|
|
541
|
+
> "stdio",
|
|
542
|
+
> "--api-key",
|
|
543
|
+
> "YOUR_API_KEY"
|
|
544
|
+
> ]
|
|
545
|
+
> ```
|
|
546
|
+
>
|
|
547
|
+
> Notes: Replace `yourname` with your OS username. Explicitly setting `APPDATA` and `SystemRoot` is essential because these are required by `npx` on Windows but not set by certain versions of OpenAI Codex mcp clients by default.
|
|
530
548
|
|
|
531
549
|
</details>
|
|
532
550
|
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function getClientIp(req) {
|
|
|
77
77
|
function createServerInstance(clientIp, apiKey) {
|
|
78
78
|
const server = new McpServer({
|
|
79
79
|
name: "Context7",
|
|
80
|
-
version: "1.0.
|
|
80
|
+
version: "1.0.23",
|
|
81
81
|
}, {
|
|
82
82
|
instructions: "Use this server to retrieve up-to-date documentation and code examples for any library.",
|
|
83
83
|
});
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@upstash/context7-mcp","version":"1.0.
|
|
1
|
+
{"name":"@upstash/context7-mcp","version":"1.0.23","mcpName":"io.github.upstash/context7","description":"MCP server for Context7","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc && chmod 755 dist/index.js","format":"prettier --write .","lint":"eslint \"**/*.{js,ts,tsx}\" --fix","lint:check":"eslint \"**/*.{js,ts,tsx}\"","start":"node dist/index.js --transport http","pack-mcpb":"bun install && bun run build && rm -rf node_modules && bun install --production && mv mcpb/.mcpbignore .mcpbignore && mv mcpb/manifest.json manifest.json && mv public/icon.png icon.png && mcpb validate manifest.json && mcpb pack . mcpb/context7.mcpb && mv manifest.json mcpb/manifest.json && mv .mcpbignore mcpb/.mcpbignore && mv icon.png public/icon.png && bun install"},"repository":{"type":"git","url":"git+https://github.com/upstash/context7.git"},"keywords":["modelcontextprotocol","mcp","context7","vibe-coding","developer tools","documentation","context"],"author":"abdush","license":"MIT","type":"module","bin":{"context7-mcp":"dist/index.js"},"files":["dist"],"bugs":{"url":"https://github.com/upstash/context7/issues"},"homepage":"https://github.com/upstash/context7#readme","dependencies":{"@modelcontextprotocol/sdk":"^1.17.5","commander":"^14.0.0","undici":"^6.6.3","zod":"^3.24.2"},"devDependencies":{"@types/node":"^22.13.14","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0","eslint":"^9.34.0","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.5","prettier":"^3.6.2","typescript":"^5.8.2","typescript-eslint":"^8.28.0"}}
|