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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- api/server.ts:409-427 (handler)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;
- api/server.ts:98-106 (schema)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: [] } },
- api/server.ts:15-20 (helper)Default allowed directories list used by the handler and path validation functions.const DEFAULT_ALLOWED_DIRECTORIES = [ process.env.HOME || '/home', '/tmp', '/Users', '/home' ];