dependency_tree
MCP tools › Run, test and tasks
Dependency tree and tasks of one module, as the build tools window shows them: transitive dependencies from Cargo.lock or package-lock.json (each package expanded once, later occurrences marked repeated); for Maven and Gradle from the build tool's resolution (Gradle per classpath configuration, a → b where Gradle chose another version), kept until the build file changes, made now with resolve=true (needs the run right) — resolved says whether the tree is current; direct dependencies with locked versions otherwise; tasks with their commands.
Its results carry text from files, process: the client is told to treat that as data, never as instructions.
| Capability | execution.dependency_tree |
|---|---|
| Area | Run, test and tasks |
| Access | changes processes |
| Reaches | process, network |
| Rights | run, trusted-project |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
module | string | Module folder as in project_model (. for the root); the first module when omitted. |
resolve | boolean | Maven and Gradle (SPEC-0149): let the build tool resolve the transitive dependencies now
(mvn dependency:tree, gradle dependencies); needs the run right and is logged.
Without it a resolution kept from earlier is used while the build file is unchanged. |
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_treeInput schema as JSON
{ "type": "object", "properties": { "module": { "description": "Module folder as in `project_model` (`.` for the root); the first module when omitted.", "type": [ "string", "null" ], "default": null }, "resolve": { "description": "Maven and Gradle (SPEC-0149): let the build tool resolve the transitive dependencies now\n(`mvn dependency:tree`, `gradle dependencies`); needs the `run` right and is logged.\nWithout it a resolution kept from earlier is used while the build file is unchanged.", "type": [ "boolean", "null" ], "default": null } }}