MCP GDB Server

by signal-slot
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Allows accessing the MCP GDB server repository for installation and setup.

MCP GDB 서버

Claude 또는 기타 AI 어시스턴트와 함께 사용할 수 있는 GDB 디버깅 기능을 제공하는 MCP(Model Context Protocol) 서버입니다.

특징

  • GDB 디버깅 세션 시작 및 관리
  • 분석을 위해 프로그램 및 코어 덤프를 로드합니다.
  • 중단점 설정, 코드 단계별 실행 및 메모리 검사
  • 호출 스택, 변수 및 레지스터 보기
  • 임의의 GDB 명령 실행

설치

지엑스피1

용법

Claude 또는 기타 MCP 지원 어시스턴트와 함께 사용

  1. Claude 데스크톱 앱이나 브라우저 확장 프로그램에서 MCP 설정을 구성하여 이 서버를 포함하세요.
{ "mcpServers": { "gdb": { "command": "node", "args": ["/path/to/mcp-gdb/build/index.js"], "disabled": false } } }
  1. 클로드를 재시작하거나 페이지를 새로고침하세요.
  2. 이제 클로드와의 대화에서 GDB 도구를 사용할 수 있습니다.

예제 명령

다음은 Claude를 통해 GDB MCP 서버를 사용하는 몇 가지 예입니다.

GDB 세션 시작

Use gdb_start to start a new debugging session

프로그램 로딩

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

중단점 설정

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

프로그램 실행

Use gdb_continue to start execution

변수 검토

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

백트레이스 얻기

Use gdb_backtrace to see the current call stack

세션 종료

Use gdb_terminate to end the debugging session

지원되는 GDB 명령

  • gdb_start : 새로운 GDB 세션을 시작합니다
  • gdb_load : GDB에 프로그램을 로드합니다
  • gdb_command : 임의의 GDB 명령을 실행합니다.
  • gdb_terminate : GDB 세션을 종료합니다.
  • gdb_list_sessions : 모든 활성 GDB 세션을 나열합니다.
  • gdb_attach : 실행 중인 프로세스에 연결
  • gdb_load_core : 코어 덤프 파일을 로드합니다
  • gdb_set_breakpoint : 중단점을 설정합니다
  • gdb_continue : 프로그램 실행을 계속합니다.
  • gdb_step : 단계별 프로그램 실행
  • gdb_next : 함수 호출을 단계별로 실행
  • gdb_finish : 현재 함수가 반환될 때까지 실행합니다.
  • gdb_backtrace : 호출 스택 표시
  • gdb_print : 표현식의 값을 출력합니다.
  • gdb_examine : 메모리 검사
  • gdb_info_registers : 레지스터 표시

특허

MIT

-
security - not tested
F
license - not found
-
quality - not tested

Claude나 다른 AI 어시스턴트와 함께 사용할 수 있는 GDB 디버깅 기능을 제공하여 사용자가 디버깅 세션을 관리하고, 중단점을 설정하고, 변수를 검사하고, 자연어로 GDB 명령을 실행할 수 있도록 합니다.

  1. Features
    1. Installation
      1. Usage
        1. Using with Claude or other MCP-enabled assistants
        2. Example Commands
      2. Supported GDB Commands
        1. License
          ID: eezj3c4pzn