From 2b8ba4ac9fd949607c3d76db7c0cf14e6228aa6e Mon Sep 17 00:00:00 2001 From: Kumbham Ajay Goud Date: Thu, 28 Aug 2025 22:16:52 +0530 Subject: [PATCH] Update src/everything/everything.ts Co-authored-by: Cliff Hall --- src/everything/everything.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/everything/everything.ts b/src/everything/everything.ts index 7f342003..340def80 100644 --- a/src/everything/everything.ts +++ b/src/everything/everything.ts @@ -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 }; });