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 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": [] } } }
-
security - not tested
F
license - not found
-
quality - not tested

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.

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

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A 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 -
            1
            12
            1
            JavaScript
            Apache 2.0
            • Apple
          • -
            security
            A
            license
            -
            quality
            A secure MCP server enabling read-only access and file search capabilities within a specified directory, while respecting .gitignore patterns.
            Last updated -
            Python
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            This 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 -
            6
            MIT License
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            A 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 -
            5
            5
            TypeScript
            MIT License

          View all related MCP servers

          ID: m0wmoltgwq