From 3eac0833cce9c4f60b591d098bda937fb6e1f969 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 21 Apr 2025 12:43:53 +0000 Subject: [PATCH 1/2] Update repo with server manifest from issue #96 --- mcp-registry/servers/context7@upstash.json | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 mcp-registry/servers/context7@upstash.json diff --git a/mcp-registry/servers/context7@upstash.json b/mcp-registry/servers/context7@upstash.json new file mode 100644 index 00000000..3ca5e801 --- /dev/null +++ b/mcp-registry/servers/context7@upstash.json @@ -0,0 +1,73 @@ +{ + "display_name": "Context7 MCP", + "license": "MIT", + "tags": [ + "documentation", + "LLM", + "MCP", + "prompt context", + "up-to-date docs", + "code examples", + "Cursor", + "Claude", + "VSCode", + "Windsurf" + ], + "installations": { + "npm": { + "type": "npm", + "command": "claude", + "args": [ + "mcp", + "add", + "context7", + "--", + "npx", + "-y", + "@upstash/context7-mcp@latest" + ], + "description": "Install in Claude Code" + }, + "custom": { + "type": "custom", + "command": "deno", + "args": [ + "run", + "--allow-net", + "npm:@upstash/context7-mcp" + ], + "description": "Alternative installation using Deno" + } + }, + "examples": [ + { + "title": "", + "description": "", + "prompt": "How do I use the new Next.js `after` function? use context7" + }, + { + "title": "", + "description": "", + "prompt": "How do I invalidate a query in React Query? use context7" + }, + { + "title": "", + "description": "", + "prompt": "How do I protect a route with NextAuth? use context7" + } + ], + "name": "@upstash/context7", + "repository": { + "type": "git", + "url": "https://github.com/upstash/context7" + }, + "homepage": "https://github.com/upstash/context7", + "author": { + "name": "upstash" + }, + "description": "LLMs rely on outdated or generic information about the libraries you use. You get:", + "categories": [ + "Knowledge Base" + ], + "is_official": false +} \ No newline at end of file From c0fe486eaa31836770f36eac2d7efd6fa481fbd7 Mon Sep 17 00:00:00 2001 From: calmini Date: Tue, 22 Apr 2025 10:05:06 +0800 Subject: [PATCH 2/2] chore: add tool schema --- mcp-registry/servers/context7.json | 104 +++++++++++++++++++++ mcp-registry/servers/context7@upstash.json | 73 --------------- 2 files changed, 104 insertions(+), 73 deletions(-) create mode 100644 mcp-registry/servers/context7.json delete mode 100644 mcp-registry/servers/context7@upstash.json diff --git a/mcp-registry/servers/context7.json b/mcp-registry/servers/context7.json new file mode 100644 index 00000000..5d059a32 --- /dev/null +++ b/mcp-registry/servers/context7.json @@ -0,0 +1,104 @@ +{ + "display_name": "Context7 MCP", + "license": "MIT", + "tags": [ + "documentation", + "LLM", + "MCP", + "prompt context", + "up-to-date docs", + "code examples", + "Cursor", + "Claude", + "VSCode", + "Windsurf" + ], + "installations": { + "npm": { + "type": "npm", + "command": "npx", + "args": [ + "-y", + "@upstash/context7-mcp@latest" + ], + "description": "Install with npx" + } + }, + "tools": [ + { + "name": "resolve-library-id", + "description": "Required first step: Resolves a general package name into a Context7-compatible library ID. Must be called before using 'get-library-docs' to retrieve a valid Context7-compatible library ID.", + "inputSchema": { + "type": "object", + "properties": { + "libraryName": { + "type": "string", + "description": "Library name to search for and retrieve a Context7-compatible library ID." + } + }, + "required": [ + "libraryName" + ], + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + } + }, + { + "name": "get-library-docs", + "description": "Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool.", + "inputSchema": { + "type": "object", + "properties": { + "context7CompatibleLibraryID": { + "type": "string", + "description": "Exact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id'." + }, + "topic": { + "type": "string", + "description": "Topic to focus documentation on (e.g., 'hooks', 'routing')." + }, + "tokens": { + "type": "number", + "description": "Maximum number of tokens of documentation to retrieve (default: 5000). Higher values provide more context but consume more tokens." + } + }, + "required": [ + "context7CompatibleLibraryID" + ], + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + } + } + ], + "examples": [ + { + "title": "", + "description": "", + "prompt": "How do I use the new Next.js `after` function? use context7" + }, + { + "title": "", + "description": "", + "prompt": "How do I invalidate a query in React Query? use context7" + }, + { + "title": "", + "description": "", + "prompt": "How do I protect a route with NextAuth? use context7" + } + ], + "name": "context7", + "repository": { + "type": "git", + "url": "https://github.com/upstash/context7" + }, + "homepage": "https://github.com/upstash/context7", + "author": { + "name": "upstash" + }, + "description": "LLMs rely on outdated or generic information about the libraries you use. You get:", + "categories": [ + "Knowledge Base" + ], + "is_official": false +} diff --git a/mcp-registry/servers/context7@upstash.json b/mcp-registry/servers/context7@upstash.json deleted file mode 100644 index 3ca5e801..00000000 --- a/mcp-registry/servers/context7@upstash.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "display_name": "Context7 MCP", - "license": "MIT", - "tags": [ - "documentation", - "LLM", - "MCP", - "prompt context", - "up-to-date docs", - "code examples", - "Cursor", - "Claude", - "VSCode", - "Windsurf" - ], - "installations": { - "npm": { - "type": "npm", - "command": "claude", - "args": [ - "mcp", - "add", - "context7", - "--", - "npx", - "-y", - "@upstash/context7-mcp@latest" - ], - "description": "Install in Claude Code" - }, - "custom": { - "type": "custom", - "command": "deno", - "args": [ - "run", - "--allow-net", - "npm:@upstash/context7-mcp" - ], - "description": "Alternative installation using Deno" - } - }, - "examples": [ - { - "title": "", - "description": "", - "prompt": "How do I use the new Next.js `after` function? use context7" - }, - { - "title": "", - "description": "", - "prompt": "How do I invalidate a query in React Query? use context7" - }, - { - "title": "", - "description": "", - "prompt": "How do I protect a route with NextAuth? use context7" - } - ], - "name": "@upstash/context7", - "repository": { - "type": "git", - "url": "https://github.com/upstash/context7" - }, - "homepage": "https://github.com/upstash/context7", - "author": { - "name": "upstash" - }, - "description": "LLMs rely on outdated or generic information about the libraries you use. You get:", - "categories": [ - "Knowledge Base" - ], - "is_official": false -} \ No newline at end of file