Skip to main content
Glama

MCP Claude Code

by SDGLBL

directory_tree

Generate a structured, indented tree view of files and directories, including subdirectories, with customizable depth and filter options. Ideal for visualizing and navigating allowed directories efficiently.

Instructions

Get a recursive tree view of files and directories with customizable depth and filtering.

Returns a structured view of the directory tree with files and subdirectories. Directories are marked with trailing slashes. The output is formatted as an indented list for readability. By default, common development directories like .git, node_modules, and venv are noted but not traversed unless explicitly requested. Only works within allowed directories.

Input Schema

NameRequiredDescriptionDefault
depthNoThe maximum depth to traverse (0 for unlimited)
include_filteredNoInclude directories that are normally filtered
pathYesThe path to the directory to view

Input Schema (JSON Schema)

{ "properties": { "depth": { "default": 3, "description": "The maximum depth to traverse (0 for unlimited)", "title": "Depth", "type": "integer" }, "include_filtered": { "default": false, "description": "Include directories that are normally filtered", "title": "Include Filtered", "type": "boolean" }, "path": { "description": "The path to the directory to view", "title": "Path", "type": "string" } }, "required": [ "path" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SDGLBL/mcp-claude-code'

If you have feedback or need assistance with the MCP directory API, please join our Discord server