JVM Source Lens for VS Code
io.github.sintexer/jvmsrc
Gradle-accurate JVM classpath; fetch Java source, signatures, and class structure for agents.
client:VS Code
transport:stdio
runtime:npm
Install JVM Source Lens in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "jvmsrc-allowed-roots",
"description": "JVMSRC_ALLOWED_ROOTS",
"password": true
},
{
"type": "promptString",
"id": "jvmsrc-cache-root",
"description": "JVMSRC_CACHE_ROOT",
"password": true
},
{
"type": "promptString",
"id": "jvmsrc-log-dir",
"description": "JVMSRC_LOG_DIR",
"password": true
},
{
"type": "promptString",
"id": "jvmsrc-max-source-output-chars",
"description": "JVMSRC_MAX_SOURCE_OUTPUT_CHARS",
"password": true
},
{
"type": "promptString",
"id": "jvmsrc-gradle-timeout-ms",
"description": "JVMSRC_GRADLE_TIMEOUT_MS",
"password": true
},
{
"type": "promptString",
"id": "jvmsrc-cfr-path",
"description": "JVMSRC_CFR_PATH",
"password": true
}
],
"servers": {
"jvmsrc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"jvmsrc"
],
"env": {
"JVMSRC_ALLOWED_ROOTS": "${input:jvmsrc-allowed-roots}",
"JVMSRC_CACHE_ROOT": "${input:jvmsrc-cache-root}",
"JVMSRC_LOG_DIR": "${input:jvmsrc-log-dir}",
"JVMSRC_MAX_SOURCE_OUTPUT_CHARS": "${input:jvmsrc-max-source-output-chars}",
"JVMSRC_GRADLE_TIMEOUT_MS": "${input:jvmsrc-gradle-timeout-ms}",
"JVMSRC_CFR_PATH": "${input:jvmsrc-cfr-path}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs