File Edit Check MCP Server

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 editing
  • checked_write_to_file: Write to a file, requiring it to have been read first if it exists
  • checked_apply_diff: Apply a diff to a file, requiring it to have been read first
  • list_my_tools: List the tools registered in this server

Installation

npm install npm run build

Usage

Add to your MCP settings file:

{ "mcpServers": { "file-edit-check": { "command": "node", "args": ["/path/to/file-edit-check-server/build/index.js"], "disabled": false, "alwaysAllow": [] } } }

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

  1. Features
    1. Tools
      1. Installation
        1. Usage