Skip to content

Commit 00a30ac

Browse files
fix: add proper TypeScript types to search_files handler
1 parent a185550 commit 00a30ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/filesystem/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ const server = new Server(
167167
search_files: {
168168
description: "Recursively search for files/directories with optional exclude patterns",
169169
inputSchema: zodToJsonSchema(SearchFilesArgsSchema),
170-
handler: async ({ path: searchPath, pattern, excludePatterns }) => {
171-
const validatedPath = await validatePath(searchPath);
172-
return searchFiles(validatedPath, pattern, excludePatterns);
170+
handler: async (args: z.infer<typeof SearchFilesArgsSchema>) => {
171+
const validatedPath = await validatePath(args.path);
172+
return searchFiles(validatedPath, args.pattern, args.excludePatterns);
173173
},
174174
},
175175
},

0 commit comments

Comments
 (0)