SS

signal-slot/mcp-gdb

Developer tools

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

161 stars 28 forks 품질 66 트렌드 4

signal-slot/mcp-gdb는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

signal-slot/mcp-gdb는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

Claude 또는 기타 AI 어시스턴트와 함께 사용할 수 있는 GDB 디버깅 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다.

특징

  • GDB 디버깅 세션 시작 및 관리
  • 분석을 위한 로드 프로그램 및 코어 덤프
  • 끊김점 설정, 코드 단계별 진행, 메모리 검사
  • 콜 스택, 변수, 레지스터 보기
  • VS 코드 통합 소스 코드 보기
  • 임의의 GDB 명령어 실행

설치

클로드 코드

클로드 데스크탑

Claude Desktop MCP 설정에 다음 사항을 추가하세요:

소스에서 설치

사용

예시 명령어

다음은 Claude를 통한 GDB MCP 서버 사용 예시입니다:

GDB 세션 시작

프로그램 로딩 중

브레이크포인트 설정

프로그램 실행

변수 검토

역추적 중

세션 종료

지원되는 GDB 명령어

  • gdb_start: 새로운 GDB 세션 시작
  • gdb_load: 프로그램을 GDB에 로드하기
  • gdb_command: 임의의 GDB 명령어 실행
  • gdb_terminate: GDB 세션 종료
  • gdb_list_sessions: 모든 활성 GDB 세션 목록
  • gdb_attach: 실행 중인 프로세스에 부착
  • gdb_load_core: 코어 덤프 파일을 로드합니다

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

README

MCP GDB Server

A Model Context Protocol (MCP) server that provides GDB debugging functionality for use with Claude or other AI assistants.

Features

  • Start and manage GDB debugging sessions
  • Load programs and core dumps for analysis
  • Set breakpoints, step through code, and examine memory
  • View call stacks, variables, and registers
  • View source code with VS Code integration
  • Execute arbitrary GDB commands

Installation

Claude Code

claude mcp add gdb -- npx -y mcp-gdb

Claude Desktop

Add the following to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "gdb": {
      "command": "npx",
      "args": ["-y", "mcp-gdb"]
    }
  }
}

Install from Source

git clone https://github.com/signal-slot/mcp-gdb.git
cd mcp-gdb
npm install
npm run build

Usage

Example Commands

Here are some examples of using the GDB MCP server through Claude:

Starting a GDB session

Use gdb_start to start a new debugging session

Loading a program

Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start

Setting a breakpoint

Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session

Running the program

Use gdb_continue to start execution

Examining variables

Use gdb_print to evaluate the expression "my_variable" in the current context

Getting a backtrace

Use gdb_backtrace to see the current call stack

Terminating the session

Use gdb_terminate to end the debugging session

Supported GDB Commands

  • gdb_start: Start a new GDB session
  • gdb_load: Load a program into GDB
  • gdb_command: Execute an arbitrary GDB command
  • gdb_terminate: Terminate a GDB session
  • gdb_list_sessions: List all active GDB sessions
  • gdb_attach: Attach to a running process
  • gdb_load_core: Load a core dump file
  • gdb_set_breakpoint: Set a breakpoint
  • gdb_continue: Continue program execution
  • gdb_step: Step program execution
  • gdb_next: Step over function calls
  • gdb_finish: Execute until the current function returns
  • gdb_backtrace: Show call stack
  • gdb_print: Print value of expression
  • gdb_examine: Examine memory
  • gdb_info_registers: Display registers
  • gdb_list_source: List source code at current location or specified location with VS Code integration

License

MIT

GitHub에서 전체 README 보기

설치

npx -y mcp-gdb
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "gdb": { "command": "npx", "args": ["-y", "mcp-gdb"] } } }