drio
Open app

File Edit Check MCP Server

Source

MCP server that enforces pre-read checks and detailed commit documentation

Catalog onlyCatalog onlySTDIO

Overview

File Edit Check MCP Server is a server that enforces pre-read checks and detailed commit documentation to prevent blind modifications to files.

To use the server, install it via npm, build the project, and add it to your MCP settings file to enforce pre-read checks before file modifications.

  • Enforces pre-read verification before file modifications - Prevents blind writes and diffs - Provides detailed commit message guidance - TypeScript implementation with proper error handling
  1. Ensuring that files are read before any modifications are made.
  2. Maintaining detailed commit documentation for better project tracking.
  3. Preventing accidental overwrites in collaborative environments.

Add to your AI client

Use these steps to connect File Edit Check MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "file-edit-check-server-punkpeye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-edit-check-server-punkpeye"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "file-edit-check-server-punkpeye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-edit-check-server-punkpeye"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "file-edit-check-server-punkpeye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-edit-check-server-punkpeye"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "file-edit-check-server-punkpeye": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-edit-check-server-punkpeye"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "file-edit-check-server-punkpeye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-edit-check-server-punkpeye"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "file-edit-check-server-punkpeye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-edit-check-server-punkpeye"
      ]
    }
  }
}

FAQ

What is the purpose of pre-read checks?

Pre-read checks ensure that users are aware of the current state of a file before making any changes, preventing blind modifications.

Is this server suitable for collaborative projects?

Yes! It is designed to enhance collaboration by enforcing checks and documentation.

How do I install the server?

You can install it using npm with the command `npm install` followed by `npm run build`.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1444,"uuid":"22e69bff-a232-4320-ba3d-70f8716d5f95","name":"file-edit-check-server","title":"File Edit Check MCP Server","description":"MCP server that enforces pre-read checks and detailed commit documentation","avatar_url":"https://avatars.githubusercontent.com/u/108313943?v=4","created_at":"$D2025-02-20T15:51:31.940Z","updated_at":"$D2025-02-23T07:12:48.286Z","status":"created","author_name":"punkpeye","author_avatar_url":"https://avatars.githubusercontent.com/u/108313943?v=4","tags":"file-edit-check,mcp-server,commit-documentation","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/punkpeye/file-edit-check-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]