/kotlin-lib:setupfrom Kotlin & Java Library Sources
Sets up or repairs the kotlin-lib MCP server bundled with this plugin. Verifies JDK 25+, smoke-tests with a small library, and provides troubleshooting for common failures.
Ships in Kotlin & Java Library Sources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The plugin ships one MCP server, started for you when the plugin is enabled. It runs a small launcher on the user's JDK:
<java> -Xlog:disable -Xlog:all=warning:stderr --enable-native-access=ALL-UNNAMED <plugin>/launcher/KotlinLibMcpLauncher.java
The launcher downloads the server release named by the server_version option into the plugin's
data directory once, verifies its SHA-256, and runs it in the same JVM. This installation is
configured as:
java option): ${user_config.java} — java means the one on the PATH
Claude Code was started with; anything else is a full path to <JDK home>/bin/java.server_version option): ${user_config.server_version}.${CLAUDE_PLUGIN_DATA}.Requirement: a JDK 25 or later — not a JRE, because the launcher runs in single-file source
mode, which compiles it. Nothing else: no Docker, no Gradle, no credentials, no account. Use the
configured Java executable, quoted if its path has spaces, for every java / javac check below.
fetch_library, list_packages,
list_declarations, get_api_signature, get_kdoc, get_source, search_source,
diff_versions, diff_api, get_dependencies, list_versions, get_latest_version.fetch_library on org.jetbrains:annotations:26.0.2, then
list_packages on the same coordinate. Both succeeding means the pipeline works end to end./mcp shows whether the server connected. The launcher writes its reason to stderr, which lands in
the debug log: start Claude Code with claude --debug, then read ~/.claude/debug/<session-id>.txt.
A plugin server that failed less than 15 minutes earlier is not started again on its own — after a
fix, choose Reconnect on it in /mcp.
| Symptom | Cause | Fix |
|---|---|---|
The command was not found (ENOENT) | No java on the PATH Claude Code was started with — typical when it was launched from the Dock or Start menu rather than a shell — or the configured path is wrong | Set Java executable in /plugin → configure to the full path of a JDK 25+ <JDK home>/bin/java (C:\Program Files\Java\jdk-25\bin\java.exe, /usr/lib/jvm/jdk-25/bin/java); saving reloads the plugin |
needs Java 25 or later, but the plugin is running on Java 21 | The configured java is older than the server | Point Java executable at a JDK 25+, or pin Server version to 0.7.0, the last release that runs on Java 21 |
java fails before the launcher prints anything, with an error about compiling the source file | The configured java belongs to a JRE, which has no compiler | Point Java executable at a JDK's java — check with javac -version from the same bin directory |
Could not reach GitHub | No network route to api.github.com / github.com, or a proxy, with no server installed yet or a pinned one that is not | Fix the network, or download the release zip by hand, unzip it, and set the KOTLIN_LIB_MCP_SERVER_HOME environment variable to it before starting Claude Code |
GitHub rate-limited the request | GitHub allows 60 unauthenticated API requests an hour per IP address; a shared office, VPN or CI address can use them up | Wait until the time the message names and choose Reconnect in /mcp, or use KOTLIN_LIB_MCP_SERVER_HOME as above. Changing the pin does not help |
GitHub answered HTTP … | A GitHub outage, or a proxy refusing the request | Try again later, or use KOTLIN_LIB_MCP_SERVER_HOME as above |
No release v… of kotlin-lib-mcp | A pinned version that was never released (GitHub answered 404) | Pin a version listed at https://github.com/aoreshkov/kotlin-lib-mcp/releases, or set it back to latest |
Not a server distribution or No jars in | KOTLIN_LIB_MCP_SERVER_HOME points somewhere other than an unpacked release | Point it at the directory that holds bin/ and lib/ — inside the zip's single top-level folder, not the folder above it |
Tools present, every fetch_library fails | No network route to Maven Central, or a corporate proxy | The server reaches Maven repositories only; pass a mirror with --repo <url> --no-maven-central through a manual registration (below) |
| First fetch is very slow | Expected — download plus full source analysis | It is cached afterwards, keyed by group/artifact/version |
To force a fresh server download, delete ${CLAUDE_PLUGIN_DATA}/dist and choose Reconnect on
the server in /mcp.
Keep the plugin for its skills, turn its own server off in /mcp, and register the same server
another way — the skills work against any registration of it:
claude mcp add kotlin-lib -- docker run -i --rm -v kotlin-lib-mcp-cache:/home/mcp/.cache ghcr.io/aoreshkov/kotlin-lib-mcpclaude mcp add kotlin-lib -- /path/to/kotlin-lib-mcp-server-<version>/bin/server --transport stdio
(on Windows, bin\server.bat).Do not edit the plugin's .mcp.json in place: a plugin update overwrites it. The java and
server_version options are the supported way to change what it runs.
Read-only. The launcher downloads the server from the repository's GitHub releases; the server
reaches public Maven repositories only (Maven Central by default), downloading sources jars and
metadata for coordinates it is asked about into its on-disk cache. No credentials, no telemetry —
tracing exists but is off unless the server is started with --otel. See the repository's Privacy
section for the full statement.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aoreshkov/kotlin-lib-mcp --plugin kotlin-lib4 skills in this plugin
/apiPublic API summarySummarize the public API of a Maven-published Kotlin or Java library from its real sources. Usage:/kotlin-lib:api group:artifact[:version] [package]/library-ground-truthLibrary ground truthLook up the real API of a Maven-published Kotlin or Java library — type-resolved signatures, KDoc, dependency tree and source — instead of recalling it. Use before writing or reviewing code against a third-party JVM dependency, when a symbol's existence, signature, nullability, generics or overloads are uncertain, when an import or call doesn't compile, or when the user asks what a library class or function does./migrateUpgrade impact reportDiff a library's public API between two versions and find what breaks in this codebase. Usage:/kotlin-lib:migrate group:artifact from-version to-versionOther plugins' skills for the same job