Skip to content

Commit d2083b9

Browse files
authored
Merge pull request #283 from nielthiart/fix-initialize-result
2 parents 7005d7d + fd2a2d6 commit d2083b9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/index.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ const sseTransports: Record<string, SSEServerTransport> = {};
4848

4949
// Function to create a new server instance with all tools registered
5050
function createServerInstance() {
51-
const server = new McpServer({
52-
name: "Context7",
53-
description: "Retrieves up-to-date documentation and code examples for any library.",
54-
version: "1.0.13",
55-
capabilities: {
56-
resources: {},
57-
tools: {},
51+
const server = new McpServer(
52+
{
53+
name: "Context7",
54+
version: "1.0.13",
5855
},
59-
});
56+
{
57+
instructions:
58+
"Use this server to retrieve up-to-date documentation and code examples for any library.",
59+
}
60+
);
6061

6162
// Register Context7 tools
6263
server.tool(

0 commit comments

Comments
 (0)