mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 00:03:23 +02:00
feat: register search_files tool with excludePatterns support
This commit is contained in:
@@ -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);
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user