LLM-optimized file editing MCP server with SEARCH/REPLACE blocks
TurboEdit is a high-performance file editing MCP (Model Context Protocol) server that provides intelligent file operations optimized for Large Language Models. It is built using best-in-class Rust libraries to ensure world-class performance, reliability, and security.
Instead of rewriting entire files, LLMs use precise SEARCH/REPLACE blocks with git merge conflict syntax. This reduces token usage, prevents "LLM laziness", and ensures structural integrity.
- Ambiguity Detection: Fails on multiple matches, requiring unique search text.
- SIMD-Accelerated: Ultra-fast string search using
stringzilla. - Fuzzy Resiliency: Indentation-preserving and whitespace-insensitive matching.
- Tree-sitter integration for AST-aware code analysis.
- Identify functions, classes, structs, and methods with precision.
- Support for Rust, Python, JS/TS, Go, C#, C++, and Java.
- Returns 1-based line ranges for easy navigation and targeted edits.
- Powered by
gix(gitoxide) for SOTA performance. - Instant
git_statusreporting without shelling out. - High-performance,
.gitignore-aware directory walking.
- Persistent history tracking using SQLite (WAL mode).
- Create file or workspace-wide snapshots before risky operations.
- Instant rollback to any previous state by hash.
Consistent, LLM-friendly JSON response envelope with performance timing and suggested next_steps.
turboedit --transport stdio --working-dir /path/to/projectTurboEdit v0.2.0 uses TurboMCP v3, enabling high-performance network transports:
# HTTP server
turboedit --transport http --port 3000 --working-dir /path/to/project
# WebSocket server
turboedit --transport websocket --port 3000All tools are prefixed with turboedit__ for consistent discovery.
Analyze code structure using tree-sitter. Returns a structured list of symbols with line ranges.
Apply SEARCH/REPLACE blocks. Supports fuzzy matching and conflict detection.
Get current repository status (branch, modified, staged, untracked) using the gix engine.
Read complete contents with BLAKE3 hash for conflict detection.
Optimized recursive file listing with glob support and .gitignore respect.
Merge JSON objects or arrays with type-safe validation.
write_file,delete_file,move_file,copy_filelist_directory,create_directory,treesnapshot,rollback,list_snapshotsjson_get,json_set,find_in_files,diff_files
- ropey: Efficient text representation (used by Helix editor).
- stringzilla: SIMD-accelerated string operations.
- tree-sitter: Incremental parsing for semantic analysis.
- gix: Native Rust git implementation.
- TurboMCP v3: SOTA MCP protocol stack.
- rusqlite: ACID-compliant snapshot storage.
# Clone repository
git clone https://github.com/epistates/turboedit.git
cd turboedit
# Build & Install
cargo build --release
cargo install --path crates/turboedit-server- Path Traversal Protection: All operations are strictly scoped to the working directory.
- Hash Verification: Protects against concurrent modifications and lost updates.
- Native Implementation: No shell execution; all operations use pure-Rust libraries.
MIT