approve_edit
Apply changes from a previous dry run of editfilelines. This tool provides a two-step editing process for safety. Here is an example workflow:
How to use it
approve_edit is exposed by the MCP Edit File Lines MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the approve_edit tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL MCP EDIT FILE LINES LISTINGOther tools in MCP Edit File Lines (3)
Make line-based edits to a file using string or regex pattern matching. Each edit can:
Inspect specific lines in a file with optional context lines. This tool is useful for verifying line content before making edits.
Search a file for text patterns or regular expressions to find specific line numbers and their surrounding context. This tool is particularly useful for locating the exact lines you want to edit with editfilelines.