MCP Server for Arthas remote diagnostics
Project description
Arthas MCP Server
通用的 Arthas 代理 MCP Server,支持多实例管理。
功能特性
- 支持多个 Arthas 实例管理
- 统一的命令执行接口
- 安全的 Token 认证
- 环境变量配置支持
- 完整的审计日志
安装
pip install arthas-mcp-server
配置
在用户目录下创建配置文件 ~/.arthas-mcp/config.json:
{
"instances": [
{
"name": "shop-frontend-daily",
"url": "https://your-domain.com/internal/arthas",
"token": "${ARTHAS_TOKEN_DAILY}",
"description": "Shop Frontend Daily Environment"
}
]
}
支持环境变量替换,格式为 ${ENV_VAR_NAME}。
使用方法
1. 启动 MCP Server
arthas-mcp
2. 在 Claude Desktop 中配置
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"arthas": {
"command": "arthas-mcp"
}
}
}
3. 可用工具
arthas_list_instances: 列出所有配置的 Arthas 实例arthas_execute: 在指定实例上执行 Arthas 命令
示例
列出所有实例:
arthas_list_instances
执行命令:
arthas_execute(
instance_name="shop-frontend-daily",
command="dashboard",
operator="claude"
)
支持的 Arthas 命令
- dashboard: 系统实时数据面板
- thread: 线程信息
- jvm: JVM 信息
- memory: 内存信息
- watch: 方法执行观测
- trace: 方法调用路径追踪
- stack: 方法调用堆栈
- tt: 时间隧道记录
- monitor: 方法执行监控
- jad: 反编译类
- sc: 查找类
- sm: 查找方法
许可证
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arthas_mcp_server-1.0.0.tar.gz.
File metadata
- Download URL: arthas_mcp_server-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99d142556b8710fba3789072b2b98b52ce4724ff0ddad0e13396c990fc98e8ef
|
|
| MD5 |
033ebcfd2af6b81fee3d8ba9cafdb41d
|
|
| BLAKE2b-256 |
235000d2242954470ccf7a27023e8a37dae7533e33bb6f03334b874b2c9c9b76
|
File details
Details for the file arthas_mcp_server-1.0.0-py3-none-any.whl.
File metadata
- Download URL: arthas_mcp_server-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b869a2255fc9e54a7bb3f75dc9d6c9686d376c603353d96ad548c4ee8e031047
|
|
| MD5 |
a2ee584639124b72e0a08f16dc1f426f
|
|
| BLAKE2b-256 |
56fac60c954eaea034ab61cee08455b783d682aade6a64fa1a424f6fbb35711e
|