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 sessiongdb_load: Load a program into GDBgdb_command: Execute an arbitrary GDB commandgdb_terminate: Terminate a GDB sessiongdb_list_sessions: List all active GDB sessionsgdb_attach: Attach to a running processgdb_load_core: Load a core dump filegdb_set_breakpoint: Set a breakpointgdb_continue: Continue program executiongdb_step: Step program executiongdb_next: Step over function callsgdb_finish: Execute until the current function returnsgdb_backtrace: Show call stackgdb_print: Print value of expressiongdb_examine: Examine memorygdb_info_registers: Display registersgdb_list_source: List source code at current location or specified location with VS Code integration
License
MIT
설치
npx -y mcp-gdb설정
{
"mcpServers": {
"gdb": {
"command": "npx",
"args": ["-y", "mcp-gdb"]
}
}
}