get_source
Raw source of a file (path) or one declaration (fqName)
How to use it
get_source is exposed by the Kotlin Lib MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_source tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Kotlin Lib MCP
claude mcp add kotlin-lib -- /path/to/kotlin-lib-mcp-server-<version>/bin/server --transport stdioOther tools in Kotlin Lib MCP (10)
fetches the latest stable release, as it always did
Download + analyze + cache; returns a summary. Idempotent. Version may be omitted or latest
Resolved signature of one declaration by FQ name
Dependency tree from .pom/.module; bounded depth
KDoc (summary, description, tags) of one declaration
Latest stable release (and newest overall) from maven-metadata.xml
Declarations with signatures; filter by package and visibility
Packages with declaration counts and KMP targets
Published versions from maven-metadata.xml, newest-first
Substring/regex search; bounded, returns file:line snippets