mirror of
https://github.com/upstash/context7.git
synced 2025-12-04 11:00:40 +00:00
Merge pull request #283 from nielthiart/fix-initialize-result
This commit is contained in:
commit
d2083b92a7
17
src/index.ts
17
src/index.ts
@ -48,15 +48,16 @@ const sseTransports: Record<string, SSEServerTransport> = {};
|
|||||||
|
|
||||||
// Function to create a new server instance with all tools registered
|
// Function to create a new server instance with all tools registered
|
||||||
function createServerInstance() {
|
function createServerInstance() {
|
||||||
const server = new McpServer({
|
const server = new McpServer(
|
||||||
name: "Context7",
|
{
|
||||||
description: "Retrieves up-to-date documentation and code examples for any library.",
|
name: "Context7",
|
||||||
version: "1.0.13",
|
version: "1.0.13",
|
||||||
capabilities: {
|
|
||||||
resources: {},
|
|
||||||
tools: {},
|
|
||||||
},
|
},
|
||||||
});
|
{
|
||||||
|
instructions:
|
||||||
|
"Use this server to retrieve up-to-date documentation and code examples for any library.",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Register Context7 tools
|
// Register Context7 tools
|
||||||
server.tool(
|
server.tool(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user