list_allowed_directories
Lists directories accessible for file operations in the Filesystem MCP Server, showing where reading and writing are permitted.
Instructions
List all allowed directory roots for filesystem operations.
Returns: List[str]: Absolute paths of directories the server can read/write
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:194-201 (handler)The handler function for the 'list_allowed_directories' tool. It is decorated with @mcp.tool, which registers it with the FastMCP server. The function simply returns the list of absolute paths of the allowed directories.@mcp.tool def list_allowed_directories() -> List[str]: """List all allowed directory roots for filesystem operations. Returns: List[str]: Absolute paths of directories the server can read/write """ return [str(p) for p in ALLOWED_DIRS]