@upstash/context7-mcp 1.0.22 → 1.0.24

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.
Files changed (3) hide show
  1. package/README.md +32 -52
  2. package/dist/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -511,61 +511,41 @@ 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
516
 
550
- This ensures Codex CLI works reliably on Windows.
551
-
552
- ⚠️ MacOS Notes
553
-
554
- On MacOS, some users may encounter the same request timed out errors like Windows,
555
- it also can be solved with the full path to Node.js and the installed package:
556
-
557
- ```toml
558
- [mcp_servers.context7]
559
- command = "/Users/yourname/.nvm/versions/node/v22.14.0/bin/node" # Node.js full path
560
- args = ["/Users/yourname/.nvm/versions/node/v22.14.0/lib/node_modules/@upstash/context7-mcp/dist/index.js",
561
- "--transport",
562
- "stdio",
563
- "--api-key",
564
- "YOUR_API_KEY"
565
- ]
566
- ```
567
-
568
- This ensures Codex CLI works reliably on MacOS.
517
+ > Optional troubleshooting only if you see startup "request timed out" or "not found program". Most users can ignore this.
518
+ >
519
+ > - First try: increase `startup_timeout_ms` to `40_000` and retry.
520
+ > - Windows quick fix (absolute `npx` path + explicit env):
521
+ >
522
+ > ```toml
523
+ > [mcp_servers.context7]
524
+ > command = "C:\\Users\\yourname\\AppData\\Roaming\\npm\\npx.cmd"
525
+ > args = [
526
+ > "-y",
527
+ > "@upstash/context7-mcp",
528
+ > "--api-key",
529
+ > "YOUR_API_KEY"
530
+ > ]
531
+ > env = { SystemRoot="C:\\Windows", APPDATA="C:\\Users\\yourname\\AppData\\Roaming" }
532
+ > startup_timeout_ms = 40_000
533
+ > ```
534
+ >
535
+ > - macOS quick fix (use Node + installed package entry point):
536
+ >
537
+ > ```toml
538
+ > [mcp_servers.context7]
539
+ > command = "/Users/yourname/.nvm/versions/node/v22.14.0/bin/node"
540
+ > args = ["/Users/yourname/.nvm/versions/node/v22.14.0/lib/node_modules/@upstash/context7-mcp/dist/index.js",
541
+ > "--transport",
542
+ > "stdio",
543
+ > "--api-key",
544
+ > "YOUR_API_KEY"
545
+ > ]
546
+ > ```
547
+ >
548
+ > 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
549
 
570
550
  </details>
571
551
 
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.22",
80
+ version: "1.0.24",
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.22","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"}}
1
+ {"name":"@upstash/context7-mcp","version":"1.0.24","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"}}