fix: correct tool registration syntax for search_files

This commit is contained in:
devin-ai-integration[bot] 2024-12-06 21:45:28 +00:00
commit ffd9cb7f53

View file

@ -163,8 +163,9 @@ const server = new Server(
}, },
{ {
capabilities: { capabilities: {
tools: { tools: [
search_files: { {
name: "search_files",
description: "Recursively search for files/directories with optional exclude patterns", description: "Recursively search for files/directories with optional exclude patterns",
inputSchema: zodToJsonSchema(SearchFilesArgsSchema), inputSchema: zodToJsonSchema(SearchFilesArgsSchema),
handler: async (args: z.infer<typeof SearchFilesArgsSchema>) => { handler: async (args: z.infer<typeof SearchFilesArgsSchema>) => {
@ -172,7 +173,7 @@ const server = new Server(
return searchFiles(validatedPath, args.pattern, args.excludePatterns); return searchFiles(validatedPath, args.pattern, args.excludePatterns);
}, },
}, },
}, ],
}, },
}, },
); );