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 buildClaude デスクトップ アプリを使用している場合は、これを「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