get_filesystem_status
Check filesystem status to monitor disk health and usage. Use a random string input to trigger the check.
Instructions
FS status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| random_string | Yes |
Implementation Reference
- src/mcp/server.js:247-249 (handler)The handler for 'get_filesystem_status' — directly returns an object with { success, readonlyMode, allowedDirectories }. No imported helper function is used; it's an inline case in the main MCP server's switch statement.
case 'get_filesystem_status': data = { success:true, readonlyMode, allowedDirectories }; break; - src/mcp/server.js:93-93 (schema)Registration of the tool's name, description, and inputSchema. It requires a dummy 'random_string' parameter with no real validation.
{ name:'get_filesystem_status', description:'FS status', inputSchema:{ type:'object', properties:{ random_string:{type:'string'} }, required:['random_string'] } }, - src/mcp/server.js:64-93 (registration)The 'tools/list' response block where 'get_filesystem_status' is registered as one of the available tools.
case 'tools/list': const tools = [ { name:'setWorkspace', description:'Set workspace', inputSchema:{ type:'object', properties:{ workspacePath:{ type:'string' } }, required:['workspacePath'] } }, { name:'initProject', description:'Init project', inputSchema:{ type:'object', properties:{ projectName:{type:'string'}, projectDescription:{type:'string'} } } }, { name:'addTask', description:'Add task', inputSchema:{ type:'object', properties:{ title:{type:'string'}, description:{type:'string'}, priority:{type:'string'}, dependsOn:{type:'string'}, relatedFiles:{type:'string'} }, required:['title'] } }, { name:'addSubtask', description:'Add subtask', inputSchema:{ type:'object', properties:{ parentId:{type:'number'}, title:{type:'string'} }, required:['parentId','title'] } }, { name:'listTasks', description:'List tasks', inputSchema:{ type:'object', properties:{ status:{type:'string'}, format:{type:'string'} } } }, { name:'updateStatus', description:'Update status', inputSchema:{ type:'object', properties:{ id:{type:'string'}, newStatus:{type:'string'}, message:{type:'string'} }, required:['id','newStatus'] } }, { name:'getNextTask', description:'Next task', inputSchema:{ type:'object', properties:{ random_string:{type:'string'} }, required:['random_string'] } }, { name:'updateTask', description:'Update task', inputSchema:{ type:'object', properties:{ id:{type:'string'}, title:{type:'string'}, description:{type:'string'}, priority:{type:'string'}, relatedFiles:{type:'string'}, message:{type:'string'} }, required:['id'] } }, { name:'removeTask', description:'Remove task', inputSchema:{ type:'object', properties:{ id:{type:'string'} }, required:['id'] } }, { name:'getContext', description:'Get context', inputSchema:{ type:'object', properties:{ id:{type:'string'} }, required:['id'] } }, { name:'generateTaskFiles', description:'Generate task files', inputSchema:{ type:'object', properties:{} } }, { name:'parsePrd', description:'Parse PRD', inputSchema:{ type:'object', properties:{ filePath:{type:'string'} }, required:['filePath'] } }, { name:'expandTask', description:'Expand task', inputSchema:{ type:'object', properties:{ taskId:{type:'string'} }, required:['taskId'] } }, { name:'reviseTasks', description:'Revise tasks', inputSchema:{ type:'object', properties:{ fromTaskId:{type:'string'}, prompt:{type:'string'} }, required:['fromTaskId','prompt'] } }, // Filesystem { name:'read_file', description:'Read file', inputSchema:{ type:'object', properties:{ path:{type:'string'}, timeout:{type:'number'} }, required:['path'] } }, { name:'read_multiple_files', description:'Read multiple files', inputSchema:{ type:'object', properties:{ paths:{ type:'array', items:{type:'string'} } }, required:['paths'] } }, { name:'write_file', description:'Write file'+(readonlyMode?' (RO)':''), inputSchema:{ type:'object', properties:{ path:{type:'string'}, content:{type:'string'} }, required:['path','content'] } }, { name:'copy_file', description:'Copy file'+(readonlyMode?' (RO)':''), inputSchema:{ type:'object', properties:{ source:{type:'string'}, destination:{type:'string'} }, required:['source','destination'] } }, { name:'move_file', description:'Move file'+(readonlyMode?' (RO)':''), inputSchema:{ type:'object', properties:{ source:{type:'string'}, destination:{type:'string'} }, required:['source','destination'] } }, { name:'delete_file', description:'Delete file'+(readonlyMode?' (RO)':''), inputSchema:{ type:'object', properties:{ path:{type:'string'}, recursive:{type:'boolean'} }, required:['path'] } }, { name:'list_directory', description:'List directory', inputSchema:{ type:'object', properties:{ path:{type:'string'} }, required:['path'] } }, { name:'create_directory', description:'Create directory'+(readonlyMode?' (RO)':''), inputSchema:{ type:'object', properties:{ path:{type:'string'} }, required:['path'] } }, { name:'tree', description:'Directory tree', inputSchema:{ type:'object', properties:{ path:{type:'string'}, depth:{type:'number'}, follow_symlinks:{type:'boolean'} }, required:['path'] } }, { name:'search_files', description:'Search files by pattern', inputSchema:{ type:'object', properties:{ path:{type:'string'}, pattern:{type:'string'} }, required:['path','pattern'] } }, { name:'get_file_info', description:'File info', inputSchema:{ type:'object', properties:{ path:{type:'string'} }, required:['path'] } }, { name:'list_allowed_directories', description:'List allowed dirs', inputSchema:{ type:'object', properties:{ random_string:{type:'string'} }, required:['random_string'] } }, { name:'get_filesystem_status', description:'FS status', inputSchema:{ type:'object', properties:{ random_string:{type:'string'} }, required:['random_string'] } }, - Test helper that generates a dummy argument { random_string:'x' } for the get_filesystem_status tool when generating MCP examples.
case 'get_filesystem_status': return { random_string:'x' };