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.