Hashfile MCP Server provides surgical file editing using hash-anchored operations
Server provides 10 file/directory manipulation tools with complete JSON Schema definitions and descriptions. All tools have input schemas with typed parameters and descriptions. However, descriptions are minimal (10-100 chars, well below the 194-char baseline), lack context on WHEN to use each tool, and omit error recovery guidance. No output schemas documented. Tools like read_text_file and read_file are near-duplicates (pattern:tool violation). Error handling returns raw error strings without actionable recovery steps. Security considerations (path traversal, permission checks) not evident. Composition is reasonable but lacks idempotency guarantees and batch variants.
Create a directory, including parent directories if needed
Get recursive directory tree in compact text format (like Unix tree command)
Apply hash-anchored edits. Do NOT use unified diffs (@@ ...). Provide structured 'EditOperation' objects.
List directory contents with [FILE] or [DIR] prefixes
Move or rename a file or directory
Read a file and return raw content (without hashline tags)
Read multiple files in one operation, returns JSON array of results
Duplicate tools with minimal differentiation: read_text_file and read_file both read files; only difference is hashline tagging. LLMs will struggle to choose between them. Merge into single tool with optional 'for_edit' parameter.
Descriptions are 10-100 characters, far below 194-char baseline. Missing WHEN to use each tool, prerequisites, and return value details. E.g., 'List directory contents with [FILE] or [DIR] prefixes' does not explain what structure is returned or when to call it vs directory_tree.
No output schemas documented. LLMs cannot plan downstream calls or extract required fields. E.g., list_directory returns a string; structure is opaque. Should return JSON with file list, types, and sizes.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |
Read a file and return hashline-tagged content for reliable editing
Write raw UTF-8 content to a file (overwrites existing content)
Write content to a file, creating it if it doesn't exist
Error handling returns raw error strings ('Error: <message>') without recovery guidance. No categorization of retryable vs fatal errors. LLMs cannot determine next action. E.g., 'Error: Permission denied' should suggest 'Check file permissions or run with elevated privileges.'
No path traversal or security validation visible. Tools accept arbitrary absolute paths; no checks for symlink attacks, escape attempts, or permission gates. Agents could read/write outside intended directories.