Skip to main content

MCP server for remote debugging with gdbserver

Project description

mcp-gdbserver

MCP server for remote debugging with gdbserver - provides full debugging capabilities including process management, breakpoint control, stepping, memory inspection, and more.

PyPI Python Coverage Ruff

Install

pip install mcp-gdbserver

Usage

from mcp_gdbserver import GdbDebugger

# Create debugger instance
debugger = GdbDebugger()

# Start gdbserver to debug a program
session = debugger.start_gdbserver(port=2345, program="/bin/myapp", args=["--debug"])

# Get session info
sessions = debugger.list_sessions()

# Stop session
debugger.stop_session("session_1")

CLI

mcp-gdbserver --help

Tools

The MCP server provides 19 debugging tools organized into 4 categories:

Process Management

  • gdbserver_start - Start gdbserver to debug a program remotely
  • gdbserver_start_multi - Start gdbserver in multi-process mode
  • gdbserver_attach - Attach to a running process
  • gdbserver_list_sessions - List all active sessions
  • gdbserver_stop - Stop a debugging session

Breakpoint Control

  • gdbserver_set_breakpoint - Set a breakpoint at a location
  • gdbserver_delete_breakpoint - Delete a breakpoint

Execution Control

  • gdbserver_continue - Continue execution
  • gdbserver_step - Step one instruction (into functions)
  • gdbserver_next - Execute one instruction (over functions)
  • gdbserver_interrupt - Interrupt execution

Inspection

  • gdbserver_stack_frames - Get call stack frames
  • gdbserver_local_variables - Get local variables
  • gdbserver_list_threads - List all threads
  • gdbserver_select_thread - Switch to a thread
  • gdbserver_read_register - Read CPU registers
  • gdbserver_read_memory - Read memory contents
  • gdbserver_evaluate - Evaluate an expression
  • gdbserver_load_symbols - Load symbol file

MCP Configuration

Add to your MCP config:

{
  "mcpServers": {
    "mcp-gdbserver": {
      "command": "mcp-gdbserver",
      "env": {}
    }
  }
}

Development

git clone https://github.com/daedalus/mcp-gdbserver.git
cd mcp-gdbserver
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

mcp-name: io.github.daedalus/mcp-gdbserver

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_gdbserver-0.1.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_gdbserver-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_gdbserver-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_gdbserver-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_gdbserver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 483ac2cce8db94310bcf849a53607d61d4c7b2a8d9985d1b54643db94136b342
MD5 9dfa00a3a8c8d3b9f4d53f32d3f61d04
BLAKE2b-256 4abebedebc84ba5b5391308304b73eff277a3600478cd395770c8210a4a14019

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_gdbserver-0.1.1.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-gdbserver

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_gdbserver-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_gdbserver-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_gdbserver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c48e0f1e92e7b8cc22d9389fade18eeb6fc305097e1c58ea2c5dd92578c36e3b
MD5 1699c85547e850d746ba40c05cc905b4
BLAKE2b-256 0424f964fcc0de1d3921ce741f30de01cd935a4c8c6f3ed1f266102ca44b7eb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_gdbserver-0.1.1-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-gdbserver

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page