IG

ipiano/gdb-mcp

Developer tools

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

53 stars 13 forks 품질 74 트렌드 0MIT

ipiano/gdb-mcp는 MCP 서버 후보자는 https://github.com/ipiano/gdb-mcp.에서 수입했습니다

개요

ipiano/gdb-mcp는 MCP 서버 후보자는 https://github.com/ipiano/gdb-mcp.에서 수입했습니다

개요(AI 번역)

MCP (Model Context Protocol) 서버는 GDB 디버깅 세션에 프로그래밍 액세스를 제공하는 AI 조수를 제공합니다. 이 AI 모델은 GDB/MI (Machine Interface) 프로토콜을 사용하여 VS Code 및 CLion do와 같은 동일한 방식으로 디버거와 상호 작용할 수 있습니다.

특징

  • Full GDB Control: 세션 시작, 명령 실행, 제어 프로그램 실행
  • ** 스레드 분석 ** : 검사 스레드, backtraces, 분석 스레드 상태
  • Breakpoint Management: 조건부 휴식 지점, 임시 휴식 지점 설정 -Variable Inspection: 변수를 검사하고 등록
  • Core Dump Analysis: 사용자 정의 초기화와 핵심 덤프를 로드 및 분석 -Flexible Initialization: GDB 스크립트를 실행하거나 시작 명령

건축

이 서버는 **GDB/MI (Machine Interface) ** 프로토콜을 사용하여 전문 IDE에 의해 사용되는 동일한 인터페이스입니다. 그것은 제공합니다:

  • Structured의 기계 적당한 산출
  • GDB의 디버깅 기능에 대한 전체 액세스
  • 신뢰할 수 있는 명령 실행 및 응답 처리

설치

# 필수품

  • Python 3.10 이상
  • PATH에서 GDB 설치 및 사용 가능

빠른 시작

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

README

원문 README의 일부입니다. 원문 보기.

GDB MCP Server

An MCP (Model Context Protocol) server that provides AI assistants with programmatic access to GDB debugging sessions. This allows AI models to interact with debuggers in the same way IDEs like VS Code and CLion do, using the GDB/MI (Machine Interface) protocol.

Features

  • Full GDB Control: Start sessions, execute commands, control program execution
  • Thread Analysis: Inspect threads, get backtraces, analyze thread states
  • Breakpoint Management: Set conditional breakpoints, temporary breakpoints
  • Variable Inspection: Evaluate expressions, inspect variables and registers
  • Core Dump Analysis: Load and analyze core dumps with custom initialization
  • Flexible Initialization: Run GDB scripts or commands on startup

Architecture

This server uses the GDB/MI (Machine Interface) protocol, which is the same interface used by professional IDEs. It provides:

  • Structured, machine-parseable output
  • Full access to GDB’s debugging capabilities
  • Reliable command execution and response handling

Installation

Prerequisites

  • Python 3.10 or higher
  • GDB installed and available in PATH

Quick Start

# Install pipx if needed
python3 -m pip install --user pipx
python3 -m pipx ensurepath

# Install gdb-mcp-server
cd /path/to/gdb-mcp
pipx install .

For alternative installation methods (virtual environment, manual setup), see INSTALL.md.

Configuration

Claude Desktop

Add this to your Claude Desktop configuration file:

Location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration:

{
  "mcpServers": {
    "gdb": {
      "command": "gdb-mcp-server"
    }
  }
}

For other installation methods and MCP clients, see INSTALL.md.

Environment Variables

The GDB MCP Server supports the following environment variables:

GDB_PATH

Specify the path to the GDB executable to use. This is useful when:

  • You have multiple GDB versions installed
  • GDB is installed in a non-standard location
  • You want to use a custom or patched GDB build

Default: gdb (resolved via system PATH)

Example:

export GDB_PATH=/usr/local/bin/gdb-13.2
gdb-mcp-server

Note: The gdb_path parameter in the gdb_start_session tool overrides this environment variable if both are specified.

GDB_MCP_LOG_LEVEL

Set the logging level for the server.

Default: INFO Options: DEBUG, INFO, WARNING, ERROR, CRITICAL

Example:

export GDB_MCP_LOG_LEVEL=DEBUG
gdb-mcp-server

Available Tools

The GDB MCP Server provides 22 tools for controlling GDB debugging sessions:

Session Management:

  • gdb_start_session - Start a new GDB session with optional initialization
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "gdb": { "command": "gdb-mcp-server" } } }