inspection_profile
MCP tools › Code insight and refactoring
The project's inspection profile, stored as the reference stores it in .idea/inspectionProfiles/Project_Default.xml: lists every Ferris IDEA inspection with id, short name, name, language, default level, whether it is enabled, its current level, whether it differs from the default, and its description. With id only that inspection; with id and enabled and/or severity (error, warning, weak) it changes the profile and writes the file; reset=true with id returns the inspection to its default. Changes apply to inspect_code, fix_inspection and the editor.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | code.inspection_profile |
|---|---|
| Area | Code insight and refactoring |
| Access | changes files |
| Reaches | — |
| Rights | write |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
id | string | Inspection id to show or change; every inspection when omitted. |
enabled | boolean | Turn the inspection on or off. |
severity | string | New severity: error, warning, weak or info (no highlighting, only the fix). |
reset | boolean | Return the inspection to its default (default false).default false |
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 inspection_profileInput schema as JSON
{ "type": "object", "properties": { "id": { "description": "Inspection id to show or change; every inspection when omitted.", "type": [ "string", "null" ], "default": null }, "enabled": { "description": "Turn the inspection on or off.", "type": [ "boolean", "null" ], "default": null }, "severity": { "description": "New severity: `error`, `warning`, `weak` or `info` (no highlighting, only the fix).", "type": [ "string", "null" ], "default": null }, "reset": { "description": "Return the inspection to its default (default false).", "type": "boolean", "default": false } }}