The File Edit Check MCP Server enforces pre-read checks and detailed commit documentation to prevent blind modifications to files.
With this server, you can:
- Read files and mark them as ready for editing (
checked_read_file
) - Write to files only after verifying you've read them first (
checked_write_to_file
) - Apply diffs to files that have been previously read (
checked_apply_diff
) - Get commit guidance for proper documentation
- List available tools with the
list_my_tools
command
This safety mechanism ensures all file operations follow a controlled procedure to prevent accidental or uninformed changes.
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
Usage
Add to your MCP settings file:
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
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.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides file deletion capabilities. This server allows AI assistants to safely delete files when needed, with support for both relative and absolute paths.Last updated -1121JavaScriptApache 2.0
- -securityAlicense-qualityA secure MCP server enabling read-only access and file search capabilities within a specified directory, while respecting .gitignore patterns.Last updated -PythonMIT License
- -securityAlicense-qualityThis server offers secure, read-only access to directory files via the MCP, supporting file searching, .gitignore compliance, path traversal protection, and MIME type detection using the 'file://' URI scheme.Last updated -6MIT License
- AsecurityAlicenseAqualityA TypeScript MCP server port of Anthropic's filesystem editing tools, allowing file manipulation via client-approved operations without automated writes to prevent system harm.Last updated -55TypeScriptMIT License