
eunomia-bpf/mcptrace
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
eunomia-bpf/mcptrace は [https://github.com/eunomia-bpf/mcptrace.] からインポートされた MCP サーバー候補です
概要
eunomia-bpf/mcptrace は [https://github.com/eunomia-bpf/mcptrace.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
MCP (Model Context Protocol) の最小限のサーバーで、AI アシスタントに bpftrace カーネルのトレース機能へのアクセスを提供します。
rmcpを使用してRustで実装されたのは、より良い性能とタイプの安全性のためにcrateです。 Python の実装はまだ git 履歴で利用できます。
##特徴
- AI-Poweredカーネルのデバッグ: 自然言語で複雑なLinuxカーネルの問題をデバッグするのに役立つAIアシスタントを有効にする - eBPFの専門知識は必要ありません -ディスカバーシステムトレースポイント: 数千ものカーネルプローブをブラウズして検索して、システムコールからネットワークパケットまで監視するために必要なものを正確に見つけることができます。
- リッチコンテキストと例: パフォーマンスボトルネック、セキュリティ監視、システムトラブルシューティングなどの一般的なデバッグシナリオのための生産準備済みbpftraceスクリプトのキュレーションコレクションにアクセス -Secure Execution Model: カーネルのトレースを安全に実行し、AI の直接ルートアクセスを許可しない - MCPtrace は、適切な認証を持つ安全なゲートウェイとして機能します。
- 非同期操作: 長期にわたるトレースを開始し、結果を後で取得 - 断続的に起こる生産問題の監視に最適
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
bpftrace MCP Server: generate eBPF to trace linux kernel
A minimal MCP (Model Context Protocol) server that provides AI assistants with access to bpftrace kernel tracing capabilities.
Now implemented in Rust using the rmcp crate for better performance and type safety. The Python implementation is still available in the git history.
Features
- AI-Powered Kernel Debugging: Enable AI assistants to help you debug complex Linux kernel issues through natural language - no eBPF expertise required
- Discover System Trace Points: Browse and search through thousands of kernel probes to find exactly what you need to monitor - from system calls to network packets
- Rich Context and Examples: Access a curated collection of production-ready bpftrace scripts for common debugging scenarios like performance bottlenecks, security monitoring, and system troubleshooting
- Secure Execution Model: Run kernel traces safely without giving AI direct root access - MCPtrace acts as a secure gateway with proper authentication
- Asynchronous Operation: Start long-running traces and retrieve results later - perfect for monitoring production issues that occur intermittently
- System Capability Detection: Automatically discover what tracing features your kernel supports, including available helpers, map types, and probe types
Why MCPtrace?
Debugging kernel issues traditionally requires deep eBPF expertise. MCPtrace changes that.
By bridging AI assistants with bpftrace (the perfect eBPF tracing language), MCPtrace lets you debug complex system issues through natural conversation. Just describe what you want to observe - “show me which processes are opening files” or “trace slow disk operations” - and let AI generate the appropriate kernel traces.
AI never gets root access. MCPtrace acts as a secure gateway, and with its rich collection of example scripts and probe information, AI has everything needed to help you understand what’s happening inside your kernel. No eBPF expertise required.
Installation
Prerequisites
- Install Rust (if not already installed):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Ensure bpftrace is installed:
sudo apt-get install bpftrace # Ubuntu/Debian
# or
sudo dnf install bpftrace # Fedora
Install from crates.io (Recommended)
cargo install bpftrace-mcp-server
This will install the bpftrace-mcp-server binary to your Cargo bin directory (usually ~/.cargo/bin/).
Build from Source
Alternatively, you can build from source:
git clone https://github.com/yunwei37/MCPtrace
cd MCPtrace
cargo build --release
The binary will be available at ./target/release/bpftrace-mcp-server.
Quick Setup
Use our automated setup scripts:
- Claude Desktop:
./setup/setup_claude.sh - Claude Code:
./setup/setup_claude_code.sh
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →