edit_replace
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
Project documentation lists edit_replace for the Aptu Coder MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Aptu Coder
aptu-coderOther tools in Aptu Coder (6)
Directory tree with LOC, function, and class counts; respects .gitignore
Functions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensions
Lightweight function and import index (~75% smaller than analyzefile); returns graceful fallback (empty index with note) for unsupported extensions
Call graph for a named symbol across a directory; callers, callees, call depth
Create or overwrite a file; creates parent directories
Run a shell command; returns stdout, stderr, exit code; output capped and filtered; optional timeoutsecs (kill on expiry) and draintimeoutsecs (post-exit drain window); heredoc rejected before spawn (file-write pattern, stdin-consuming flag, stdin parameter conflict, or missing closing delimiter)