mcp-chunk-editor
MCP Chunk Editor is a Model Context Protocol server designed to facilitate semantic chunk editing of text files by language models, improving efficiency over traditional line-based editing. It supports semantic parsing, immediate change application, and preview generation, promoting a more natural workflow for file editing by language models.
MCP Chunk Editor
A Model Context Protocol server that offers chunk-oriented text file editing for Language Model Models (LLMs). It supports semantic chunking, immediate application of edits with verification previews, a simple undo feature, and is optimized for efficient token usage.
Key Features
- Semantic Chunking using Universal CTags
- Immediate Application and Preview Verification
- Simple Undo for recent changes
- Efficient token use through lazy chunking
Available Tools
- Retrieve, replace, and undo changes on file chunks
- Create and delete files
Prerequisites
- Python 3.10 or 3.11 and Universal CTags
Installation
Install via uv
or pip
Configuration
Details for use with Claude and chunk size customization available
How It Works
Utilizes CTags for semantic parsing, LLM-assisted chunk operations, and previews for verification.