joLink
v0.1.0a10A lightweight Java IDE for AI agents: incremental builds, fast tests, HotSwap and live debugging.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
java_application
Launch, attach, restart, stop, or detach Java applications. For Maven/Gradle, use project_path plus main_class without IDEA, or select an IDEA launch. Use java_fast_test to run tests without launching an application. Launch and restart wait up to timeout (at most 30 seconds), returning the result if finished or the original background task if still running. After editing a managed Maven/Gradle project, use restart: it detects changed sources, incrementally compiles them, and prefers HotSwap (hotswap=true by default). Incompatible changes use the same compiled outputs to restart the JVM. Set ho…
| Parameter | Type | Description |
|---|---|---|
action * | string | Runtime operation to perform. |
app_args | array | Application arguments for launch/restart. Replaces imported or current arguments; [] clears them. |
build_java_home | string | JDK home used to prepare a Maven or Gradle project during project_path launch. Separate from the application's java_home. Omit to use project/environment settings. Restart inherits the launch choices. |
build_system | string | Optional authoritative build system for project launch; specify maven or gradle when both exist. |
classpath | string | Classpath for direct launch/restart with main_class; omit with project_path. |
host | string | Debug connection host; localhost only. |
hotswap | boolean | For restart, default true: incrementally compile edits and prefer HotSwap; if changes cannot be hot-swapped, restart the JVM with those compiled outputs. False forces a JVM restart after compilation.… |
jar_path | string | Executable JAR for direct launch/restart; omit with project_path. |
java_home | string | Application JDK home directory for project, classpath or JAR launch. Restart inherits the previous selection; supplying a different JDK replaces the JVM instead of HotSwap. |
jdwp_port | integer | Local Java debug port for launch or attach. |
launch_name | string | Optional exact case-sensitive IDEA launch configuration name; requires project_path. With main_class and no launch_name, no IDEA launch configuration is required. Explicit main_class, java_home, app_a… |
main_class | string | Fully qualified application entry class. With project_path, launch without requiring IDEA configuration; otherwise uses classpath. |
maven_home | string | Optional Maven installation directory, used instead of the project Wrapper or automatically selected Maven. |
maven_settings | string | Optional Maven user settings.xml path, including repository mirrors and credentials. The file is not modified. |
pid | integer | Local Java PID required by attach. |
project_path | string | Maven or Gradle project directory. Supply main_class for an IDEA-independent launch, or import an IDEA launch configuration (launch_name selects one). Compiles changed sources before starting the appl… |
ready_port | integer | Local application TCP port for launch/restart readiness; must differ from jdwp_port. |
timeout | number | Seconds to wait for the launch/restart result in this call. Defaults to 30; values above 30 wait only 30 seconds without error. Zero returns immediately after submission. On expiry the same task conti… |
vm_args | array | JVM arguments for launch/restart. Replaces imported or current arguments; [] clears them. |
java_fast_test
Run selected Java tests in Maven or Gradle projects, incrementally compiling changed sources. Supports JUnit 4/5 and TestNG. No application launch is required, and an existing application is left running. Provide project_path and tests (Class or Class#method); action defaults to run. First-time preparation and compilation can take minutes; subsequent calls reuse unchanged results. Waits up to timeout (maximum 30 seconds); unfinished work returns its test_run_id and continues in the background. Observe it with java_status or cancel it here using action='cancel' and the same test_run_id. If comp…
| Parameter | Type | Description |
|---|---|---|
action | string | Omit or use run to execute tests; use result with test_run_id to read diagnostics and failure details plus captured test output without rerunning; use cancel to stop that test run. |
build_java_home | string | JDK home for Maven or Gradle project preparation. Omit to use java_home or project/environment settings. |
build_system | string | Optional authoritative build system for tests; specify maven or gradle when both exist. |
java_home | string | JDK home for running tests; overrides the project's test JVM. Omit to follow project settings. Also used for project preparation when build_java_home is omitted. |
maven_home | string | Optional Maven installation directory, used instead of the project Wrapper or automatically selected Maven. |
maven_settings | string | Optional Maven user settings.xml path, including repository mirrors and credentials. The file is not modified. |
project_path | string | Maven project or Gradle Wrapper project directory containing the selected tests. No IDEA launch configuration or running application is required. |
source_files | array | Optional changed Java source paths relative to project_path, including module prefixes. May include added, edited, or deleted main/test files. Normally omit: changes are detected automatically. |
test_run_id | string | Test run ID returned by java_fast_test; required for action='cancel' or 'result'. Results are retained for the active and most recently finished run in this MCP session. |
tests | array | Explicit Fast Test selectors as fully qualified Class or Class#method. Fast Test v1 supports JUnit 4/5 and TestNG. |
timeout | number | Seconds to wait for this test result: default 30, values above 30 wait only 30, zero submits immediately. Expiry leaves the same task running. This controls how long the call waits, not the test execu… |
java_status
Discover local Java processes, inspect a compact application/build overview with status, or request current launch/restart details with status and details=true. Use logs with source=application (default) or source=build for log text. status omits build-log text and detailed launch/restart results. It includes only a Fast Test summary; read test details with java_fast_test(action='result', test_run_id=...).
| Parameter | Type | Description |
|---|---|---|
action * | string | status returns a compact overview; use details=true for launch/restart details; logs reads a bounded log tail. |
details | boolean | For status: include current launch/restart diagnostics, configuration and detailed results. Does not rerun work; use logs for log text. |
filter | string | Optional case-insensitive process filter. |
full | boolean | Include JVM arguments; slower and more verbose. |
source | string | For logs: application output (default), or the current project launch's build log. |
tail | integer | Lines from the selected application/build log tail. Returns truncation and scan metadata. |
java_debugger
Observe executed paths and runtime state with breakpoints, exception events, stacks, and variables. Use evaluate for Java expressions in a suspended frame; method calls may change application state. Always resume or clean up every suspension.
| Parameter | Type | Description |
|---|---|---|
action * | string | Runtime operation to perform. |
allow_broad_caught | boolean | Allow noisy broad caught-exception watches. |
bp_action | string | Breakpoint operation. |
breakpoint_id | string | Breakpoint identifier returned by set/list. |
caught | boolean | Watch caught exceptions. |
class_pattern | string | Class name/pattern for breakpoint set or removal. |
exception_action | string | Exception-watch operation. |
exception_class | string | Exception class in Java name, JVM path, or signature form. |
expression | string | Java expression required for evaluate, using the selected suspended frame's locals and this. Method calls execute in the application and may have side effects. |
frame_index | integer | Frame index for variables or evaluate. |
host | string | Debug connection host; localhost only. |
http_trigger | object | Optional loopback request started only after event waiting is armed. Use with blocking for one-call arm/trigger/await, or with arm when work must occur before a later await. It is rejected while confi… |
include_generated | boolean | Allow generated classes in breakpoint matching. |
include_proxy | boolean | Allow proxy classes in breakpoint matching. |
include_this | boolean | Include this in variables. |
item_limit | integer | Maximum list/set/array items. |
jdwp_port | integer | Local Java debug port for launch or attach. |
line | integer | Source line for breakpoint set/removal. |
map_entry_limit | integer | Maximum map entries. |
max_frames | integer | Maximum stack frames. |
max_value_depth | integer | Object expansion depth. |
request_id | integer | Exception-watch identifier returned by set/list. |
semantic_collections | boolean | Render supported Java collections logically. |
suspension_id | string | Active suspension id returned by wait_event/status. Pass it to stack, variables, evaluate, and resume so stale observations are rejected; stack/variables/evaluate use its event-hit thread when thread_… |
thread_name | string | Optional fallback selector for stack/variables/evaluate. Omit it to use the active suspension's event-hit thread. Exact names are preferred; otherwise a unique prefix or substring must identify one JV… |
timeout | number | Seconds to wait for an event or expression evaluation. An evaluation timeout does not undo side effects or guarantee that the invoked method stopped; do not automatically retry it. |
uncaught | boolean | Watch uncaught exceptions. |
wait_handle | string | Active observation handle returned by arm or a nonterminal blocking result. |
wait_mode | string | blocking waits directly; with http_trigger it performs arm, trigger, and await in one call. Use arm then await with its wait_handle when an external action is needed after event waiting is armed. Resu… |