Merge pull request #283 from nielthiart/fix-initialize-result

This commit is contained in:
Enes Gules 2025-06-13 09:40:22 +03:00 committed by GitHub
commit d2083b92a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,15 +48,16 @@ const sseTransports: Record<string, SSEServerTransport> = {};
// Function to create a new server instance with all tools registered
function 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 tools
server.tool(