@upstash/context7-mcp 3.2.3 → 3.2.5
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 +22 -3
- package/dist/index.js +2 -2
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ Check out our [project addition guide](https://context7.com/docs/adding-librarie
|
|
|
51
51
|
|
|
52
52
|
### Requirements
|
|
53
53
|
|
|
54
|
-
- Node.js >=
|
|
54
|
+
- Node.js >= v20.18.1
|
|
55
55
|
- Cursor, Claude Code, VSCode, Devin Desktop or another MCP Client
|
|
56
56
|
- Context7 API Key (Optional) for higher rate limits and private repositories (Get yours by creating an account at [context7.com/dashboard](https://context7.com/dashboard))
|
|
57
57
|
|
|
@@ -852,7 +852,7 @@ If you prefer to run the MCP server in a Docker container:
|
|
|
852
852
|
<summary>Click to see Dockerfile content</summary>
|
|
853
853
|
|
|
854
854
|
```Dockerfile
|
|
855
|
-
FROM node:
|
|
855
|
+
FROM node:20-alpine
|
|
856
856
|
|
|
857
857
|
WORKDIR /app
|
|
858
858
|
|
|
@@ -1366,6 +1366,25 @@ See the [Emdash repository](https://github.com/generalaction/emdash) for more in
|
|
|
1366
1366
|
|
|
1367
1367
|
</details>
|
|
1368
1368
|
|
|
1369
|
+
<details>
|
|
1370
|
+
<summary><b>Install in Autohand Code</b></summary>
|
|
1371
|
+
|
|
1372
|
+
Use the [Autohand Code CLI](https://github.com/autohandai/code-cli/) to add the local Context7 server:
|
|
1373
|
+
|
|
1374
|
+
```sh
|
|
1375
|
+
autohand mcp add context7 npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
|
|
1376
|
+
```
|
|
1377
|
+
|
|
1378
|
+
Add `--scope project` before `context7` to save the server in the current project's `.autohand` configuration instead of your user configuration.
|
|
1379
|
+
|
|
1380
|
+
For basic usage without an API key, you can connect to the remote server instead:
|
|
1381
|
+
|
|
1382
|
+
```sh
|
|
1383
|
+
autohand mcp add --transport http context7 https://mcp.context7.com/mcp
|
|
1384
|
+
```
|
|
1385
|
+
|
|
1386
|
+
</details>
|
|
1387
|
+
|
|
1369
1388
|
## 🔨 Available Tools
|
|
1370
1389
|
|
|
1371
1390
|
Context7 MCP provides the following tools that LLMs can use:
|
|
@@ -1573,7 +1592,7 @@ Use the `--experimental-fetch` flag to bypass TLS-related problems:
|
|
|
1573
1592
|
1. Try adding `@latest` to the package name
|
|
1574
1593
|
2. Use `bunx` as an alternative to `npx`
|
|
1575
1594
|
3. Consider using `deno` as another alternative
|
|
1576
|
-
4. Ensure you're using Node.js
|
|
1595
|
+
4. Ensure you're using Node.js v20 or higher for native fetch support
|
|
1577
1596
|
|
|
1578
1597
|
</details>
|
|
1579
1598
|
|
package/dist/index.js
CHANGED
|
@@ -129,7 +129,7 @@ IMPORTANT: Do not call this tool more than 3 times per question. If you cannot f
|
|
|
129
129
|
inputSchema: {
|
|
130
130
|
query: z
|
|
131
131
|
.string()
|
|
132
|
-
.describe("
|
|
132
|
+
.describe("What to look up in the library's documentation. This is used to rank library results by relevance to what the user is trying to accomplish. The query is sent to the Context7 API for processing. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query."),
|
|
133
133
|
libraryName: z
|
|
134
134
|
.string()
|
|
135
135
|
.describe("Library name to search for and retrieve a Context7-compatible library ID. Use the official library name with proper punctuation — e.g., 'Next.js' instead of 'nextjs', 'Customer.io' instead of 'customerio', 'Three.js' instead of 'threejs'."),
|
|
@@ -180,7 +180,7 @@ Do not call this tool more than 3 times per question.`,
|
|
|
180
180
|
.describe("Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase', '/vercel/next.js/v14.3.0-canary.87') retrieved from 'resolve-library-id' or directly from user query in the format '/org/project' or '/org/project/version'."),
|
|
181
181
|
query: z
|
|
182
182
|
.string()
|
|
183
|
-
.describe("
|
|
183
|
+
.describe("What to look up in the library's documentation, scoped to a single concept. Be specific and include relevant details, but keep each query to one topic — if the user's question spans multiple distinct concepts, make a separate call per concept instead of combining them, unless the question is about how the concepts interact. Good: 'How to set up authentication with JWT in Express.js' or 'React useEffect cleanup function examples'. Bad (too vague): 'auth' or 'hooks'. Bad (too broad): 'routing and auth and caching in Next.js'. The query is sent to the Context7 API for processing. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query."),
|
|
184
184
|
},
|
|
185
185
|
annotations: {
|
|
186
186
|
readOnlyHint: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstash/context7-mcp",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"mcpName": "io.github.upstash/context7",
|
|
5
5
|
"description": "MCP server for Context7",
|
|
6
6
|
"repository": {
|
|
@@ -38,14 +38,17 @@
|
|
|
38
38
|
"@upstash/redis": "^1.38.0",
|
|
39
39
|
"commander": "^13.1.0",
|
|
40
40
|
"express": "^5.1.0",
|
|
41
|
-
"jose": "^6.
|
|
42
|
-
"undici": "^
|
|
41
|
+
"jose": "^6.2.3",
|
|
42
|
+
"undici": "^7.0.0",
|
|
43
43
|
"zod": "^4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^25.0.3",
|
|
47
47
|
"typescript": "^5.8.2",
|
|
48
|
-
"vitest": "^4.
|
|
48
|
+
"vitest": "^4.1.9"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=20.18.1"
|
|
49
52
|
},
|
|
50
53
|
"scripts": {
|
|
51
54
|
"build": "tsc && chmod 755 dist/index.js",
|