Skip to main content
Glama

MCP Filesystem Server

MIT License
42
  • Apple
  • Linux

find_empty_directories

Identify and list empty directories within a specified path, optionally searching recursively and excluding specific patterns. Output results in text or JSON format for efficient directory management.

Instructions

Find empty directories.

Args: path: Starting directory recursive: Whether to search subdirectories exclude_patterns: Optional patterns to exclude format: Output format ('text' or 'json') ctx: MCP context Returns: Empty directory information

Input Schema

NameRequiredDescriptionDefault
exclude_patternsNo
formatNotext
pathYes
recursiveNo

Input Schema (JSON Schema)

{ "properties": { "exclude_patterns": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Exclude Patterns" }, "format": { "default": "text", "title": "Format", "type": "string" }, "path": { "title": "Path", "type": "string" }, "recursive": { "default": true, "title": "Recursive", "type": "boolean" } }, "required": [ "path" ], "title": "find_empty_directoriesArguments", "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