技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
SegfaultSorcerer/heap-seance

SegfaultSorcerer/heap-seance

Java memory leak diagnost
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add heap-seance -- npx -y heap-seance
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
4 ★ · SegfaultSorcerer/heap-seance · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 4 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 SegfaultSorcerer/heap-seance;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

Heap Seance

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Summoning retained objects from the heap — so you can interrogate what refuses to die.
An MCP server + CLI toolkit that channels the spirits of jcmd , jmap , jstat , jfr , Eclipse MAT, and async-profiler into a structured leak investigation workflow — designed to run inside Claude Code .
2 slash commands. 8 MCP tools. Conservative by default.
---
How It Works •
Quick Start •
MCP Tools •
Workflow •
Prerequisites •
Contributing
---
How It Works
Heap Seance follows a two-stage escalation model. No deep forensics unless the evidence demands it.
**Confidence is earned, not assumed.** high requires at least two independent strong signals. A single growing class is watch. Growth plus GC pressure is suspicious. Add a MAT dominator or JFR correlation and you get probable_memory_leak.
Quick Start
Requires uv, Python 3.10+, and a JDK 17+ for tooling (the target app can run any Java version).
1. Clone
2. Add .mcp.json to your Java project
In the project you want to investigate, create a .mcp.json:
--directory points to where you cloned Heap Seance. uv run handles the virtual environment and dependencies automatically. ASYNC_PROFILER_BIN is optional — if missing, deep mode continues with JFR + MAT.
3. Copy the Claude Code commands
Copy the .claude/commands/ folder into your Java project so the /leak-scan and /leak-deep slash commands are available:
4. Run
Heap Seance resolves the target process, collects evidence, and returns a structured verdict.
MCP Tools
| Tool | What it does |
|------|-------------|
| java_list_processes() | Discover running JVMs via jcmd -l |
| java_class_histogram(pid) | Snapshot live object counts per class |
| java_gc_snapshot(pid) | Sample jstat -gcutil over time |
| java_jfr_start(pid) | Capture a JFR recording |
| java_jfr_summary(jfr_file) | Summarize JFR event types and counts |
| java_heap_dump(pid) | Full heap dump (.hprof) |
| java_mat_suspects(heap_dump) | Run MAT leak suspects analysis |
| java_async_alloc_profile(pid) | Allocation flame graph via async-profiler |
Every tool returns the same unified schema:
Investigation Workflow
1. **Start your app** and let it initialize fully.
2. **/leak-scan ** — takes the first histogram snapshot.
3. **Exercise the suspect behavior** — the scan prompts you between each of the 3 histogram samples to perform the action you suspect is leaking (open/close views, send requests, repeat workflows). This is critical — without load between samples, leaks stay invisible.
4. **Read the verdict.** Focus on Confidence, Key Evidence, Suspect Types.
5. **/leak-deep ** if the scan flags growth, or if you want full forensics regardless.
6. **Fix and re-scan.** Bounded caches, weak refs, listener cleanup — then /leak-scan again to confirm the signal drops.
7. **Keep artifacts.** .jfr, .hprof, and MAT reports are saved for team review.
What you get back
**/leak-scan** returns: Verdict, Confidence, Key Evidence, Suspect Types, Artifacts, Next Steps.
**/leak-deep** goes further: Verdict, Confidence, Root Holder Hypothesis (who retains the growing objects and via which field/chain), Supporting Evidence, Artifacts, Remediation Hypotheses (concrete fix suggestions), Verification Plan.
来源
awesome · https://github.com/SegfaultSorcerer/heap-seance
按领域浏览
MCP 服务
Traction
4 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引