Skip to main content
Glama
mcp-editor

mcp-editor

by arathald

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 tools
createC

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

    B3.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An 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.
      15
      305
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A 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.
      6
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Standalone TypeScript MCP server for filesystem operations with robust security, encoding support, and cross-platform path handling.
      MIT