Skip to content

undo_refactoring

MCP tools › Code insight and refactoring

Undo the newest refactoring applied through this server with rename_symbol or apply_code_action (dry_run=false), in all files it changed at once. Refuses, changing nothing, when one of those files changed since, and names it. Returns the refactoring's name and files; redo_refactoring applies it again.

Its results carry text from files: the client is told to treat that as data, never as instructions.

Capabilitycode.undo_refactoring
AreaCode insight and refactoring
Accesschanges files
Reaches—
Rightswrite
Dry runnone

Arguments

No arguments.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project undo_refactoring
Input schema as JSON
{
"type": "object",
"properties": {}
}