editor-mcp

editor-mcp

3.4

If you are the rightful owner of editor-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Editor MCP is a Python-based text editor server built with FastMCP, providing tools for file operations through a standardized API.

Editor MCP is a robust text editor server designed to enhance file operations for LLMs and AI assistants. Built with FastMCP, it offers a multi-step approach to reading, editing, and managing text files, significantly improving code editing accuracy and reliability. The server supports various operations such as file selection, reading, editing, and management, with features like syntax checking and diff previews. It also includes safety features to prevent conflicts and resource exhaustion, making it a reliable tool for developers working with Python and JavaScript/React files.

Features

  • File Selection: Set a file to work with using absolute paths.
  • Read Operations: Read entire files, specific line ranges, and find specific text or function definitions.
  • Edit Operations: Two-step editing process with diff preview and syntax checking.
  • File Management: Create, delete, and list files and directories.
  • Testing Support: Run Python tests and set Python paths for module resolution.

Tools

  1. set_file

    Set the current working file

  2. skim

    Read the entire file content

  3. read

    Read a specific line range

  4. select

    Select the range of rows to edit

  5. overwrite

    Prepare to replace the contents of the selected row

  6. confirm

    Confirm and apply changes

  7. cancel

    Cancel pending changes

  8. delete_file

    Delete the current file

  9. new_file

    Create a new file

  10. find_line

    Find lines containing specific text

  11. find_function

    Find function definitions in Python or JavaScript/JSX files

  12. listdir

    List the contents of the directory

  13. run_tests` and `set_python_path

    Run Python tests and configure a Python environment