Threadmine

dev.threadmine由 threadmine.dev 发布v0.2.0更新于 Oct 30, 2026

Analyze JVM thread dumps with ThreadMine: deadlocks, CPU spikes, pool exhaustion, health score.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

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 可指向其他端点。
安装前请注意
转储会发送到第三方 API,其中可能包含主机名、类名与包名以及 SQL 片段,若策略不允许,应先用匿名化工具处理生产转储。未提供密钥时报告为公开链接,任何持有链接的人都能打开,并在 7 天后过期。匿名使用限制为每 IP 每小时 5 次、每天 20 次。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Threadmine,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

ToolWhat it does
analyze_thread_dumpUploads a thread dump (inline text or file path) and returns detected problems, health score (0-100) and the report link
get_analysisFetches a previous analysis by the id analyze_thread_dump returned. Read-only, consumes nothing

Setup

Claude Code plugin (MCP server plus a skill that tells Claude when to use it)

bash
claude plugin marketplace add maschiojv/threadmine-mcpclaude plugin install threadmine@threadmine-plugins

Claude Code, server only

bash
claude mcp add threadmine -- npx -y @threadmine/mcp

Claude Desktop / Cursor (claude_desktop_config.json / .cursor/mcp.json)

json
{  "mcpServers": {    "threadmine": {      "command": "npx",      "args": ["-y", "@threadmine/mcp"]    }  }}

With or without an account

Without an API keyWith THREADMINE_API_KEY
Limit5 analyses per hour, 20 per day, per IPYour plan's quota (pricing)
ReportPublic link (threadmine.dev/resultado/...), anyone with it can open it, expires after 7 daysPrivate, in your workspace

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_URL overrides the API endpoint (self-hosted / staging). THREADMINE_SITE_URL overrides the site used in anonymous report links.
  • Requires Node.js ≥ 20.

License

MIT

来源:README.md,提交 317781c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.2.0最新Oct 29, 2026
  2. v0.1.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分