:package: *kotlin-lib-mcp 0.9*: give your AI agent...
# feed
a
📦 kotlin-lib-mcp 0.9: give your AI agent the real sources of the Kotlin/Java libraries you use https://github.com/aoreshkov/kotlin-lib-mcp Agents tend to write code against the API they remember, not the version pinned in your
libs.versions.toml
. kotlin-lib-mcp is an open-source MCP server that downloads a library's published sources jar and analyzes it with the Kotlin Analysis API (standalone K2). It then serves type-resolved signatures, KDoc, deprecations and source search for exactly the version you ask for. It handles KMP libraries properly: per-target sources come from Gradle
.module
metadata. New since 0.2: • `diff_api`: public-API changes between two versions of a library, deprecations included. The
/kotlin-lib:migrate
command is built on it. • `diff_versions`: a bounded source diff between two versions • Deprecations are indexed and filterable in
list_declarations
• A Claude Code plugin that runs on your own JDK 25+, no Docker needed:
Copy code
/plugin marketplace add aoreshkov/kotlin-lib-mcp
/plugin install kotlin-lib@kotlin-lib-mcp
• Works in IntelliJ IDEA / Android Studio (AI Assistant, Junie), VS Code / Copilot and Claude Desktop. There's also a Docker image, and it's listed in the official MCP Registry. Apache-2.0. The feedback I'd value most: which libraries trip it up, big KMP ones especially. Replies in the thread are welcome 🧵