Skip to main content
Glama

MCP Filesystem Server

MIT License
42
  • Apple
  • Linux

list_directory

Generate a detailed listing of files and directories within a specified path. Optionally include hidden files, filter entries using a glob pattern, and choose output format ('text' or 'json') for structured results.

Instructions

Get a detailed listing of files and directories in a path.

Args: path: Path to the directory include_hidden: Whether to include hidden files (starting with .) pattern: Optional glob pattern to filter entries format: Output format ('text' or 'json') ctx: MCP context Returns: Formatted directory listing

Input Schema

NameRequiredDescriptionDefault
formatNotext
include_hiddenNo
pathYes
patternNo

Input Schema (JSON Schema)

{ "properties": { "format": { "default": "text", "title": "Format", "type": "string" }, "include_hidden": { "default": false, "title": "Include Hidden", "type": "boolean" }, "path": { "title": "Path", "type": "string" }, "pattern": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pattern" } }, "required": [ "path" ], "title": "list_directoryArguments", "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/safurrier/mcp-filesystem'

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