Skip to main content
Glama
Preston-Harrison

Filesystem MCP Server

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
NameRequiredDescriptionDefault

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]

Latest Blog Posts

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/Preston-Harrison/fs-mcp-py'

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