
stass/lldb-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
stass/lldb-mcp は、https://github.com/stass/lldb-mcp. からインポートされたMCPサーバー候補です。
概要
stass/lldb-mcp は、https://github.com/stass/lldb-mcp. からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
アクトンでバッファオーバーフローを自動的にデバッグする方法はこちらです:https://x.com/full_duplex/status/1904770477698277847
概要
LLDB-MCPは、LLDBデバッガとClaudeのModel Context Protocol(MCP)を統合したツールです。この統合により、ClaudeはLLDBデバッグセッションを直接開始、制御、操作でき、AI支援によるデバッグワークフローが可能になります。
このツールはLLDBを扱うための包括的なコマンドセットを提供します。以下が含まれます:
- LLDBセッションの開始および管理
- デバッグ用のプログラムの読み込み
- ブレークポイントとウォッチポイントの設定
- プログラム実行の制御
- メモリ、レジスタ、変数の検査
- スタックトレースとプログラム状態の解析
特徴
- 複数のLLDBデバッグセッションの作成および管理
- 実行ファイルの読み込みと実行中のプロセスへのアタッチ
- 死後分析用のロードコアダンプファイル
- 任意のLLDBコマンドを実行する
- プログラム実行の細かい制御
- 記憶検査と分解
- スレッドおよびスタックフレーム検査
設置
-
リポジトリのクローン:
-
依存関係のインストール:
-
ClaudeをLLDB-MCPサーバーを使用するよう設定する:
- Claudeデスクトップアプリの設定を開く
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
LLDB-MCP
See it in acton here, automatically debugging a buffer overflow: https://x.com/full_duplex/status/1904770477698277847
Overview
LLDB-MCP is a tool that integrates the LLDB debugger with Claude’s Model Context Protocol (MCP). This integration allows Claude to start, control, and interact with LLDB debugging sessions directly, enabling AI-assisted debugging workflows.
The tool provides a comprehensive set of commands for working with LLDB, including:
- Starting and managing LLDB sessions
- Loading programs for debugging
- Setting breakpoints and watchpoints
- Controlling program execution
- Examining memory, registers, and variables
- Analyzing stack traces and program state
Features
- Create and manage multiple LLDB debugging sessions
- Load executables and attach to running processes
- Load core dump files for post-mortem analysis
- Execute arbitrary LLDB commands
- Fine-grained control over program execution
- Memory examination and disassembly
- Thread and stack frame inspection
Installation
-
Clone the repository:
git clone https://github.com/stass/lldb-mcp.git cd lldb-mcp -
Install dependencies:
pip install mcp -
Configure Claude to use the LLDB-MCP server:
- Open the Claude desktop app configuration
- Add the following to your MCP configuration:
"mcpServers": { "lldb-mcp": { "command": "python3", "args": ["/path/to/lldb-mcp/lldb_mcp.py"], "disabled": false } }
Usage
Once installed and configured, you can interact with LLDB through Claude using natural language.
Basic Workflow
- Start a new LLDB session
- Load a program
- Set breakpoints
- Run the program
- Inspect variables and memory
- Control execution (continue, step, next, etc.)
- Terminate the session when done
Example Commands
Here are some examples of how to interact with LLDB-MCP through Claude:
- “Start a new LLDB session”
- “Load the program ‘/path/to/executable’”
- “Set a breakpoint at main”
- “Run the program”
- “Show backtrace”
- “Print the value of variable ‘count’”
- “Step over the next line”
- “Examine memory at address 0x1000”
- “Show register values”
- “Continue execution”
- “Kill the process”
- “Terminate the LLDB session”
Supported Commands
Session Management
lldb_start: Start a new LLDB sessionlldb_terminate: Terminate an LLDB sessionlldb_list_sessions: List all active LLDB sessions
Program Loading
lldb_load: Load a program into LLDBlldb_attach: Attach to a running processlldb_load_core: Load a core dump file
Execution Control
lldb_run: Run the loaded programlldb_continue: Continue program executionlldb_step: Step to next line or instructionlldb_next: Step over function callslldb_finish: Execute until the current function returnslldb_kill: Kill the running process
Breakpoints and Watchpoints
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
"mcpServers": {
"lldb-mcp": {
"command": "python3",
"args": ["/path/to/lldb-mcp/lldb_mcp.py"],
"disabled": false
}
}