editor-mcp
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
set_file
Set the current working file
skim
Read the entire file content
read
Read a specific line range
select
Select the range of rows to edit
overwrite
Prepare to replace the contents of the selected row
confirm
Confirm and apply changes
cancel
Cancel pending changes
delete_file
Delete the current file
new_file
Create a new file
find_line
Find lines containing specific text
find_function
Find function definitions in Python or JavaScript/JSX files
listdir
List the contents of the directory
run_tests` and `set_python_path
Run Python tests and configure a Python environment