← Back to Plugins
MCP Server MCP

JVM Source Lens

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

npx -y [email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "jvmsrc",
      "version": "1.15.0",
      "runtimeHint": "npx",
      "transport": {
        "type": "stdio"
      },
      "runtimeArguments": [
        {
          "description": "Install the package via npx without a confirmation prompt.",
          "type": "named",
          "name": "-y"
        }
      ],
      "packageArguments": [
        {
          "description": "Run the bundled MCP server (stdio transport).",
          "value": "mcp",
          "type": "positional"
        }
      ],
      "environmentVariables": [
        {
          "description": "Optional comma-separated absolute paths; only these project roots are allowed.",
          "format": "string",
          "name": "JVMSRC_ALLOWED_ROOTS"
        },
        {
          "description": "Optional absolute path for resolution and decompile caches (default: OS cache dir).",
          "format": "string",
          "name": "JVMSRC_CACHE_ROOT"
        },
        {
          "description": "Optional absolute path for failure diagnostic logs.",
          "format": "string",
          "name": "JVMSRC_LOG_DIR"
        },
        {
          "description": "Max characters returned for full-file source (default 524288).",
          "format": "string",
          "name": "JVMSRC_MAX_SOURCE_OUTPUT_CHARS"
        },
        {
          "description": "Gradle resolution subprocess timeout in milliseconds.",
          "format": "string",
          "name": "JVMSRC_GRADLE_TIMEOUT_MS"
        },
        {
          "description": "Optional path to a custom CFR JAR for decompilation.",
          "format": "filepath",
          "name": "JVMSRC_CFR_PATH"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...