
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 分