mcp-server-tree-sitter

by wrale
MIT License
33
  • Apple
  • Linux

list_files

Generate a list of project files based on specified criteria such as glob pattern, directory depth, or file extensions for efficient codebase navigation and analysis.

Instructions

List files in a project.

Args: project: Project name pattern: Optional glob pattern (e.g., "**/*.py") max_depth: Maximum directory depth extensions: List of file extensions to include (without dot) Returns: List of file paths

Input Schema

NameRequiredDescriptionDefault
extensionsNo
max_depthNo
patternNo
projectYes

Input Schema (JSON Schema)

{ "properties": { "extensions": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Extensions" }, "max_depth": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Max Depth" }, "pattern": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pattern" }, "project": { "title": "Project", "type": "string" } }, "required": [ "project" ], "title": "list_filesArguments", "type": "object" }
ID: k35mqkr8j9