Skip to main content
Glama

MCP 서버 GDB

MCP 프로토콜을 기반으로 하는 GDB/MI 프로토콜 서버로, AI 어시스턴트를 통해 원격 애플리케이션 디버깅 기능을 제공합니다.

특징

  • GDB 디버그 세션 생성 및 관리

  • 중단점 설정 및 관리

  • 스택 정보 및 변수 보기

  • 프로그램 실행을 제어합니다(실행, 일시 정지, 단계 등)

  • 동시 다중 세션 디버깅 지원

  • 에이전트의 행동을 검사하여 신속한 대응(WIP)을 개선할 수 있는 내장 TUI

Related MCP server: gdb_mcp

설치

미리 빌드된 바이너리

릴리스 페이지에서 바이너리를 찾은 후 작업 플랫폼에 맞는 바이너리를 선택하면 바로 실행할 수 있습니다.

소스에서 빌드

저장소를 복제하고 cargo로 빌드합니다.

지엑스피1

용법

  1. 그냥 직접 실행하세요: ./mcp-server-gdb

  2. 서버는 두 가지 전송 모드를 지원합니다.

    • Stdio(기본값): 표준 입출력 전송

    • SSE: 서버에서 보낸 이벤트 전송, 기본값은 http://127.0.0.1:8080 입니다.

구성

src/config.rs 파일을 수정하거나 환경 변수를 사용하여 서버 구성을 조정할 수 있습니다.

  • 서버 IP 주소

  • 서버 포트

  • GDB 명령 시간 초과 시간(초)

지원되는 MCP 도구

세션 관리

  • create_session - 새로운 GDB 디버깅 세션을 생성합니다.

  • get_session - 특정 세션 정보 가져오기

  • get_all_sessions - 모든 세션 가져오기

  • close_session - 세션 닫기

디버그 제어

  • start_debugging - 디버깅 시작

  • stop_debugging - 디버깅 중지

  • continue_execution - 실행 계속

  • step_execution - 다음 줄로 이동

  • next_execution - 다음 줄로 넘어갑니다

중단점 관리

  • get_breakpoints - 중단점 목록 가져오기

  • set_breakpoint - 중단점 설정

  • delete_breakpoint - 중단점 삭제

디버그 정보

  • get_stack_frames - 스택 프레임 정보 가져오기

  • get_local_variables - 로컬 변수 가져오기

  • get_registers - 레지스터 가져오기

  • read_memory - 메모리 내용 읽기

특허

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server providing direct access to gdb-multiarch for debugging Nintendo Switch executables on Yuzu or hardware via a GDB stub. It features specialized tools for offset-based breakpoints, instruction patching, and frame-pointer backtraces relative to the game's base address.
    33
    3
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that enables AI assistants to control GDB debugging sessions, including breakpoint management, thread analysis, and variable inspection, using the GDB/MI protocol.
    22
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for remote debugging with gdbserver, offering full debugging capabilities including breakpoint control, stepping, memory inspection, and process management.
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    MCP server that wraps gdb to enable LLMs to drive live debugging sessions, including starting sessions on binaries, attaching to processes, and running commands.
    7
    1,214 PyPI
    3
    MIT