edit_replace

MCP tool from Aptu Coder by clouatre-labs

Replace a unique exact text block or all non-overlapping occurrences (replaceall=true); errors if zero or multiple matches; empty newtext deletes the block; CRLF normalized before matching; optional expectedcontenthash (blake3 hex of raw bytes) rejects stale edits; concurrent edits to the same file

How to use it

edit_replace is exposed by the Aptu Coder MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the edit_replace tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Aptu Coder

$aptu-coder
FULL APTU CODER LISTING