MCP ExplorerExplorer

File Edit Check Server

@punkpeyeon 9 months ago
2 MIT
FreeCommunity
AI Systems
MCP server that enforces pre-read checks and detailed commit documentation

Overview

What is File Edit Check Server

file-edit-check-server is an MCP server designed to enforce pre-read checks and ensure detailed commit documentation. It prevents unauthorized modifications to files by requiring explicit read operations before any writes or diffs can be applied.

Use cases

Use cases include ensuring that developers read files before making changes, applying diffs safely, and maintaining a clear history of file modifications with detailed commit messages.

How to use

To use file-edit-check-server, add it to your MCP settings file with the appropriate command and arguments. Install the server using npm and run the build command to set it up.

Key features

Key features include enforcing pre-read verification before file modifications, preventing blind writes and diffs, providing detailed commit message guidance, and being implemented in TypeScript with proper error handling.

Where to use

file-edit-check-server can be used in software development environments where file integrity and commit documentation are critical, such as in version control systems and collaborative coding projects.

Content

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": []
    }
  }
}

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers