MCP Server GDB

by pansila
Verified
MIT License
13
  • Linux
  • Apple

local-only server

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

Integrations

  • Integration with Rust for debugging Rust applications, allowing users to set breakpoints, view stack information, and control program execution through GDB.

MCP 서버 GDB

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

특징

  • GDB 디버그 세션 생성 및 관리
  • 중단점 설정 및 관리
  • 스택 정보 및 변수 보기
  • 프로그램 실행을 제어합니다(실행, 일시 정지, 단계 등)
  • 동시 다중 세션 디버깅 지원

설치

미리 빌드된 바이너리

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

소스에서 빌드

저장소를 복제하고 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

-
security - not tested
A
license - permissive license
-
quality - not tested

MCP 프로토콜을 기반으로 하는 GDB/MI 프로토콜 서버로, 원격 애플리케이션 디버깅 기능을 제공합니다.

  1. Features
    1. Installation
      1. Pre-built Binaries
      2. Build From Source
    2. Usage
      1. Configuration
        1. Supported MCP Tools
          1. Session Management
          2. Debug Control
          3. Breakpoint Management
          4. Debug Information
        2. License
          ID: md0l0j81g1