Skip to content

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.

Capabilityexecution.java_environment
AreaRun, test and tasks
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
jdkstringJDK 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.

Terminal window
ferris-idea call ~/my-project java_environment
Input schema as JSON
{
"type": "object",
"properties": {
"jdk": {
"description": "JDK home to use instead of the automatic choice (absolute or workspace-relative).",
"type": [
"string",
"null"
]
}
}
}