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.
| Capability | ui.close_project |
|---|---|
| Area | Window and UI driver |
| Access | changes files, ide |
| Reaches | — |
| Rights | write, quit |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
scope | string | this (default: this workspace's window), others (every other project window) or all. |
dry_run | boolean | Only report what would close (default true); false closes and needs the quit right. |
pending | string | With 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.
ferris-idea call ~/my-project close_projectInput 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" ] } }}