Text Edit

•

Equips AI agents with ten robust, zero-dependency file-editing tools that provide self-validating edits by text anchor or line number and return unified diffs.

Text Edit is an MCP stdio server engineered to empower AI agents with precise and safe file-editing capabilities. It offers ten specialized tools that operate with zero external dependencies, running purely on Python's standard library. A core feature is its dual-addressing system, allowing edits to be specified either by exact text anchors – which self-validate against the current file content for maximum certainty – or by line numbers, safeguarded by assertions against boundary lines. Every successful edit returns a comprehensive git-style unified diff, eliminating the need for subsequent read operations to verify changes. Designed for robustness, it performs stateless, atomic writes, guaranteeing that file modifications are never partially applied, and is fully compatible across Windows and Linux environments.

主要功能

01Returns detailed git-style unified diffs for every successful edit
020 GitHub stars
03Supports edits via self-validating text anchors or line numbers with boundary assertions
04Zero-dependency Python 3.9+ server, compatible with Windows and Linux
05Provides ten specialized file-editing tools for AI agents
06Ensures stateless and atomic writes, preventing partial file modifications

使用案例

01Integrating file-editing capabilities into custom LLM-powered development environments
02Enabling AI agents to precisely modify source code or configuration files
03Automating safe and verifiable file updates within AI-driven workflows