fix: simplify server setup and rely on handlers for tool registration
This commit is contained in:
parent
15dbacdcba
commit
2c1bb4426c
1 changed files with 0 additions and 10 deletions
|
|
@ -164,16 +164,6 @@ const server = new Server(
|
|||
{
|
||||
capabilities: {
|
||||
listChanged: false,
|
||||
tools: {
|
||||
search_files: {
|
||||
description: "Recursively search for files/directories with optional exclude patterns",
|
||||
inputSchema: zodToJsonSchema(SearchFilesArgsSchema),
|
||||
handler: async (args: z.infer<typeof SearchFilesArgsSchema>) => {
|
||||
const validatedPath = await validatePath(args.path);
|
||||
return searchFiles(validatedPath, args.pattern, args.excludePatterns);
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue