Skip to content

library_sources

MCP tools › Code insight and refactoring

Sources and documentation of the Maven and Gradle libraries: per resolved library whether its -sources.jar and -javadoc.jar are in the local caches (Maven repository, Gradle cache) with their paths, and a summary. download: true first runs the build tools with the build tools window's options (Maven dependency:sources and dependency:resolve -Dclassifier=javadoc per module, a Gradle init script task per build; run right, logged); dry_run only lists those commands.

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

Capabilitycode.library_sources
AreaCode insight and refactoring
Accesschanges processes
Reachesprocess, network
Rightsrun, trusted-project
Dry rundry_run, off unless the call asks for it

Arguments

ArgumentTypeDescription
downloadbooleanDownload the sources and documentation first (needs the run right, logged); without it only the local caches are read.
dry_runbooleanOnly report the commands a download would run.

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 library_sources
Input schema as JSON
{
"type": "object",
"properties": {
"download": {
"description": "Download the sources and documentation first (needs the `run` right, logged); without it\nonly the local caches are read.",
"type": [
"boolean",
"null"
],
"default": null
},
"dry_run": {
"description": "Only report the commands a download would run.",
"type": [
"boolean",
"null"
],
"default": null
}
}
}