/kotlin-lib:library-ground-truthfrom Kotlin & Java Library Sources
Looks up real API signatures, KDoc, source, and dependency trees for Maven-published Kotlin/Java libraries. Use when recall is unreliable or imports don't compile.
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.
Model memory of third-party JVM APIs is unreliable: names drift between versions, overloads are
invented, nullability and generics get lost. The kotlin-lib MCP server answers from the
published sources jar for the exact version the project depends on. Prefer it over recall.
Never guess the version. Read it from the project:
gradle/libs.versions.toml — version catalog ([libraries] / [versions])build.gradle.kts / build.gradle — implementation("group:artifact:version")pom.xml — <dependency> blocksgradle.lockfile / gradle/verification-metadata.xml if present — these carry the resolved
version, which is what actually ends up on the classpathIf the project pins no version, or you're evaluating a library it doesn't use yet, pass
group:artifact (or group:artifact:latest) and the server resolves the latest stable release.
Call fetch_library with the coordinate once per library and version. It downloads, extracts
and analyzes the sources; every other tool then answers from the on-disk cache, offline and fast.
All other tools fail until it has run for that coordinate.
| You need | Tool |
|---|---|
| What's in this library at all | list_packages |
| What's in this package | list_declarations (package, visibility, maxResults, offset) |
| The exact signature of one symbol | get_api_signature (fqName) |
What it does / params / @throws | get_kdoc (fqName) |
| How it's actually implemented | get_source (fqName or path) |
| Where a thing is used or defined | search_source (query, regex, maxResults, offset) |
| What it drags onto the classpath | get_dependencies (depth 1–5) |
| Which versions exist / newest stable | list_versions, get_latest_version |
Start narrow. list_declarations on a large package is a wall of text; a search_source for the
concept, then get_api_signature on the two or three hits, is usually the cheaper path.
State the version you consulted — "in io.ktor:ktor-client-core:3.5.1, HttpClient.config takes
…". A signature marked bestEffort came from PSI without full type resolution (a transitive
dependency was missing), so flag it as approximate rather than presenting it as resolved.
If a symbol genuinely isn't there, say so and offer what is there (a renamed replacement found
via search_source, or the same symbol in a neighbouring version via list_versions). Do not
paper over the gap by writing code against the API you expected to find.
fetch_library for a large library takes a while (download + full analysis). It is
cached afterwards, keyed by group/artifact/version, and later calls are instant.What SKILL.md sets; muted values are Claude Code's defaults
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]/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-version/setupSet up kotlin-libSet up or repair the kotlin-lib MCP server bundled with this plugin. Use right after installing the plugin, when its tools are missing from the toolset, when the server shows as failed in /plugin or /mcp, or when the machine has no JDK 25.Other plugins' skills for the same job