@upstash/context7-mcp 1.0.28 → 1.0.29
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 +1 -1
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1263,7 +1263,7 @@ Context7 MCP provides the following tools that LLMs can use:
|
|
|
1263
1263
|
- `get-library-docs`: Fetches documentation for a library using a Context7-compatible library ID.
|
|
1264
1264
|
- `context7CompatibleLibraryID` (required): Exact Context7-compatible library ID (e.g., `/mongodb/docs`, `/vercel/next.js`)
|
|
1265
1265
|
- `topic` (optional): Focus the docs on a specific topic (e.g., "routing", "hooks")
|
|
1266
|
-
- `
|
|
1266
|
+
- `page` (optional, default 1): Page number for pagination (1-10). If the context is not sufficient, try page=2, page=3, etc. with the same topic.
|
|
1267
1267
|
|
|
1268
1268
|
## 🛟 Tips
|
|
1269
1269
|
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ function getClientIp(req) {
|
|
|
69
69
|
}
|
|
70
70
|
const server = new McpServer({
|
|
71
71
|
name: "Context7",
|
|
72
|
-
version: "1.0.
|
|
72
|
+
version: "1.0.29",
|
|
73
73
|
}, {
|
|
74
74
|
instructions: "Use this server to retrieve up-to-date documentation and code examples for any library.",
|
|
75
75
|
});
|
|
@@ -157,9 +157,10 @@ server.registerTool("get-library-docs", {
|
|
|
157
157
|
.int()
|
|
158
158
|
.min(1)
|
|
159
159
|
.max(10)
|
|
160
|
-
.
|
|
160
|
+
.optional()
|
|
161
|
+
.describe("Page number for pagination (start: 1, default: 1). If the context is not sufficient, try page=2, page=3, page=4, etc. with the same topic."),
|
|
161
162
|
},
|
|
162
|
-
}, async ({ context7CompatibleLibraryID, page = 1, topic
|
|
163
|
+
}, async ({ context7CompatibleLibraryID, page = 1, topic }) => {
|
|
163
164
|
const ctx = requestContext.getStore();
|
|
164
165
|
const apiKey = ctx?.apiKey || globalApiKey;
|
|
165
166
|
const fetchDocsResponse = await fetchLibraryDocumentation(context7CompatibleLibraryID, {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@upstash/context7-mcp","version":"1.0.
|
|
1
|
+
{"name":"@upstash/context7-mcp","version":"1.0.29","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","@types/express":"^5.0.4","commander":"^14.0.0","express":"^5.1.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"}}
|