SL

stass/lldb-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

114 stars 15 forks 품질 64 트렌드 15BSD-2-Clause

STASS/LLDB-MCP는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

STASS/LLDB-MCP는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

여기 액톤에서 버퍼 오버플로우를 자동으로 디버깅하는 모습을 볼 수 있습니다: https://x.com/full_duplex/status/1904770477698277847

개요

LLDB-MCP는 LLDB 디버거와 Claude의 모델 컨텍스트 프로토콜(MCP)을 통합한 도구입니다. 이 통합을 통해 Claude는 LLDB 디버깅 세션을 직접 시작, 제어, 상호작용할 수 있어 AI 지원 디버깅 워크플로우를 가능하게 합니다.

이 도구는 LLDB를 다루기 위한 포괄적인 명령어 세트를 제공합니다. 여기에는 다음이 포함됩니다:

  • LLDB 세션 시작 및 관리
  • 디버깅을 위한 프로그램 로딩
  • 중단점 및 감시 지점 설정
  • 프로그램 실행 제어
  • 메모리, 레지스터, 변수 검사
  • 스택 트레이스 및 프로그램 상태 분석

특징

  • 여러 LLDB 디버깅 세션 생성 및 관리
  • 실행 중인 프로세스에 실행 파일을 로드하고 첨부
  • 부후 분석을 위한 로드 코어 덤프 파일
  • 임의의 LLDB 명령어 실행
  • 프로그램 실행에 대한 세밀한 제어
  • 메모리 검사 및 분해
  • 나사산 및 스택 프레임 검사

설치

  1. 저장소 복제:

  2. 의존성 설치:

  3. 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

  1. Clone the repository:

    git clone https://github.com/stass/lldb-mcp.git
    cd lldb-mcp
    
  2. Install dependencies:

    pip install mcp
    
  3. 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

  1. Start a new LLDB session
  2. Load a program
  3. Set breakpoints
  4. Run the program
  5. Inspect variables and memory
  6. Control execution (continue, step, next, etc.)
  7. 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 session
  • lldb_terminate: Terminate an LLDB session
  • lldb_list_sessions: List all active LLDB sessions

Program Loading

  • lldb_load: Load a program into LLDB
  • lldb_attach: Attach to a running process
  • lldb_load_core: Load a core dump file

Execution Control

  • lldb_run: Run the loaded program
  • lldb_continue: Continue program execution
  • lldb_step: Step to next line or instruction
  • lldb_next: Step over function calls
  • lldb_finish: Execute until the current function returns
  • lldb_kill: Kill the running process

Breakpoints and Watchpoints

GitHub에서 전체 README 보기

설치

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 } }