Skip to content

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.

Capabilityui.set_ide_settings
AreaWindow and UI driver
Accesschanges settings
Reaches—
Rightsrun, settings
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
font_sizenumberEditor font size in pixels (8–40).
line_spacingnumberLine spacing (1.0–2.0).
ligaturesbooleanFont ligatures in the editor, e.g. -> drawn as one arrow (SPEC-0150 v2; off by default).
strip_trailing_spacesbooleanRemove trailing spaces on save, except on the caret line.
ensure_line_break_at_endbooleanAdd a final line break on save.
semantic_highlightingbooleanColour code from the language server's semantic tokens (SPEC-0290).
parameter_hintsbooleanParameter name hints before call arguments (SPEC-0291).
fold_one_line_methodsbooleanFold one-line Java methods when a file opens (SPEC-0083 v2).
fold_importsbooleanFold the import block of a Java or Kotlin file when it opens (SPEC-0083 v4).
config_valuesbooleanResolved configuration values in place of ${…} placeholders (SPEC-0115 v5).
folding_arrowsstringWhen 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_dictionarystringDictionaries 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.
grammarobjectScope 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_messagesbooleanCheck commit messages (check_grammar with context commit_message).
grammar.file_typestringThe file type the switches below change, e.g. Java, Markdown, Plain text.
grammar.enabledbooleanCheck files of the type at all.
grammar.commentsbooleanOrdinary comments.
grammar.documentationbooleanDocumentation comments and Python docstrings.
grammar.string_literalsbooleanString literals (off by default).
usage_countsbooleanUsage counts of type declarations (SPEC-0292).
usage_counts_abovebooleanThe usage counts on rows above the declarations instead of at the line end (SPEC-0292 v2).
code_authorsbooleanThe main author of each declaration at the end of its line (SPEC-0292 v4).
highlight_usages_at_caretbooleanHighlight the usages of the symbol at the caret by themselves (SPEC-0295).
shellstringTerminal shell; an empty string means $SHELL.
font_familystringEditor font family (SPEC-0150), e.g. JetBrains Mono, Menlo.
right_marginintegerCode Style: right margin column (40–400).minimum 0
show_right_marginbooleanCode Style: whether the editor draws the right margin.
indentobjectCode Style: indentation of one language (Default, Java, Go, … as listed in code_style_languages).
indent.languagerequiredstringLanguage name as Code Style lists it.
indent.indentrequiredintegerColumns per indent level (1–16); the tab width follows it.minimum 0
indent.use_tabsbooleanIndent with tabs.
update_methodstringVersion Control: merge or rebase for Update Project.
allow_force_pushbooleanVersion Control: whether force push (with lease) is allowed at all.
protected_branchesstringVersion Control: protected branches, comma-separated, * matches any text.
git_ssh_allow_classic_kex_for_azure_devopsbooleangit.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_commandbooleanssh.allowOwnProxyCommand (ADR-0025 v5 section 1a): false refuses a ProxyCommand of the user's own again. An agent can only switch it off.
compact_modebooleanAppearance: compact mode (SPEC-0165).
startup_animationbooleanAppearance: the startup animation while start-up work runs (SPEC-0355 v2 behaviour 23).
mcp_httpbooleanWhether 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_urlstringWhere 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_tabsobjectEditor 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_packagesbooleanProject 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_quitbooleanSystem 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_projectbooleanSystem 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_deactivationbooleanSystem Settings (SPEC-0337): a project window that loses the focus saves its modified files as Save All does (off by default).
notifications_log_infobooleanNotifications (SPEC-0337): keep informational notes in the Notifications tool window (on by default); failures are always kept.
editor_schemestringAppearance (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.
advancedobjectAdvanced 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_runbooleanOnly 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.

Terminal window
ferris-idea call ~/my-project set_ide_settings
Input 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"
]
}
}
}