fast_list_allowed_directories
List all directories the filesystem server is permitted to access. Use this tool to verify allowed paths and understand the scope of file operations.
Instructions
Lists the allowed directories
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- api/server.ts:97-106 (registration)Tool registration in MCP_TOOLS array listing the tool name and inputSchema.
const MCP_TOOLS = [ { name: 'fast_list_allowed_directories', description: '허용된 디렉토리 목록을 조회합니다', inputSchema: { type: 'object', properties: {}, required: [] } }, - api/server.ts:409-427 (handler)Handler function handleListAllowedDirectories that returns allowed directories, CWD, 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:14-20 (helper)Default allowed directories constant used by the handler.
// 기본 허용 디렉토리들 const DEFAULT_ALLOWED_DIRECTORIES = [ process.env.HOME || '/home', '/tmp', '/Users', '/home' ]; - src/utils.ts:7-20 (helper)Exported DEFAULT_ALLOWED_DIRECTORIES from utils.ts with cross-platform support and deduplication.
export const DEFAULT_ALLOWED_DIRECTORIES = (() => { const list: string[] = []; const home = process.env.HOME || process.env.USERPROFILE || '/home'; list.push(home); list.push('/tmp'); if (process.platform === 'win32') { // Broad user root for Windows list.push('C:/Users'); } else { list.push('/Users', '/home'); } // Dedupe and normalize return Array.from(new Set(list.map(p => path.resolve(p)))); })(); - api/server.ts:101-105 (schema)Input schema: empty object with no required parameters.
inputSchema: { type: 'object', properties: {}, required: [] }