Provides tools for analyzing Linux system crash dumps through the crash utility, enabling automatic discovery of vmcore files, kernel matching, and execution of crash analysis commands like sys, bt, and ps.
Crash MCP Server
基于 MCP (Model Context Protocol) 的服务器,用于 系统崩溃转储 (Crash Dump) 分析。
集成 Linux crash 实用程序和 drgn 可编程调试器,提供统一分析接口。
功能特性
统一会话: 同时支持
crash和drgn引擎远程分析: 通过 SSH 连接远程主机,无需下载 vmcore
多传输模式: Stdio(默认) / SSE(HTTP)
自动发现: 扫描指定目录下的转储文件
安装
前置要求
Python 3.10+
crash工具drgn工具(可选)
快速安装
使用
启动服务器
MCP 工具
工具 | 说明 |
| 扫描目录查找 vmcore 文件 |
| 启动分析会话(需要 vmcore 和 vmlinux 路径) |
| 执行 crash 命令(如 sys, bt, log, ps) |
| 执行 drgn Python 代码(如 prog.crashed_thread()) |
| 关闭会话 |
| 获取系统信息 |
配置
CRASH_SEARCH_PATH: 搜索转储文件的路径(默认/var/crash)LOG_LEVEL: 日志级别
客户端配置
Claude Desktop (claude_desktop_config.json):
SSE 连接: http://localhost:8000/sse