set_ide_settings
MCP tools › Window and UI driver
Change the user's IDE settings, which hold for every project. Dry run by default: returns the settings as they would be saved; dry_run=false needs the settings right, shell also the run right. Covers editor (font, spacing, folding, hints, usage counts, spelling, grammar, colour scheme, editor_tabs), terminal shell, Git (update method, force push, protected branches), SSH security switches (only back to false), project view, start-up and quit, and advanced keys as ide_settings lists them (null resets; ai.* refused). mcp_http can only be switched off. Out-of-range values are clamped; AI Assistant settings cannot be changed here. Open windows read the file at their next start.
| Capability | ui.set_ide_settings |
|---|---|
| Area | Window and UI driver |
| Access | changes settings |
| Reaches | — |
| Rights | run, settings |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
font_size | number | Editor font size in pixels (8–40). |
line_spacing | number | Line spacing (1.0–2.0). |
ligatures | boolean | Font ligatures in the editor, e.g. -> drawn as one arrow (SPEC-0150 v2; off by default). |
strip_trailing_spaces | boolean | Remove trailing spaces on save, except on the caret line. |
ensure_line_break_at_end | boolean | Add a final line break on save. |
semantic_highlighting | boolean | Colour code from the language server's semantic tokens (SPEC-0290). |
parameter_hints | boolean | Parameter name hints before call arguments (SPEC-0291). |
fold_one_line_methods | boolean | Fold one-line Java methods when a file opens (SPEC-0083 v2). |
fold_imports | boolean | Fold the import block of a Java or Kotlin file when it opens (SPEC-0083 v4). |
config_values | boolean | Resolved configuration values in place of ${…} placeholders (SPEC-0115 v5). |
folding_arrows | string | When the folding arrows in the gutter are shown: always or hover (only at folded
regions and while the pointer is over the editor; the default) (SPEC-0083 v8). |
spelling_dictionary | string | Dictionaries of the typo check (SPEC-0159 v4): one code or several separated by commas,
e.g. en_GB or en_GB,en_US, each built in or downloaded; empty for the default. |
grammar | object | Scope of the grammar and spelling checks (SPEC-0155 v8 behaviour 14): commit_messages
(bool), and for one file_type (as the status bar names it, e.g. Java, Markdown,
Plain text) the switches enabled, comments, documentation, string_literals. |
grammar.commit_messages | boolean | Check commit messages (check_grammar with context commit_message). |
grammar.file_type | string | The file type the switches below change, e.g. Java, Markdown, Plain text. |
grammar.enabled | boolean | Check files of the type at all. |
grammar.comments | boolean | Ordinary comments. |
grammar.documentation | boolean | Documentation comments and Python docstrings. |
grammar.string_literals | boolean | String literals (off by default). |
usage_counts | boolean | Usage counts of type declarations (SPEC-0292). |
usage_counts_above | boolean | The usage counts on rows above the declarations instead of at the line end (SPEC-0292 v2). |
code_authors | boolean | The main author of each declaration at the end of its line (SPEC-0292 v4). |
highlight_usages_at_caret | boolean | Highlight the usages of the symbol at the caret by themselves (SPEC-0295). |
shell | string | Terminal shell; an empty string means $SHELL. |
font_family | string | Editor font family (SPEC-0150), e.g. JetBrains Mono, Menlo. |
right_margin | integer | Code Style: right margin column (40–400).minimum 0 |
show_right_margin | boolean | Code Style: whether the editor draws the right margin. |
indent | object | Code Style: indentation of one language (Default, Java, Go, … as listed in code_style_languages). |
indent.languagerequired | string | Language name as Code Style lists it. |
indent.indentrequired | integer | Columns per indent level (1–16); the tab width follows it.minimum 0 |
indent.use_tabs | boolean | Indent with tabs. |
update_method | string | Version Control: merge or rebase for Update Project. |
allow_force_push | boolean | Version Control: whether force push (with lease) is allowed at all. |
protected_branches | string | Version Control: protected branches, comma-separated, * matches any text. |
git_ssh_allow_classic_kex_for_azure_devops | boolean | git.ssh.allowClassicKexForAzureDevOps (ADR-0025 section 1a): false makes Git over SSH
to Azure DevOps require a post-quantum key exchange again. An agent can only switch it off;
switching it on is the user's choice in the settings. |
ssh_allow_own_proxy_command | boolean | ssh.allowOwnProxyCommand (ADR-0025 v5 section 1a): false refuses a ProxyCommand of the
user's own again. An agent can only switch it off. |
compact_mode | boolean | Appearance: compact mode (SPEC-0165). |
startup_animation | boolean | Appearance: the startup animation while start-up work runs (SPEC-0355 v2 behaviour 23). |
mcp_http | boolean | Whether the window serves MCP over HTTP on loopback with a token (SPEC-0221 v3): only
false; switching it on is the user's choice in Settings. |
database_report_url | string | Where problem reports about database systems open (SPEC-0301): an https:// template with
{title} and {body}; empty for Ferris IDEA's issue template, off for copying only. |
editor_tabs | object | Editor Tabs (SPEC-0059 v9 behaviour 17): the keys of editor.tabs.* to change, e.g.
{"limit": 40, "limit_rule": "close_unused", "close_button": "left"}; keys may carry the
editor.tabs. prefix. An unknown key or value is refused; the limit is clamped to 1–100. |
compact_middle_packages | boolean | Project tree: "Compact Middle Packages" (SPEC-0275 v10; on by default): a package in a source folder that holds nothing but one sub-package shares its row with it. |
confirm_quit | boolean | System Settings (SPEC-0337): ⌘Q and the menu ask "Quit Ferris IDEA?" also with nothing
pending (off by default; quit_ide and ferris-idea quit are never asked). |
reopen_last_project | boolean | System Settings (SPEC-0337): a start without a folder opens the last project (on by default); off shows the Welcome window (SPEC-0355). |
save_on_frame_deactivation | boolean | System Settings (SPEC-0337): a project window that loses the focus saves its modified files as Save All does (off by default). |
notifications_log_info | boolean | Notifications (SPEC-0337): keep informational notes in the Notifications tool window (on by default); failures are always kept. |
editor_scheme | string | Appearance (SPEC-0337): the editor colour scheme, one of Ferris IDEA Dark, Ferris IDEA
Light, Islands Dark, Dark, Light, or empty for the theme's own. |
advanced | object | Advanced Settings (SPEC-0337 behaviour 5): keys of ide_settings' advanced list and
their new values, null resetting a key to its default, e.g.
{"project_view.compact_middle_packages": false, "database.report_url": null}. ai.*
keys are the user's and refused. |
dry_run | boolean | Only return the settings as they would be saved (default true). |
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 set_ide_settingsInput schema as JSON
{ "type": "object", "$defs": { "GrammarPatch": { "description": "A change of the grammar scope through `set_ide_settings` (`SPEC-0155` v8 behaviour 14).", "type": "object", "properties": { "commit_messages": { "description": "Check commit messages (`check_grammar` with `context` `commit_message`).", "type": [ "boolean", "null" ] }, "file_type": { "description": "The file type the switches below change, e.g. `Java`, `Markdown`, `Plain text`.", "type": [ "string", "null" ] }, "enabled": { "description": "Check files of the type at all.", "type": [ "boolean", "null" ] }, "comments": { "description": "Ordinary comments.", "type": [ "boolean", "null" ] }, "documentation": { "description": "Documentation comments and Python docstrings.", "type": [ "boolean", "null" ] }, "string_literals": { "description": "String literals (off by default).", "type": [ "boolean", "null" ] } } }, "IndentArg": { "description": "The indentation of one language for `set_ide_settings`.", "type": "object", "properties": { "language": { "description": "Language name as Code Style lists it.", "type": "string" }, "indent": { "description": "Columns per indent level (1–16); the tab width follows it.", "type": "integer", "minimum": 0 }, "use_tabs": { "description": "Indent with tabs.", "type": [ "boolean", "null" ] } }, "required": [ "language", "indent" ] } }, "properties": { "font_size": { "description": "Editor font size in pixels (8–40).", "type": [ "number", "null" ] }, "line_spacing": { "description": "Line spacing (1.0–2.0).", "type": [ "number", "null" ] }, "ligatures": { "description": "Font ligatures in the editor, e.g. `->` drawn as one arrow (SPEC-0150 v2; off by default).", "type": [ "boolean", "null" ] }, "strip_trailing_spaces": { "description": "Remove trailing spaces on save, except on the caret line.", "type": [ "boolean", "null" ] }, "ensure_line_break_at_end": { "description": "Add a final line break on save.", "type": [ "boolean", "null" ] }, "semantic_highlighting": { "description": "Colour code from the language server's semantic tokens (SPEC-0290).", "type": [ "boolean", "null" ] }, "parameter_hints": { "description": "Parameter name hints before call arguments (SPEC-0291).", "type": [ "boolean", "null" ] }, "fold_one_line_methods": { "description": "Fold one-line Java methods when a file opens (SPEC-0083 v2).", "type": [ "boolean", "null" ] }, "fold_imports": { "description": "Fold the import block of a Java or Kotlin file when it opens (SPEC-0083 v4).", "type": [ "boolean", "null" ] }, "config_values": { "description": "Resolved configuration values in place of `${…}` placeholders (SPEC-0115 v5).", "type": [ "boolean", "null" ] }, "folding_arrows": { "description": "When the folding arrows in the gutter are shown: `always` or `hover` (only at folded\nregions and while the pointer is over the editor; the default) (SPEC-0083 v8).", "type": [ "string", "null" ] }, "spelling_dictionary": { "description": "Dictionaries of the typo check (SPEC-0159 v4): one code or several separated by commas,\ne.g. `en_GB` or `en_GB,en_US`, each built in or downloaded; empty for the default.", "type": [ "string", "null" ] }, "grammar": { "description": "Scope of the grammar and spelling checks (SPEC-0155 v8 behaviour 14): `commit_messages`\n(bool), and for one `file_type` (as the status bar names it, e.g. `Java`, `Markdown`,\n`Plain text`) the switches `enabled`, `comments`, `documentation`, `string_literals`.", "anyOf": [ { "$ref": "#/$defs/GrammarPatch" }, { "type": "null" } ] }, "usage_counts": { "description": "Usage counts of type declarations (SPEC-0292).", "type": [ "boolean", "null" ] }, "usage_counts_above": { "description": "The usage counts on rows above the declarations instead of at the line end (SPEC-0292 v2).", "type": [ "boolean", "null" ] }, "code_authors": { "description": "The main author of each declaration at the end of its line (SPEC-0292 v4).", "type": [ "boolean", "null" ] }, "highlight_usages_at_caret": { "description": "Highlight the usages of the symbol at the caret by themselves (SPEC-0295).", "type": [ "boolean", "null" ] }, "shell": { "description": "Terminal shell; an empty string means `$SHELL`.", "type": [ "string", "null" ] }, "font_family": { "description": "Editor font family (SPEC-0150), e.g. `JetBrains Mono`, `Menlo`.", "type": [ "string", "null" ] }, "right_margin": { "description": "Code Style: right margin column (40–400).", "type": [ "integer", "null" ], "minimum": 0 }, "show_right_margin": { "description": "Code Style: whether the editor draws the right margin.", "type": [ "boolean", "null" ] }, "indent": { "description": "Code Style: indentation of one language (`Default`, `Java`, `Go`, … as listed in `code_style_languages`).", "anyOf": [ { "$ref": "#/$defs/IndentArg" }, { "type": "null" } ] }, "update_method": { "description": "Version Control: `merge` or `rebase` for Update Project.", "type": [ "string", "null" ] }, "allow_force_push": { "description": "Version Control: whether force push (with lease) is allowed at all.", "type": [ "boolean", "null" ] }, "protected_branches": { "description": "Version Control: protected branches, comma-separated, `*` matches any text.", "type": [ "string", "null" ] }, "git_ssh_allow_classic_kex_for_azure_devops": { "description": "`git.ssh.allowClassicKexForAzureDevOps` (ADR-0025 section 1a): `false` makes Git over SSH\nto Azure DevOps require a post-quantum key exchange again. An agent can only switch it off;\nswitching it on is the user's choice in the settings.", "type": [ "boolean", "null" ] }, "ssh_allow_own_proxy_command": { "description": "`ssh.allowOwnProxyCommand` (ADR-0025 v5 section 1a): `false` refuses a ProxyCommand of the\nuser's own again. An agent can only switch it off.", "type": [ "boolean", "null" ] }, "compact_mode": { "description": "Appearance: compact mode (SPEC-0165).", "type": [ "boolean", "null" ] }, "startup_animation": { "description": "Appearance: the startup animation while start-up work runs (SPEC-0355 v2 behaviour 23).", "type": [ "boolean", "null" ] }, "mcp_http": { "description": "Whether the window serves MCP over HTTP on loopback with a token (SPEC-0221 v3): only\n`false`; switching it on is the user's choice in Settings.", "type": [ "boolean", "null" ] }, "database_report_url": { "description": "Where problem reports about database systems open (SPEC-0301): an `https://` template with\n`{title}` and `{body}`; empty for Ferris IDEA's issue template, `off` for copying only.", "type": [ "string", "null" ] }, "editor_tabs": { "description": "Editor Tabs (SPEC-0059 v9 behaviour 17): the keys of `editor.tabs.*` to change, e.g.\n`{\"limit\": 40, \"limit_rule\": \"close_unused\", \"close_button\": \"left\"}`; keys may carry the\n`editor.tabs.` prefix. An unknown key or value is refused; the limit is clamped to 1–100.", "type": [ "object", "null" ], "additionalProperties": true }, "compact_middle_packages": { "description": "Project tree: \"Compact Middle Packages\" (SPEC-0275 v10; on by default): a package in a\nsource folder that holds nothing but one sub-package shares its row with it.", "type": [ "boolean", "null" ] }, "confirm_quit": { "description": "System Settings (SPEC-0337): ⌘Q and the menu ask \"Quit Ferris IDEA?\" also with nothing\npending (off by default; `quit_ide` and `ferris-idea quit` are never asked).", "type": [ "boolean", "null" ] }, "reopen_last_project": { "description": "System Settings (SPEC-0337): a start without a folder opens the last project (on by\ndefault); off shows the Welcome window (SPEC-0355).", "type": [ "boolean", "null" ] }, "save_on_frame_deactivation": { "description": "System Settings (SPEC-0337): a project window that loses the focus saves its modified\nfiles as Save All does (off by default).", "type": [ "boolean", "null" ] }, "notifications_log_info": { "description": "Notifications (SPEC-0337): keep informational notes in the Notifications tool window (on\nby default); failures are always kept.", "type": [ "boolean", "null" ] }, "editor_scheme": { "description": "Appearance (SPEC-0337): the editor colour scheme, one of `Ferris IDEA Dark`, `Ferris IDEA\nLight`, `Islands Dark`, `Dark`, `Light`, or empty for the theme's own.", "type": [ "string", "null" ] }, "advanced": { "description": "Advanced Settings (SPEC-0337 behaviour 5): keys of `ide_settings`' `advanced` list and\ntheir new values, `null` resetting a key to its default, e.g.\n`{\"project_view.compact_middle_packages\": false, \"database.report_url\": null}`. `ai.*`\nkeys are the user's and refused.", "type": [ "object", "null" ], "additionalProperties": true }, "dry_run": { "description": "Only return the settings as they would be saved (default true).", "type": [ "boolean", "null" ] } }}