fix: simplify server setup and rely on handlers for tool registration

This commit is contained in:
devin-ai-integration[bot]
2024-12-06 21:51:49 +00:00
parent 15dbacdcba
commit 2c1bb4426c

View File

@@ -164,16 +164,6 @@ const server = new Server(
{
capabilities: {
listChanged: false,
tools: {
search_files: {
description: "Recursively search for files/directories with optional exclude patterns",
inputSchema: zodToJsonSchema(SearchFilesArgsSchema),
handler: async (args: z.infer<typeof SearchFilesArgsSchema>) => {
const validatedPath = await validatePath(args.path);
return searchFiles(validatedPath, args.pattern, args.excludePatterns);
},
},
},
},
},
);