# joLink [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/L1ch404/jolink-runtime  
**GitHub Stars:** 18  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/jolink

## Description
A lightweight Java IDE for AI agents: incremental builds, fast tests, HotSwap and live debugging.

## Tools
Capabilities this server exposes over MCP:

- **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 hotswap=false for a real process restart and application reinitialization. apply_method reports hotswap or restart; HotSwap does not refresh framework state or count as a JVM startup. previous_startup_ms reports the prior successful startup duration saved locally for this launch, or null if unavailable. It survives MCP restarts and excludes compilation. A pending restart returns reload_id; observe active_operation and last_reload using java_status. Direct JAR/classpath launches restart their existing artifact without source compilation.
- **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 compilation fails before run returns, it includes compiler diagnostics directly. java_status stays compact; use action='result' with test_run_id for background error diagnostics, failed-test details, and captured test stdout/stderr without rerunning tests. Result includes the last 50 lines of combined test output (up to 16 KiB), output_truncated, and local log_files paths. Read those files directly when more output is needed. This is not the complete Maven/Gradle verification or packaging lifecycle.
- **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=...).
- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "jolink": {
    "command": "uvx",
    "args": ["jolink-runtime@latest"]
  }
}
```

## Documentation

## What joLink MCP server does

The joLink MCP server provides a headless runtime loop for Java coding agents. Instead of offering an editor interface, it exposes operations through MCP so an agent can compile changed code, run selected tests, start or stop an application, inspect status and logs, and investigate execution with a debugger.

Its purpose is to replace assumption-driven edit cycles with observable feedback. An agent can make a change, run the relevant code, inspect the result, and then decide whether another change is needed. The runtime is intended for local development and does not require a joLink account, model API key, inference service, or separate agent application.

## How it works

The joLink MCP server keeps compilation state and an exported test build world across MCP processes. Managed projects use a JDT workspace, allowing changed code to be compiled incrementally. On application restart, HotSwap is preferred when the change is compatible with the running JVM; incompatible changes cause a JVM restart using the compiled outputs. A request can also disable HotSwap and force application reinitialization, while the result identifies whether HotSwap or a real restart was used.

Fast Test runs explicitly selected JUnit 4, JUnit 5, or TestNG tests in an isolated JVM without launching or changing a running application. Maven or Gradle probing is used when the small configuration cache is missing or stale. The current JDT supports Java source and target levels 8 through 26, with project-dependent JDK and library requirements. Supported layouts include Maven jar projects, a selected jar module in a standard Reactor, and Gradle Java builds with multi-project dependencies.

A practical investigation generally starts with application status, logs, and actual outputs. If those are insufficient, the agent can inspect exception events, execution paths, breakpoints, stack frames, and variables.

## Setup and configuration

Installation is guided through a new chat in the coding agent. The supplied installation procedure directs the agent to use the repository's installation guide, install the MCP server and its English `jolink-java` Skill, preserve existing configuration, and enable a global Java change-verification rule when desired. The rule is optional; removing its installation instruction leaves MCP and the Skill enabled.

The documented MCP command is `uvx jolink-runtime@latest`. The installation guide provides client-specific configuration examples and covers uv setup, user-level installation, reconnection, reloads, and post-reload verification. If a client needs a UI action or restart, installation may pause until that action is completed.

## Tools and capabilities

The joLink MCP server exposes four focused tools:

- `java_application` launches projects, performs compile-aware restarts, stops applications, and attaches to processes.
- `java_fast_test` runs selected tests, returns results and failure details, and supports cancellation.
- `java_status` discovers Java processes and provides status details and logs on request.
- `java_debugger` manages breakpoints, exception events, stack frames, variables, and resume operations.

For an unfinished fast test, the agent can use the returned run identifier with `java_status` or `java_fast_test` to wait, retrieve results, or cancel without rerunning the tests. Compilation diagnostics are included when compilation fails before execution begins. Only the active and most recently completed test attempts remain available in the current MCP session.

## Limitations and notes

Fast Test reports `passed=false` when selected tests ran and found a failure; that value does not by itself indicate an MCP infrastructure error. An unavailable test-run identifier returns `TEST_RUN_NOT_FOUND`. Full compiler file lists are omitted from the compact status response.

Project and runtime support still depends on the project's target libraries, application JDK, and test JDK. Multi-module Maven and Gradle workflows resolve selected-module upstream dependencies into separate JDT projects in one worker. Local module dependencies use current workspace output rather than installed JARs, and Maven test-jar dependencies are supported. The README's demonstration is a constructed scenario, not a record of a real business incident.

_Full upstream README: https://allmcps.com/mcp/jolink/readme_

