Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/filesystem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const ListDirectoryWithSizesArgsSchema = z.object({

const DirectoryTreeArgsSchema = z.object({
path: z.string(),
excludePatterns: z.array(z.string()).optional().default([])
excludePatterns: z.array(z.string()).optional().default([]).describe('Array of glob patterns to exclude from directory tree (e.g. ["**/node_modules/**", "**/.git/**"])')
});

const MoveFileArgsSchema = z.object({
Expand All @@ -152,8 +152,8 @@ const MoveFileArgsSchema = z.object({

const SearchFilesArgsSchema = z.object({
path: z.string(),
pattern: z.string(),
excludePatterns: z.array(z.string()).optional().default([])
pattern: z.string().describe('Glob pattern to match files and directories (e.g. "*.ts", "**/*.json")'),
excludePatterns: z.array(z.string()).optional().default([]).describe('Array of glob patterns to exclude from search results (e.g. ["**/node_modules/**"])')
});

const GetFileInfoArgsSchema = z.object({
Expand Down Expand Up @@ -553,8 +553,8 @@ server.registerTool(
"Files have no children array, while directories always have a children array (which may be empty). " +
"The output is formatted with 2-space indentation for readability. Only works within allowed directories.",
inputSchema: {
path: z.string(),
excludePatterns: z.array(z.string()).optional().default([])
path: z.string().describe("Root directory path to generate tree from"),
excludePatterns: z.array(z.string()).optional().default([]).describe("Array of glob patterns to exclude from directory tree (e.g. ['**/node_modules/**', '**/.git/**'])")
},
outputSchema: { content: z.string() },
annotations: { readOnlyHint: true, openWorldHint: false }
Expand Down Expand Up @@ -653,9 +653,9 @@ server.registerTool(
"Returns full paths to all matching items. Great for finding files when you don't know their exact location. " +
"Only searches within allowed directories.",
inputSchema: {
path: z.string(),
pattern: z.string(),
excludePatterns: z.array(z.string()).optional().default([])
path: z.string().describe("Path to the directory to search within"),
pattern: z.string().describe("Glob pattern to match files and directories (e.g. '*.ts', '**/*.json')"),
excludePatterns: z.array(z.string()).optional().default([]).describe("Array of glob patterns to exclude from search results (e.g. ['**/node_modules/**'])")
},
outputSchema: { content: z.string() },
annotations: { readOnlyHint: true, openWorldHint: false }
Expand Down