Update src/everything/everything.ts

Co-authored-by: Cliff Hall <cliff@futurescale.com>
This commit is contained in:
Kumbham Ajay Goud 2025-08-28 22:16:52 +05:30 • committed by GitHub
commit 2b8ba4ac9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -540,14 +540,14 @@ export const createServer = () => {
inputSchema: zodToJsonSchema(StructuredContentSchema.input) as ToolInput,
outputSchema: zodToJsonSchema(StructuredContentSchema.output) as ToolOutput,
},
{
];
if (clientCapabilities!.roots) tools.push ({
name: ToolName.LIST_ROOTS,
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,
},
];
});
return { tools };
});