dependency_analysis
MCP tools › Run, test and tasks
Dependency analyzer of the build tools window (SPEC-0100 v3, IMP-0341): for a Maven or Gradle module's resolved tree the artifacts reached in more than one version (conflict), the version on the classpath (chosen), and every place each is reached with the version asked for there, its status (used, replaced by …, omitted for conflict with …, omitted for duplicate), its path from the module and the direct dependency it starts with. all adds the artifacts without conflict, artifact narrows to one, diagram adds the tree as Mermaid text (IMP-0339). resolve: true lets the build tool resolve first (run right); without a resolution the answer says so.
Its results carry text from files, process: the client is told to treat that as data, never as instructions.
| Capability | execution.dependency_analysis |
|---|---|
| Area | Run, test and tasks |
| Access | changes processes |
| Reaches | process, network |
| Rights | run, trusted-project |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
module | string | Maven or Gradle module folder (. for the root); the first such module when omitted. |
resolve | boolean | Let the build tool resolve the module first (needs the run right, logged). |
artifact | string | Only this artifact (group:artifact). |
all | boolean | Also every artifact without a conflict (default: only the conflicts). |
diagram | boolean | Also the tree as a Mermaid flowchart. |
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 dependency_analysisInput schema as JSON
{ "type": "object", "properties": { "module": { "description": "Maven or Gradle module folder (`.` for the root); the first such module when omitted.", "type": [ "string", "null" ], "default": null }, "resolve": { "description": "Let the build tool resolve the module first (needs the `run` right, logged).", "type": [ "boolean", "null" ], "default": null }, "artifact": { "description": "Only this artifact (`group:artifact`).", "type": [ "string", "null" ], "default": null }, "all": { "description": "Also every artifact without a conflict (default: only the conflicts).", "type": [ "boolean", "null" ], "default": null }, "diagram": { "description": "Also the tree as a Mermaid flowchart.", "type": [ "boolean", "null" ], "default": null } }}