Context7 Platform -- Up-to-date docs for AI agents
fix: Fix `InitializeResult` schema mismatch in Context7 server response
Niel Thiartfd2a2d629901
diff --git a/src/index.ts b/src/index.tsindex 45dbaf08..bc1b3f9b 100644--- a/src/index.ts+++ b/src/index.ts@@ -48,15 +48,16 @@ const sseTransports: Record<string, SSEServerTransport> = {};// Function to create a new server instance with all tools registeredfunction createServerInstance() {- const server = new McpServer({- name: "Context7",- description: "Retrieves up-to-date documentation and code examples for any library.",- version: "1.0.13",- capabilities: {- resources: {},- tools: {},+ const server = new McpServer(+ {+ name: "Context7",+ version: "1.0.13",},- });+ {+ instructions:+ "Use this server to retrieve up-to-date documentation and code examples for any library.",+ }+ );// Register Context7 toolsserver.tool(