feat: register search_files tool with excludePatterns support
This commit is contained in:
parent
4e08779cb5
commit
a1855509d1
1 changed files with 10 additions and 1 deletions
|
|
@ -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);
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue