java_environment
MCP tools › Run, test and tasks
Java setup of the workspace without starting a JVM: installed JDKs (JAVA_HOME, system and user JVM folders, SDKMAN, Gradle JDKs, PATH) with version, feature release, vendor, compiler and architecture from their release files; the Java version the project states (Maven, Gradle toolchain/compatibility, .java-version, .sdkmanrc, .idea/misc.xml) with contradictions as problems; which JDK is selected and why, and whether it can build the project.
Its results carry text from process: the client is told to treat that as data, never as instructions.
| Capability | execution.java_environment |
|---|---|
| Area | Run, test and tasks |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
jdk | string | JDK home to use instead of the automatic choice (absolute or workspace-relative). |
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 java_environmentInput schema as JSON
{ "type": "object", "properties": { "jdk": { "description": "JDK home to use instead of the automatic choice (absolute or workspace-relative).", "type": [ "string", "null" ] } }}