SM

smadi0x86/mdb-mcp

Developer tools

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

74 stars 10 forks 품질 83 트렌드 8GPL-3.0

smadi0x86/mdb-mcp는 https://github.com/smadi0x86/mdb-mcp.]에서 수입된 MCP 서버 후보입니다

개요

smadi0x86/mdb-mcp는 https://github.com/smadi0x86/mdb-mcp.]에서 수입된 MCP 서버 후보입니다

개요(AI 번역)

AI Assistant를 실제 디버거를 제공하는 MCP 서버. GDB 또는 LLDB를 구동한다. 그래서 조수는 Breakpoints를 설정하고, 프로그램을 실행하고, 기억을 읽고 걸어 같은 방법을 스택합니다.

설치

uv 및 적어도 하나의 디버거가 필요합니다.

그런 다음 클라이언트에 서버를 추가합니다. Claude 부호를 위해:

Claude 데스크탑, 커서 또는 윈드 서핑:

VS Code는 "servers"]에서 .vscode/mcp.json와 같은 항목이 걸립니다. "type": "stdio" 추가. WSL을 가진 Windows에서, "command": "wsl"를 놓고 충분히 뒀습니다 uvx] args]의 시작에 경로.

도구

다른 모든 것은 정상 디버거 명령이므로 break main, bt], x/16gx $sp]] 그리고 [T9]] 모든 일. 프로그램이 중지 할 때까지 기다리는 명령 (기본적으로 10 초, 통화당 조절 가능). 그 후에도 여전히 실행되는 경우, 조수는 그것을 중단하거나 대기를 지킵니다.

GDB는 macOS에서 Linux 및 LLDB의 기본입니다. 명시적으로 선택할 수 있습니다. 사이트맵 ~/.gdbinit]를로드하므로 pwndbg 및 GEF가 작동합니다.

그것을 시도

그런 다음 조수에게 왜 examples/crash segfaults (그것을 절대 경로).

구성

PATH]]에서 다른 디버거를 사용하려면 서버의 env에서 설정하십시오

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

README

원문 README의 일부입니다. 원문 보기.

MDB-MCP

An MCP server that gives your AI assistant a real debugger. It drives GDB or LLDB, so the assistant can set breakpoints, run your program, read memory and walk the stack the same way you would.

Install

You need uv and at least one debugger:

# Debian / Ubuntu
sudo apt install gdb lldb python3-lldb

# macOS (LLDB ships with the Xcode command line tools)
xcode-select --install

Then add the server to your client. For Claude Code:

claude mcp add mdb -- uvx --from git+https://github.com/smadi0x86/MDB-MCP mdb-mcp

For Claude Desktop, Cursor or Windsurf:

{
  "mcpServers": {
    "mdb": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/smadi0x86/MDB-MCP", "mdb-mcp"]
    }
  }
}

VS Code takes the same entry under "servers" in .vscode/mcp.json, with "type": "stdio" added. On Windows with WSL, set "command": "wsl" and put the full path to uvx at the start of args.

Tools

debugger_status      which debuggers are usable, and the open sessions
debugger_start       start a gdb or lldb session, optionally loading a program
debugger_command     run any gdb or lldb command
debugger_interrupt   pause a running program, like Ctrl-C
debugger_terminate   kill the program and close the session

Everything else is a normal debugger command, so break main, bt, x/16gx $sp and frame variable all work. Commands that resume the program wait for it to stop (10 seconds by default, adjustable per call). If it is still running after that, the assistant can interrupt it or keep waiting.

GDB is the default on Linux and LLDB on macOS. Either can be picked explicitly. GDB loads your ~/.gdbinit, so pwndbg and GEF keep working.

Try it

make -C examples

Then ask your assistant why examples/crash segfaults (give it the absolute path).

Configuration

To use a debugger other than the one on your PATH, set it in the server’s env in your client config:

"env": {
  "MDB_GDB_PATH": "gdb-multiarch",
  "MDB_LLDB_PATH": "/opt/homebrew/opt/llvm/bin/lldb"
}

Troubleshooting

If LLDB shows up as unavailable, debugger_status tells you why. On Debian and Ubuntu it is usually a missing python3-lldb, which has to match your LLDB version.

The program can’t read from your keyboard. Feed it a file instead:

run < input.txt                    # gdb
process launch -i input.txt        # lldb

If attaching to a running process fails on Linux, check /proc/sys/kernel/yama/ptrace_scope. A value of 1 only allows debugging child processes.

Security

A debugger can run shell commands (shell, python, platform shell, script),

GitHub에서 전체 README 보기

설치

uvx --from git+https://github.com/smadi0x86/MDB-MCP mdb-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mdb": { "command": "uvx", "args": ["--from", "git+https://github.com/smadi0x86/MDB-MCP", "mdb-mcp"] } } }