File Edit Check MCP Server
by 8grackles
File Edit Check MCP Server
An MCP server that enforces pre-read checks and detailed commit documentation. This server prevents blind modifications to files by requiring explicit read operations before any writes or diffs can be applied.
Features
- Enforces pre-read verification before file modifications
- Prevents blind writes and diffs
- Provides detailed commit message guidance
- TypeScript implementation with proper error handling
Tools
checked_read_file
: Read a file and mark it as read for future editingchecked_write_to_file
: Write to a file, requiring it to have been read first if it existschecked_apply_diff
: Apply a diff to a file, requiring it to have been read firstlist_my_tools
: List the tools registered in this server
Installation
Copy
Usage
Add to your MCP settings file:
Copy
You must be authenticated.
This MCP server enforces pre-read checks and detailed commit documentation to prevent unauthorized file modifications, ensuring write and diff operations are preceded by explicit reads.