Analyze Java & Kotlin libraries with a standalone CLI or integrate directly into AI IDEs via MCP.
AI coding assistants often guess Java/Kotlin library APIs from outdated documentation, web examples, or a different version than the one installed in your project. That leads to missing methods, deprecated usage, incorrect signatures, and wasted debugging time.
Library Insight solves this by scanning the exact JAR, AAR, Gradle output, or Maven dependency used by your project. It reads compiled .class structures and Kotlin @Metadata annotations to build a searchable, version-correct public API index, ensuring the reported APIs always match the installed version instead of outdated documentation or web examples.
The complete documentation, architecture diagrams, command reference, and integration guides are available at: 👉 https://Coding-Meet.github.io/Library-Insight/
- MCP Server: Connect Cursor, Claude Desktop, or any MCP-compatible IDE to query APIs directly.
- Version-Correct API Lookup: Scans the exact library version in your project to prevent AI hallucinations.
- Deep Metadata Extraction: Extracts classes, constructors, methods, properties, nullability flags, generics, and annotations.
- Kotlin DSL & Fluent API Mapping: Scans
@DslMarkerscopes, type aliases, lambda parameter builders, and inline reified functions. - Method Call Graph Generator: Recursively traces and renders method call trees inside bytecode to analyze internal invocations.
- Automatic Usage Examples: Auto-generates standard boilerplate usage patterns and extracts guide examples from docs.
- API Health & Complexity Audits: Computes public API count distributions, complexity indices, and deprecation ratio scores.
- Linkage Conflict & ABI Detector: Scans your classpath for classpath mismatches that could trigger
LinkageErrororNoSuchMethodError. - Migration Advisor: Compares two versions and lists deprecated, added, and replacement APIs.
- Dependency API Audit: Scans project dependencies and highlights deprecated library APIs inside bytecode.
- Exporter Tools: Exports indexes to JSON, readable Markdown reference docs, or token-optimized AI context packages.
Install the CLI globally on your system (requires JDK 17+):
curl -fsSL https://raw.githubusercontent.com/Coding-Meet/Library-Insight/main/install.sh | bash# 1. Scan a library from Maven Central (or your Gradle cache)
library-insight scan com.squareup.retrofit2:retrofit:2.11.0
# 2. Search for a class
library-insight search Retrofit
# 3. Explain API signatures and KDocs
library-insight explain Retrofit
# 4. Compare two versions for compatibility / breaking changes
library-insight diff com.squareup.retrofit2:retrofit:2.9.0 com.squareup.retrofit2:retrofit:2.11.0Start the stdio-based MCP server:
library-insight mcpFor setup instructions in Cursor or Claude Desktop, see the MCP Integration Guide.
We plan to expand Library Insight into a unified Kotlin Multiplatform (KMP) API explorer:
- KLib Metadata Reader: Parse
.klibmetadata to extract signatures for iOS/Native, JS, and Wasm targets directly (bypassing JVM bytecode dependencies). - Platform-Aware Indexing: Store platform target markers (
common,jvm,ios,js,wasm) in the database schema so AI agents know exactly where APIs are available. - KMP Coordinate Resolution: Auto-resolve platform split coordinates (e.g.
ktor-client-core-iosarm64) from the root KMP library Maven coordinate.
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for the full license text.
Quick reference commands for development, testing, documentation, and releasing:
Regenerate SKILL.md after editing docs/cli.md:
./gradlew generateAgentSkillRun the complete unit test suite across all modules:
./gradlew testManage the documentation website locally:
# Preview the docs site locally with live-reload (default: http://localhost:8000)
mkdocs serve --livereload
# Build static HTML site files
mkdocs build
# Force deploy documentation to GitHub Pages (gh-pages branch)
mkdocs gh-deploy --forceRelease and publish a new version tag to GitHub:
git tag v1.2.0
git push origin v1.2.0Run the command-line walkthrough scripts:
# Run the 3-minute quick command suite demo
./quick-demo.sh
# Run the comprehensive 21-command suite demo
./demo.shGenerate application binary packages (ZIP, TAR, and local install distributions):
./gradlew installDist distZip distTar