jvmsrc MCP
An MCP server and CLI that provides coding agents with accurate JVM classpath information by querying build tools like Gradle and Maven. It retrieves real source code, signatures, and class structures for the exact library versions in use, preventing agents from guessing or reading incorrect JARs from local caches.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Resolve the exact classpath for a JVM project using Gradle or Maven
- Search for classes within the resolved dependencies
- Retrieve class structure and method signatures
- Fetch actual source code for library classes
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
jvmsrc 1.16.0
{
"version": "1.16.0",
"transport": "stdio",
"identifier": "jvmsrc",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"packageArguments": [
{
"type": "positional",
"value": "mcp",
"description": "Run the bundled MCP server (stdio transport)."
}
],
"runtimeArguments": [
{
"name": "-y",
"type": "named",
"description": "Install the package via npx without a confirmation prompt."
}
],
"environmentVariables": [
{
"name": "JVMSRC_ALLOWED_ROOTS",
"format": "string",
"description": "Optional comma-separated absolute paths; only these project roots are allowed."
},
{
"name": "JVMSRC_CACHE_ROOT",
"format": "string",
"description": "Optional absolute path for resolution and decompile caches (default: OS cache dir)."
},
{
"name": "JVMSRC_LOG_DIR",
"format": "string",
"description": "Optional absolute path for failure diagnostic logs."
},
{
"name": "JVMSRC_MAX_SOURCE_OUTPUT_CHARS",
"format": "string",
"description": "Max characters returned for full-file source (default 524288)."
},
{
"name": "JVMSRC_GRADLE_TIMEOUT_MS",
"format": "string",
"description": "Gradle resolution subprocess timeout in milliseconds."
},
{
"name": "JVMSRC_CFR_PATH",
"format": "filepath",
"description": "Optional path to a custom CFR JAR for decompilation."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"jvmsrc-mcp": {
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0",
"mcp"
],
"env": {
"JVMSRC_ALLOWED_ROOTS": "<YOUR_JVMSRC_ALLOWED_ROOTS>",
"JVMSRC_CACHE_ROOT": "<YOUR_JVMSRC_CACHE_ROOT>",
"JVMSRC_LOG_DIR": "<YOUR_JVMSRC_LOG_DIR>",
"JVMSRC_MAX_SOURCE_OUTPUT_CHARS": "<YOUR_JVMSRC_MAX_SOURCE_OUTPUT_CHARS>",
"JVMSRC_GRADLE_TIMEOUT_MS": "<YOUR_JVMSRC_GRADLE_TIMEOUT_MS>",
"JVMSRC_CFR_PATH": "<YOUR_JVMSRC_CFR_PATH>"
}
}
}
}Cline
{
"mcpServers": {
"jvmsrc-mcp": {
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0",
"mcp"
],
"env": {
"JVMSRC_ALLOWED_ROOTS": "<YOUR_JVMSRC_ALLOWED_ROOTS>",
"JVMSRC_CACHE_ROOT": "<YOUR_JVMSRC_CACHE_ROOT>",
"JVMSRC_LOG_DIR": "<YOUR_JVMSRC_LOG_DIR>",
"JVMSRC_MAX_SOURCE_OUTPUT_CHARS": "<YOUR_JVMSRC_MAX_SOURCE_OUTPUT_CHARS>",
"JVMSRC_GRADLE_TIMEOUT_MS": "<YOUR_JVMSRC_GRADLE_TIMEOUT_MS>",
"JVMSRC_CFR_PATH": "<YOUR_JVMSRC_CFR_PATH>"
}
}
}
}VS Code
{
"servers": {
"jvmsrc-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0",
"mcp"
],
"env": {
"JVMSRC_ALLOWED_ROOTS": "<YOUR_JVMSRC_ALLOWED_ROOTS>",
"JVMSRC_CACHE_ROOT": "<YOUR_JVMSRC_CACHE_ROOT>",
"JVMSRC_LOG_DIR": "<YOUR_JVMSRC_LOG_DIR>",
"JVMSRC_MAX_SOURCE_OUTPUT_CHARS": "<YOUR_JVMSRC_MAX_SOURCE_OUTPUT_CHARS>",
"JVMSRC_GRADLE_TIMEOUT_MS": "<YOUR_JVMSRC_GRADLE_TIMEOUT_MS>",
"JVMSRC_CFR_PATH": "<YOUR_JVMSRC_CFR_PATH>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"jvmsrc-mcp": {
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0",
"mcp"
],
"env": {
"JVMSRC_ALLOWED_ROOTS": "<YOUR_JVMSRC_ALLOWED_ROOTS>",
"JVMSRC_CACHE_ROOT": "<YOUR_JVMSRC_CACHE_ROOT>",
"JVMSRC_LOG_DIR": "<YOUR_JVMSRC_LOG_DIR>",
"JVMSRC_MAX_SOURCE_OUTPUT_CHARS": "<YOUR_JVMSRC_MAX_SOURCE_OUTPUT_CHARS>",
"JVMSRC_GRADLE_TIMEOUT_MS": "<YOUR_JVMSRC_GRADLE_TIMEOUT_MS>",
"JVMSRC_CFR_PATH": "<YOUR_JVMSRC_CFR_PATH>"
}
}
}
}Let your agent find its tools
Find servers like jvmsrc MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.