Skip to content

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.

Capabilityexecution.dependency_tree
AreaRun, test and tasks
Accesschanges processes
Reachesprocess, network
Rightsrun, trusted-project
Dry runnone

Arguments

ArgumentTypeDescription
modulestringModule folder as in project_model (. for the root); the first module when omitted.
resolvebooleanMaven 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.

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