Skip to content

Commit 2b8ba4a

Browse files
Update src/everything/everything.ts
Co-authored-by: Cliff Hall <cliff@futurescale.com>
1 parent d279ace commit 2b8ba4a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/everything/everything.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,14 +540,14 @@ export const createServer = () => {
540540
inputSchema: zodToJsonSchema(StructuredContentSchema.input) as ToolInput,
541541
outputSchema: zodToJsonSchema(StructuredContentSchema.output) as ToolOutput,
542542
},
543-
{
543+
];
544+
if (clientCapabilities!.roots) tools.push ({
544545
name: ToolName.LIST_ROOTS,
545546
description:
546-
"Lists the current MCP roots provided by the client. Demonstrates the roots protocol capability even though this server doesn't access files.",
547+
"Lists the current MCP roots provided by the client. Demonstrates the roots protocol capability even though this server doesn't access files.",
547548
inputSchema: zodToJsonSchema(ListRootsSchema) as ToolInput,
548-
},
549-
];
550-
549+
});
550+
551551
return { tools };
552552
});
553553

0 commit comments

Comments
 (0)