
Threadmine
dev.threadmine由 threadmine.dev 发布v0.2.0更新于 Oct 30, 2026
Analyze JVM thread dumps with ThreadMine: deadlocks, CPU spikes, pool exhaustion, health score.
概览
ThreadMine 让助手分析 JVM 线程转储,返回检测到的问题、0-100 健康评分和报告链接。
- 可以做什么
- 上传线程转储(内联文本或文件路径),获取检测到的问题、健康评分和报告链接
- 按 id 读取此前的分析结果,只读且不消耗额度
- 从 jstack 等输出中诊断死锁、CPU 飙升、线程池耗尽和虚拟线程固定
- 适用场景
- 适用于 Java 或 Spring Boot 服务卡死、CPU 飙升且手头有线程转储需要解读时,或希望在对话中快速诊断卡住的 JVM。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js 20 或更高版本。需要能通过 TLS 访问 ThreadMine API。可选的 THREADMINE_API_KEY 用于将分析存入工作区并获得更高额度;THREADMINE_API_URL 可指向其他端点。
安装
在 SourceWeft 中
- 打开 控制台中的 Threadmine,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ThreadMine MCP Server
ThreadMine is a Java thread dump analyzer with AI — detects deadlocks, CPU spikes, pool exhaustion and virtual thread pinning. Free online, no signup.
Official MCP server for ThreadMine. Paste a JVM thread dump into your AI assistant — Claude Code, Claude Desktop or Cursor — and get back the detected problems, a health score and a link to the full interactive report, without leaving the chat.
No account needed. Without an API key the server uses the same public endpoint as the threadmine.dev analyzer. With a key, analyses land in your ThreadMine workspace.
Tools
Setup
Claude Code plugin (MCP server plus a skill that tells Claude when to use it)
Claude Code, server only
Claude Desktop / Cursor (claude_desktop_config.json / .cursor/mcp.json)
With or without an account
To use your account, create an API key in the web app (Settings → API Keys) and set THREADMINE_API_KEY in the server's environment. For the plugin, export it in the shell that starts Claude Code; for the other setups, add it to the env block ("env": { "THREADMINE_API_KEY": "tf_live_xxx" }) or pass -e THREADMINE_API_KEY=tf_live_xxx to claude mcp add.
Usage
Ask your assistant things like:
- "Analyze this thread dump:
<paste>" - "Run the dump at /tmp/threaddump.txt through ThreadMine"
- "My Spring Boot app stopped answering, here's the jstack output"
- "What did analysis
<id>find? Any deadlocks?"
Privacy
The dump is sent to the ThreadMine API over TLS. Thread dumps can carry hostnames, class and package names and SQL fragments. If your policy forbids sending production dumps to a third party, run them through tm-anon first: it anonymizes the dump locally, keeps the mapping on your machine, and ThreadMine still analyzes the result.
Hung tests in CI
When a JVM test hangs in GitHub Actions and the job hits timeout-minutes, threadmine-action dumps the stuck test JVM and writes the same diagnosis to the job summary and the pull request. It's one line in the workflow (uses: maschiojv/threadmine-action@v1) and needs no account.
Notes
THREADMINE_API_URLoverrides the API endpoint (self-hosted / staging).THREADMINE_SITE_URLoverrides the site used in anonymous report links.- Requires Node.js ≥ 20.
License
MIT
来源:README.md,提交 317781c
工具
0版本历史
2- v0.2.0最新Oct 29, 2026
- v0.1.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分