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.
| Capability | code.library_sources |
|---|---|
| Area | Code insight and refactoring |
| Access | changes processes |
| Reaches | process, network |
| Rights | run, trusted-project |
| Dry run | dry_run, off unless the call asks for it |
Arguments
| Argument | Type | Description |
|---|---|---|
download | boolean | Download the sources and documentation first (needs the run right, logged); without it
only the local caches are read. |
dry_run | boolean | Only 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.
ferris-idea call ~/my-project library_sourcesInput 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 } }}