Skip to content
Cursor

JVM Source Lens for Cursor

io.github.sintexer/jvmsrc

Gradle-accurate JVM classpath; fetch Java source, signatures, and class structure for agents.

client:Cursor transport:stdio runtime:npm

Install JVM Source Lens in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "jvmsrc": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "jvmsrc"
      ],
      "env": {
        "JVMSRC_ALLOWED_ROOTS": "<JVMSRC_ALLOWED_ROOTS>",
        "JVMSRC_CACHE_ROOT": "<JVMSRC_CACHE_ROOT>",
        "JVMSRC_LOG_DIR": "<JVMSRC_LOG_DIR>",
        "JVMSRC_MAX_SOURCE_OUTPUT_CHARS": "<JVMSRC_MAX_SOURCE_OUTPUT_CHARS>",
        "JVMSRC_GRADLE_TIMEOUT_MS": "<JVMSRC_GRADLE_TIMEOUT_MS>",
        "JVMSRC_CFR_PATH": "<JVMSRC_CFR_PATH>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

JVM Source Lens in other clients