AgentHubAgentHub

JVM Source Lens

MCP ServerMCP Registry官方收录

io.github.Sintexer/jvmsrc · v1.12.1

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

概览

JVM Source Lens 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "jvmsrc": {
      "command": "npx",
      "args": [
        "-y",
        "jvmsrc"
      ]
    }
  }
}

环境变量

JVMSRC_ALLOWED_ROOTS可选

Optional comma-separated absolute paths; only these project roots are allowed.

JVMSRC_CACHE_ROOT可选

Optional absolute path for resolution and decompile caches (default: OS cache dir).

JVMSRC_LOG_DIR可选

Optional absolute path for failure diagnostic logs.

JVMSRC_MAX_SOURCE_OUTPUT_CHARS可选

Max characters returned for full-file source (default 524288).

JVMSRC_GRADLE_TIMEOUT_MS可选

Gradle resolution subprocess timeout in milliseconds.

JVMSRC_CFR_PATH可选

Optional path to a custom CFR JAR for decompilation.

相关资源

统一 Manifest

{
  "id": "io.github.Sintexer/jvmsrc",
  "type": "mcp-server",
  "version": "1.12.1",
  "displayName": "JVM Source Lens",
  "description": "Gradle-accurate JVM classpath; fetch Java source, signatures, and class structure for agents.",
  "repository": {
    "url": "https://github.com/Sintexer/jvm-source-lens",
    "source": "github"
  },
  "homepage": "https://github.com/Sintexer/jvm-source-lens#readme",
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "jvmsrc",
        "version": "1.12.1",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "JVMSRC_ALLOWED_ROOTS",
            "description": "Optional comma-separated absolute paths; only these project roots are allowed."
          },
          {
            "name": "JVMSRC_CACHE_ROOT",
            "description": "Optional absolute path for resolution and decompile caches (default: OS cache dir)."
          },
          {
            "name": "JVMSRC_LOG_DIR",
            "description": "Optional absolute path for failure diagnostic logs."
          },
          {
            "name": "JVMSRC_MAX_SOURCE_OUTPUT_CHARS",
            "description": "Max characters returned for full-file source (default 524288)."
          },
          {
            "name": "JVMSRC_GRADLE_TIMEOUT_MS",
            "description": "Gradle resolution subprocess timeout in milliseconds."
          },
          {
            "name": "JVMSRC_CFR_PATH",
            "description": "Optional path to a custom CFR JAR for decompilation."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.Sintexer/jvmsrc",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.Sintexer%2Fjvmsrc/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
JVM Source Lens — MCP Server 安装与配置 · AgentHub