Skip to main content
Glama

fast_list_allowed_directories

Retrieve the list of permitted directories for managed filesystem access, ensuring secure and compliant file operations within the MCP server environment.

Instructions

허용된 디렉토리 목록을 조회합니다

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • The main handler function that executes the tool logic, returning allowed directories, current working directory, exclude patterns, Claude limits, and server info.
    async function handleListAllowedDirectories() { return { allowed_directories: DEFAULT_ALLOWED_DIRECTORIES, current_working_directory: process.cwd(), exclude_patterns: DEFAULT_EXCLUDE_PATTERNS, claude_limits: { max_response_size_mb: CLAUDE_MAX_RESPONSE_SIZE / (1024**2), max_chunk_size_mb: CLAUDE_MAX_CHUNK_SIZE / (1024**2), max_lines_per_read: CLAUDE_MAX_LINES, max_dir_items: CLAUDE_MAX_DIR_ITEMS }, server_info: { name: 'fast-filesystem', version: '2.1.0', total_tools: MCP_TOOLS.length, timestamp: new Date().toISOString() } }; }
  • api/server.ts:320-322 (registration)
    Dispatches the tool call to the handler function in the switch statement within the tools/call method.
    case 'fast_list_allowed_directories': result = await handleListAllowedDirectories(); break;
  • Tool definition including name, description, and empty input schema in the MCP_TOOLS array used for tools/list.
    { name: 'fast_list_allowed_directories', description: '허용된 디렉토리 목록을 조회합니다', inputSchema: { type: 'object', properties: {}, required: [] } },
  • Default allowed directories list used by the handler and path validation functions.
    const DEFAULT_ALLOWED_DIRECTORIES = [ process.env.HOME || '/home', '/tmp', '/Users', '/home' ];

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/efforthye/fast-filesystem-mcp'

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