mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-20 00:53:24 +02:00
Update src/everything/everything.ts
Co-authored-by: Cliff Hall <cliff@futurescale.com>
This commit is contained in:
committed by
GitHub
parent
d279ace6b4
commit
2b8ba4ac9f
@@ -540,13 +540,13 @@ export const createServer = () => {
|
|||||||
inputSchema: zodToJsonSchema(StructuredContentSchema.input) as ToolInput,
|
inputSchema: zodToJsonSchema(StructuredContentSchema.input) as ToolInput,
|
||||||
outputSchema: zodToJsonSchema(StructuredContentSchema.output) as ToolOutput,
|
outputSchema: zodToJsonSchema(StructuredContentSchema.output) as ToolOutput,
|
||||||
},
|
},
|
||||||
{
|
];
|
||||||
|
if (clientCapabilities!.roots) tools.push ({
|
||||||
name: ToolName.LIST_ROOTS,
|
name: ToolName.LIST_ROOTS,
|
||||||
description:
|
description:
|
||||||
"Lists the current MCP roots provided by the client. Demonstrates the roots protocol capability even though this server doesn't access files.",
|
"Lists the current MCP roots provided by the client. Demonstrates the roots protocol capability even though this server doesn't access files.",
|
||||||
inputSchema: zodToJsonSchema(ListRootsSchema) as ToolInput,
|
inputSchema: zodToJsonSchema(ListRootsSchema) as ToolInput,
|
||||||
},
|
});
|
||||||
];
|
|
||||||
|
|
||||||
return { tools };
|
return { tools };
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user