editor-mcp
4
The Editor MCP is a Python-based text editor server designed with FastMCP, offering extensive code management and editing capabilities through an API. Its standout features include a multi-step editing process, extensive syntax checking for scripts, and a focus on safe code handling to enhance AI-assisted coding. It aims to make AI-led code edits more efficient and reliable.
Editor MCP
A Python-based text editor server built with FastMCP to provide tools for reading, editing, and managing text files. This server supports standardized API operations, focusing on code editing accuracy and reliability for LLMs and AI assistants.
Features
- Set, read, and edit files
- Find text and function definitions
- Preview and verify edits
- Python and JavaScript syntax checking
- Create, delete, and list files
- Safety measures like content ID verification and path protection
Security Risks
- Jailbreak risk when handling harmful files.
- Arbitrary code execution via test files.
- Potential data exposure due to system access.
Key Advantages
- Maintains code context in LLMs
- Provides visual feedback with diff previews
- Supports selective editing and syntax validation
Installation
- Install with UVX script or manually via Git
- Configuration options available for environment variables and paths
Usage
- Start the server with
editor-mcp
command - Supports multi-step editing workflow with config management
Development
- Prerequisites include Python 3.7+, FastMCP, black, and Babel
- Extensive test suite covering editing operations