Skip to content

close_project

MCP tools › Window and UI driver

Close project windows: this one (default), others or all. Dry run by default: lists what would close with unsaved files and running work. dry_run=false needs the quit right; with unsaved files or running work nothing closes unless pending is save_all (needs write) or discard (changes lost, programs end). Logged. Served by the window over HTTP only.

Capabilityui.close_project
AreaWindow and UI driver
Accesschanges files, ide
Reaches—
Rightswrite, quit
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
scopestringthis (default: this workspace's window), others (every other project window) or all.
dry_runbooleanOnly report what would close (default true); false closes and needs the quit right.
pendingstringWith unsaved files or running work: refuse (default: close nothing and name them), save_all (save them, then close; needs write too) or discard.

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 close_project
Input schema as JSON
{
"type": "object",
"properties": {
"scope": {
"description": "`this` (default: this workspace's window), `others` (every other project window) or `all`.",
"type": [
"string",
"null"
]
},
"dry_run": {
"description": "Only report what would close (default true); false closes and needs the `quit` right.",
"type": [
"boolean",
"null"
]
},
"pending": {
"description": "With unsaved files or running work: `refuse` (default: close nothing and name them),\n`save_all` (save them, then close; needs `write` too) or `discard`.",
"type": [
"string",
"null"
]
}
}
}