Skip to content

run_configuration_edit

MCP tools › Run, test and tasks

Change the run configurations of .ferris-idea/run.toml with the Edit Configurations dialog's validation. Operations: add, update, copy, remove, move, save_temporary; folders with set_folder, rename_folder, remove_folder; per-type defaults with set_template (never changes existing configurations). Reference IDE configurations (idea_configs) are read only. before_launch browser URLs must be http, https or a workspace .html file. A configuration with problems is refused and the file left unchanged; writes go to Local History. Dry run by default: returns the file as it would be written; dry_run=false needs the run and write rights and a trusted project.

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

Capabilityexecution.run_configuration_edit
AreaRun, test and tasks
Accesschanges files, processes
Reachesprocess
Rightsrun, write, trusted-project
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
operationrequiredstringadd, update, copy, remove, move, save_temporary, set_folder, rename_folder, remove_folder or set_template.
namestringThe configuration acted on (update, copy, remove, move, set_folder; for save_temporary the name of a temporary configuration of the window).
folderstringset_folder: the folder to put configuration name into; left out, the configuration is taken out of its folder. rename_folder, remove_folder: the folder acted on.
typestringA configuration type: command, shell_script, node_file, npm_script, python_file, cargo, maven, gradle, go_test or pytest. With add: the new configuration starts from the type's command and a copy of the type's template, and config only names what differs (it may be left out). With set_template: the type whose template is set.
templateanyset_template: the defaults a new configuration of the type starts from, all optional: interpreter (the program in place of the type's own), options (arguments right after the program), cwd, env, before, before_launch, allow_multiple, timeout. Left out or empty: the type's template is removed.
configanyThe configuration as in run.toml (add, update): name, command and the optional keys cwd, env, kind, report, report_file, before, timeout, url, folder (the folder it is listed in), allow_multiple (true: several instances at once) and before_launch (tasks after the before configurations, each one of {"build": "project"}, {"tool": [program, arguments…], "cwd": folder} and {"browser": URL}; only http, https and file://${workspace}/….html URLs).
command_linestringInstead of config.command: the command as one shell-quoted line.
new_namestringName of the copy (copy; default: the name with a free number); the folder's new name (rename_folder).
byintegerPlaces to move by (move; negative moves up).
dry_runbooleanOnly show the file as it would be written (default true); false writes it and needs the run right.

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 run_configuration_edit '{"operation":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"operation"
],
"properties": {
"operation": {
"description": "`add`, `update`, `copy`, `remove`, `move`, `save_temporary`, `set_folder`,\n`rename_folder`, `remove_folder` or `set_template`.",
"type": "string"
},
"name": {
"description": "The configuration acted on (`update`, `copy`, `remove`, `move`, `set_folder`; for\n`save_temporary` the name of a temporary configuration of the window).",
"type": [
"string",
"null"
]
},
"folder": {
"description": "`set_folder`: the folder to put configuration `name` into; left out, the configuration\nis taken out of its folder. `rename_folder`, `remove_folder`: the folder acted on.",
"type": [
"string",
"null"
]
},
"type": {
"description": "A configuration type: `command`, `shell_script`, `node_file`, `npm_script`,\n`python_file`, `cargo`, `maven`, `gradle`, `go_test` or `pytest`. With `add`: the new\nconfiguration starts from the type's command and a copy of the type's template, and\n`config` only names what differs (it may be left out). With `set_template`: the type\nwhose template is set.",
"type": [
"string",
"null"
]
},
"template": {
"description": "`set_template`: the defaults a new configuration of the type starts from, all optional:\n`interpreter` (the program in place of the type's own), `options` (arguments right after\nthe program), `cwd`, `env`, `before`, `before_launch`, `allow_multiple`, `timeout`. Left\nout or empty: the type's template is removed."
},
"config": {
"description": "The configuration as in `run.toml` (`add`, `update`): `name`, `command` and the optional\nkeys `cwd`, `env`, `kind`, `report`, `report_file`, `before`, `timeout`, `url`, `folder`\n(the folder it is listed in), `allow_multiple` (true: several instances at once) and\n`before_launch` (tasks after the `before` configurations, each one of `{\"build\":\n\"project\"}`, `{\"tool\": [program, arguments…], \"cwd\": folder}` and `{\"browser\": URL}`; only\nhttp, https and `file://${workspace}/….html` URLs)."
},
"command_line": {
"description": "Instead of `config.command`: the command as one shell-quoted line.",
"type": [
"string",
"null"
]
},
"new_name": {
"description": "Name of the copy (`copy`; default: the name with a free number); the folder's new name\n(`rename_folder`).",
"type": [
"string",
"null"
]
},
"by": {
"description": "Places to move by (`move`; negative moves up).",
"type": [
"integer",
"null"
]
},
"dry_run": {
"description": "Only show the file as it would be written (default true); false writes it and needs the\n`run` right.",
"type": [
"boolean",
"null"
]
}
}
}