Skip to main content
Glama

MCP Filesystem Server

MIT License
35
7
  • Linux
  • Apple

directory_tree

Generate a JSON tree view of files and directories with details like name, type, and nested children arrays. Input a directory path to retrieve structured, readable data within allowed directories on the MCP Filesystem Server.

Instructions

Get a recursive tree view of files and directories as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' for directories. 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.

Input Schema

NameRequiredDescriptionDefault
pathYesPath of the directory to create a tree view for

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "path": { "description": "Path of the directory to create a tree view for", "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/gabrielmaialva33/mcp-filesystem'

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