File Edit Check MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

文件编辑检查 MCP 服务器

强制执行预读检查和详细提交文档的 MCP 服务器。此服务器要求在应用任何写入或差异之前进行显式读取操作,以防止对文件进行盲目修改。

特征

  • 在文件修改之前强制执行预读验证
  • 防止盲写和差异
  • 提供详细的提交信息指导
  • 具有适当错误处理的 TypeScript 实现

工具

  • checked_read_file :读取文件并将其标记为已读以供将来编辑
  • checked_write_to_file :写入文件,如果文件存在则要求先读取该文件
  • checked_apply_diff :对文件应用差异,要求先读取该文件
  • list_my_tools :列出此服务器中注册的工具

安装

npm install npm run build

用法

添加到您的 MCP 设置文件:

{ "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

该 MCP 服务器强制执行预读检查和详细的提交文档,以防止未经授权的文件修改,确保写入和差异操作之前进行明确的读取。

  1. Features
    1. Tools
      1. Installation
        1. Usage
          ID: m0wmoltgwq