mcp-editor
mcp 编辑器
这是将 Anthropic 的文件系统编辑工具从其计算机使用演示直接移植到 TypeScript MCP 服务器的版本。它主要由 Claude Sonnet 3.5 在 Roo Cline(现为 Roo Code)上编写,可能缺乏足够的直接监督。我检查了代码并每天都使用此服务器,但可能存在错误或 AI 异常。
我建议将此服务器与mcp-server-commands一起使用
警告:此 MCP 服务器没有访问控制,完全依赖于您客户端的批准机制。使用风险自负。请勿自动批准写入操作,否则相当于授予 LLM 销毁您计算机的权限。
警告:此 MCP 服务器并非主动维护,仅供参考(例如,创建您自己的具有适当访问控制的 MCP 服务器)。我可能会不时更新它。
用法
获取计算机上的文件。运行:
npm install
npm build如果您使用的是 Claude 桌面应用程序,请将其粘贴到“mcpServers”下的配置中,并编辑路径以匹配您放置 mcp-editor 的位置:
{
"mcpServers":
... your existing servers ...
"mcp-editor": {
"command": "node",
"args": ["/absolute/path/to/mcp-editor/dist/server.js"]
}
}
}如果您正在使用MCP 安装程序,则只需向您的 LLM 提供磁盘上 mcp-editor 的路径。
Available Tools
5 toolscreateC
Create a new file with specified content
Inputs: path (required), file_text (required).
insertC
Insert text at a specific line in the file
Inputs: path (required), insert_line (required), new_str (required).
string_replaceC
Replace a string in a file with a new string
Inputs: path (required), old_str (required), new_str.
undo_editC
Undo the last edit to a file
Inputs: path (required).
viewB
View file contents or directory listing
Inputs: path (required), view_range.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no overlap: create makes new files, insert adds text at lines, string_replace modifies content, undo_edit reverses changes, and view reads content or lists directories. The descriptions make it easy to differentiate between file creation, editing operations, and viewing.
Most tools follow a consistent verb-based naming pattern (create, insert, view, undo_edit), but 'string_replace' deviates slightly by using a compound term instead of a simple verb like 'replace'. This minor inconsistency is still readable and doesn't hinder usability significantly.
With 5 tools, this server is well-scoped for basic file editing operations. Each tool earns its place by covering essential functions like creation, insertion, replacement, undo, and viewing, making it neither too sparse nor overloaded for its domain.
The tool set covers core file editing workflows well, including create, modify (insert and replace), undo, and view. A minor gap is the lack of a delete or rename tool, which agents might need for full file management, but the existing tools allow effective editing without dead ends.
Maintenance
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA TypeScript-based MCP server that provides tools for making precise line-based edits to text files within allowed directories.34MIT
- AlicenseAqualityDmaintenanceAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.15305MIT
- AlicenseAqualityDmaintenanceA TypeScript-based MCP server that enables Claude Desktop to perform file operations and retrieve system information, with built-in security features that restrict access to safe directories only.6MIT
- AlicenseNot gradedqualityDmaintenanceStandalone TypeScript MCP server for filesystem operations with robust security, encoding support, and cross-platform path handling.MIT