fix: correct tool registration syntax for search_files
This commit is contained in:
parent
00a30ac2bb
commit
ffd9cb7f53
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue