Skip to content

Commit 2c1bb44

Browse files
fix: simplify server setup and rely on handlers for tool registration
1 parent 15dbacd commit 2c1bb44

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/filesystem/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,6 @@ const server = new Server(
164164
{
165165
capabilities: {
166166
listChanged: false,
167-
tools: {
168-
search_files: {
169-
description: "Recursively search for files/directories with optional exclude patterns",
170-
inputSchema: zodToJsonSchema(SearchFilesArgsSchema),
171-
handler: async (args: z.infer<typeof SearchFilesArgsSchema>) => {
172-
const validatedPath = await validatePath(args.path);
173-
return searchFiles(validatedPath, args.pattern, args.excludePatterns);
174-
},
175-
},
176-
},
177167
},
178168
},
179169
);

0 commit comments

Comments
 (0)