
toby1123yjh/arthas_mcp_server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
アルハス MCP Server は、LM 統合用に設計された、Java アプリケーション用の MCP ベースの診断ツールキットです。 Alibaba Arthasと統合し、AIアシスタントはJavaアプリを分析し、診断することができます.
概要
アルハス MCP Server は、LM 統合用に設計された、Java アプリケーション用の MCP ベースの診断ツールキットです。 Alibaba Arthasと統合し、AIアシスタントはJavaアプリを分析し、診断することができます。 - LLMフレンドリーなツールによるインテリジェントな診断 - リアルタイム監視:JVM、スレッド、メモリ - パフォーマンス分析:CPU使用量、コールトレース、ボトルネック - ランタイム操作:動的クラス/メソッドツール - 余分 - connect arthas: Arthas WebConsole - get connection status に接続します: 現在のステータスを取得する - disconnect arthas: 接続解除 - get jvm info: JVM 情報 - get thread info: スレッドの状態とパフォーマンス - get memory info: メモリ使用状況とGC - execute arthas command: 実行する カスタムのArthas コマンド - analytics performance: パフォーマンス分析 - trace method calls メソッド: コールの呼び出し macOS:~/.cursor/mcp.json ウィンドウ: C:\Users{username}.cursor\mcp.json 複数の展開方法があります: 添付モードまたはエージェントモード.
概要(AI 翻訳)
Java 診断 MCP サーバー
概要
アルハス MCP Server は、LM 統合用に設計された、Java アプリケーション用の MCP ベースの診断ツールキットです。 Alibaba Arthasと統合し、AIアシスタントはJavaアプリを分析し、診断することができます。
##特徴
- LLM に適する用具による理性的な診断
- リアルタイム監視:JVM、スレッド、メモリ
- パフォーマンス分析:CPU使用、コールトレース、ボトルネック -ランタイム操作:動的クラス/メソッドツール
- exmaple
クイックスタート
インストール
実行
MCP ツール
- connect arthas:Arthas WebConsoleに接続する
- get connection status: 現在のステータスを取得する -disconnect arthas:切断
- get jvm info: JVM 情報
- get thread info: スレッドの状態とパフォーマンス
- get memory info: メモリ使用とGC
- execute arthas command: カスタムArthasコマンドを実行します
- analytics performance: パフォーマンス分析
- trace method calls:メソッド呼び出しのトレース
設定
Cursor/Claude コードに追加
macOS: ~/.cursor/mcp.json
ウィンドウ: [[T1]
スタートアーシャス
複数の展開方法があります: 添付モードまたはエージェントモード.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
Arthas MCP Server
Java diagnostics MCP server
Overview
Arthas MCP Server is an MCP-based diagnostic toolkit for Java applications, designed for LLM integration. It integrates with Alibaba Arthas so AI assistants can analyze and diagnose Java apps.
Features
- Intelligent diagnostics via LLM-friendly tools
- Real-time monitoring: JVM, threads, memory
- Performance analysis: CPU usage, call tracing, bottlenecks
- Runtime operations: dynamic class/method tools
- exmaple
Quick Start
Install
uv sync
Run
python main.py
MCP Tools
- connect_arthas: connect to Arthas WebConsole
- get_connection_status: get current status
- disconnect_arthas: disconnect
- get_jvm_info: JVM info
- get_thread_info: thread status and performance
- get_memory_info: memory usage and GC
- execute_arthas_command: run custom Arthas command
- analyze_performance: performance analysis
- trace_method_calls: method call tracing
Config
Add to Cursor / Claude Code
macOS: ~/.cursor/mcp.json
Windows: C:\Users\{username}\.cursor\mcp.json
{
"mcpServers": {
"arthas": {
"command": "uv",
"args": ["--directory", "F:\\path\\to\\arthas_mcp_server", "run", "python", "main.py"],
"env": { "ARTHAS_URL": "http://localhost:8563" }
}
}
}
Start Arthas
There are multiple deployment methods: either attach mode or agent mode. Both approaches ultimately result in listening for HTTP requests (Arthas commands) on port 8563.
Project Structure
arthas_mcp_server/
├── src/
│ ├── __init__.py
│ ├── models.py
│ ├── server.py
│ └── client.py
├── main.py
├── pyproject.toml
└── README.md
Development
uv sync --extra dev
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"arthas": {
"command": "uv",
"args": ["--directory", "F:\\path\\to\\arthas_mcp_server", "run", "python", "main.py"],
"env": { "ARTHAS_URL": "http://localhost:8563" }
}
}
}