@upstash/context7-mcp 1.0.22 → 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 +32 -53
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -511,61 +511,40 @@ Add the following configuration to your OpenAI Codex MCP server settings:
|
|
|
511
511
|
[mcp_servers.context7]
|
|
512
512
|
args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
|
|
513
513
|
command = "npx"
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
⚠️ Windows Notes
|
|
517
|
-
|
|
518
|
-
On Windows, some users may encounter request timed out errors with the default configuration.
|
|
519
|
-
In that case, explicitly configure the MCP server with the full path to Node.js and the installed package:
|
|
520
|
-
|
|
521
|
-
```toml
|
|
522
|
-
[mcp_servers.context7]
|
|
523
|
-
command = "C:\\Program Files\\nodejs\\node.exe"
|
|
524
|
-
args = [
|
|
525
|
-
"C:\\Users\\yourname\\AppData\\Roaming\\npm\\node_modules\\@upstash\\context7-mcp\\dist\\index.js",
|
|
526
|
-
"--transport",
|
|
527
|
-
"stdio",
|
|
528
|
-
"--api-key",
|
|
529
|
-
"YOUR_API_KEY"
|
|
530
|
-
]
|
|
531
|
-
```
|
|
532
|
-
|
|
533
|
-
Alternatively, you can use the following configuration:
|
|
534
|
-
|
|
535
|
-
```toml
|
|
536
|
-
[mcp_servers.context7]
|
|
537
|
-
command = "cmd"
|
|
538
|
-
args = [
|
|
539
|
-
"/c",
|
|
540
|
-
"npx",
|
|
541
|
-
"-y",
|
|
542
|
-
"@upstash/context7-mcp",
|
|
543
|
-
"--api-key",
|
|
544
|
-
"YOUR_API_KEY"
|
|
545
|
-
]
|
|
546
|
-
env = { SystemRoot="C:\\Windows" }
|
|
547
514
|
startup_timeout_ms = 20_000
|
|
548
515
|
```
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
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.
|
|
569
548
|
|
|
570
549
|
</details>
|
|
571
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"}}
|