jvmlens

alexmond/jvmlens
★ 1 stars Java AI/LLM Updated 12d ago
LLM-ready JVM profiler — turns a JFR recording into a compact, source-attributed hot-path & allocation summary that AI coding agents can act on. In-process agent, MCP server, and JMH plugin; library + CLI.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "jvmlens": {
      "command": "npx",
      "args": [
        "-y",
        "alexmond/jvmlens"
      ]
    }
  }
}

README Excerpt

Turn JVM runtime evidence into a compact, **LLM-ready** diagnosis. **Ask an AI to "debug this."** A raw `jfr print` dump of a short recording is **2.7 MB ≈ 684K tokens** — pipe it to a model and the request overflows the context window; it can't even read it. The *same* recording through jvmlens is **~1 KB (~250 tokens)**:

Tools (1)

mcp

Topics

ai-coding-agentsai-toolsasync-profilerdeveloper-toolsgarbage-collectionjavajava-agentjava-flight-recorderjfrjmhjvmllmmcpmodel-context-protocolobservability