get_file_tree
Generate a detailed directory and file structure for GitHub repositories with customizable filters like depth, hidden files, extensions, and excluded paths using CodeCompass MCP.
Instructions
🌳 Get complete directory structure and file listing with filtering options. Focused on file system structure without content analysis.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
options | No | ||
url | Yes | GitHub repository URL |
Input Schema (JSON Schema)
{
"properties": {
"options": {
"properties": {
"exclude_paths": {
"default": [
"node_modules",
"dist",
"build",
".git"
],
"description": "Paths to exclude from listing",
"items": {
"type": "string"
},
"type": "array"
},
"file_extensions": {
"description": "Filter by file extensions (e.g., [\".js\", \".ts\"])",
"items": {
"type": "string"
},
"type": "array"
},
"include_file_info": {
"default": true,
"description": "Include file metadata (size, modified date)",
"type": "boolean"
},
"include_hidden": {
"default": false,
"description": "Include hidden files and directories",
"type": "boolean"
},
"max_depth": {
"default": 10,
"description": "Maximum directory depth to traverse",
"type": "number"
}
},
"type": "object"
},
"url": {
"description": "GitHub repository URL",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}