feat: register search_files tool with excludePatterns support

This commit is contained in:
devin-ai-integration[bot]
2024-12-06 21:44:06 +00:00
parent 4e08779cb5
commit a1855509d1

View File

@@ -163,7 +163,16 @@ const server = new Server(
},
{
capabilities: {
tools: {},
tools: {
search_files: {
description: "Recursively search for files/directories with optional exclude patterns",
inputSchema: zodToJsonSchema(SearchFilesArgsSchema),
handler: async ({ path: searchPath, pattern, excludePatterns }) => {
const validatedPath = await validatePath(searchPath);
return searchFiles(validatedPath, pattern, excludePatterns);
},
},
},
},
},
);