Repository navigation
Releases
Releases · BeaCox/gdb-mcp
v0.6.0
Changed
- PyPI package rename: changed
[project].nametobeacox-gdb-mcpbecause
gdb-mcpon PyPI is occupied by an unrelated project. The CLI commands
(gdb-mcp,gdb-mcp-backend) and Python import package (gdb_mcp) are
unchanged. Migrate existing installs withuv tool install beacox-gdb-mcpor
uvx --from beacox-gdb-mcp gdb-mcp. - Unified Claude plugin, Codex plugin, and metadata manifests around pinned
beacox-gdb-mcp==<version>uvxinvocations, and split official MCP
Registry metadata (server.json,io.github.beacox/gdb-mcp) from rich
project capability metadata (gdb-mcp.meta.json). - Added subcommand CLI (
serve,serve-http,install,uninstall,config,
clients,doctor, and hiddenbackend) while keeping deprecated top-level
flags andgdb-mcp-backendfor one release cycle and rejecting mixed
lifecycle/server flags. - Made invalid
GDB_MCP_*environment variables fail fast at startup instead of
silently falling back to defaults. - Disabled
notifications/progresson stdio by default (--progressor
GDB_MCP_PROGRESS=1to opt in) to prevent client disconnects on fast tool
calls. - Generated
docs/TOOLS.mdfrom liveMCPServerregistrations via
scripts/gen_tools_doc.pyand restructured documentation underdocs/.
Added
--versionongdb-mcp,gdb-mcp-backend, andpython -m gdb_mcp.lazy.gdb-mcp doctor [--json]checking Python, GDB features,gdbserver,rr,
ptrace_scope,perf_event_paranoid, containerCAP_SYS_PTRACE, and client
registrations.--toolsand--exclude-toolsflags (plusGDB_MCP_TOOLS/
GDB_MCP_EXCLUDE_TOOLS),scripts/measure_tools.py, and
eval_harness.compare_profiles().- Multi-client
configandinstallsupport for Gemini CLI, Cursor, VS Code,
and Windsurf alongside Claude Code and Codex. - Process-group isolation (
start_new_session=True,os.killpg) and Linux
PR_SET_PDEATHSIGparent-death cleanup for backend,gdb, andgdbserver
subprocesses. Dockerfile,.dockerignore, andflake.nixpackaging, sharedMakefile
CI entry points, and unified SHA-pinned GitHub release + PyPI Trusted
Publishing workflow withchecksums.txtand build provenance attestation.
v0.5.0
Added
- Lazy static MCP resources and user-invoked workflow prompts (
debug_local,
triage_core,debug_remote,analyze_stripped_binary), plus real discovery
profiles (full,core,advanced:<group>), machine-readable registry
metadata (server.json), andscripts/validate_registry_metadata.py. - Non-loopback HTTP deployment guardrails (
--allow-remote,
--allow-unsafe-over-http, bearer authentication, Host/Origin allow-lists)
and bounded MCP progress reporting on long-running operations. - Session initialization profiles (
gdb_apply_init_profile) including
source_paths,remote_paths, unsafe-gatedinit_file, and the new
debug_infoprofile (substitute_paths,debug_file_directories, and opt-in
debuginfodconfiguration), recorded in redactedgdb_export_session_bundle
diagnostics. - Opaque HMAC-signed pagination cursors (
gdb1.*) rejecting non-canonical
base64url inputs, plus deterministic response-budget checks
(scripts/check_response_budgets.py), live GDB feature probes
(scripts/probe_gdb_features.py), MCP stdio/Streamable HTTP interop tests,
and clean wheel install verification (scripts/check_release_install.py). - Workflow and compatibility cookbooks (
docs/WORKFLOWS.md,
docs/COMPATIBILITY.md) and public MCP compatibility contract tooling
(gdb_mcp.contract,scripts/check_mcp_contract.py,
docs/COMPATIBILITY_CONTRACT.md). - Opt-in structured operational logging to
stderr(--log-level/
GDB_MCP_LOG_LEVEL) with automatic redaction of bearer tokens, passwords,
URL credentials, inferior arguments, environment variables, and raw payloads. - Standardized failure metadata (
error_code,retryable, and optional
suggested_action) across all tool error responses while preserving existing
ok: trueresponse shapes. - Optional idle-session TTL (
--idle-session-ttl/
GDB_MCP_IDLE_SESSION_TTL_SECONDS) and bounded history retention
(GDB_MCP_MAX_RECENT_RECORDS,GDB_MCP_MAX_RECENT_COMMANDS), plus automatic
pruning of dead sessions before enforcingmax_sessions. - Deterministic agent scenario evaluation harness (
gdb_mcp.eval_harness,
scripts/run_eval_harness.py).
Changed
- Upgraded the
mcpdependency from1.x(FastMCP) tomcp>=2.3.0,<3
(MCPServer), adapting HTTP transport security parameters, Streamable HTTP
client/server APIs,LazyBackendsingle-owner lifecycle, andmcp 2.x
snake_case Pydantic response attributes. - Split ELF subprocess execution (
gdb_mcp.tools.elf) and inspection
formatting/pagination (gdb_mcp.tools.inspection_format) behind unchanged
tool registration APIs, and deduplicated redundantreadelfandvmmapcalls
ingdb_binary_summary,gdb_elf_info, andgdb_pwn_context. - Raised GDB/MI stdout
StreamReaderlimit to 4 MiB with bounded recovery for
oversized lines so large outputs no longer terminate the session reader loop. - Enabled concurrent request handling,
notifications/cancelledpropagation,
and backend disconnect recovery in the lazy stdio proxy (gdb_mcp.lazy). - Updated development tooling requirements (
build>=1.6.0,pytest>=9.1.1,
ruff>=0.16.6,setuptools>=84.0.0) and CI artifact upload action v7.
Fixed
- Fixed
parse_checksecreadingGNU_STACKalignment (0x10) instead of
segment flags (RW/RWE), and recognized(FLAGS_1)NOWfor Full RELRO. - Closed safe-mode
<<=and>>=mutation bypasses in_require_read_expression
and tightened NUL-byte validation across single-line inputs. - Fixed session,
gdbserver,readelf, and temporaryrrdirectory leaks on
cancellation or startup failures. - Hardened GDB/MI parser with explicit nesting-depth and line-length limits,
completec_escapecontrol-character escaping, and bounded octal escapes. - Hardened HTTP security validation against wildcard host/origin allow-lists,
invalid OAuth URLs, malformed bearer tokens, and bracketed IPv6 loopback hosts. - Updated
scripts/sync_release_version.pyto also syncBeaCox/gdb-mcp@vX.Y.Z
marketplace references, and fixed Codex/Claude plugin update flows.
v0.4.0
Added
- Native
rrrecord/replay workflow tools:
gdb_rr_recordandgdb_start_rr_replay_session. - MCP reference resources for common workflows, core-dump inspection, binary
analysis, GDB/MI command mapping, and tool-selection guidance. - Response size profiles and cursor pagination metadata for large output tools,
including paged diagnostics, memory, source, disassembly, symbol, relocation,
and mapping responses. - Release helper scripts for syncing version references from
pyproject.toml
and checking lazy MCP startup without touching the backend.
Changed
- Split the monolithic server implementation into focused tool modules for
session lifecycle, execution, breakpoints, inspection, binary analysis,
remote targets, diagnostics, and shared helpers. - Centralized GDB command construction, response helpers, and binary-analysis
helpers to keep tool behavior consistent across the expanded API surface. - Expanded contract, lazy-proxy, session, installer, and rr fixture coverage for
the release-critical debugger workflows. - Documented lazy startup behavior and added CI checks for release-version
consistency and startup-time budgets.
Fixed
- Hardened cancelled GDB command cleanup and cancelled session shutdown.
- Closed managed
gdbserversessions on invalid endpoints. - Propagated lazy backend diagnostics configuration through the proxy path.
- Hardened debugger tool input validation and bounded
readelfoutput while
separating readelf options from file paths. - Replaced the misleading
gdb_rr_recorddisable_perf_countersparameter
withdisable_syscall_buffer, matching rr's--no-syscall-bufferoption. - Reported rr
perf_event_openpermission failures with structured
rr_perf_event_permission_denieddiagnostics and host sysctl guidance.
v0.3.1
Fixed
- Pinned Codex plugin and direct
uvxinstall sources to thev0.3.1release
tag instead of the mutablemainbranch, avoiding repeated GitHub ref checks
during MCP startup.
Changed
- Expanded CLI, lazy proxy JSON-RPC, and command-result truncation test coverage
for the lazy startup path.
Added
- Compact context tools for agent workflows:
gdb_context,
gdb_run_and_context,gdb_continue_and_context,gdb_step_and_context,
andgdb_next_and_context. - Pwndbg-inspired, dependency-free binary analysis tools for high-optimization
or stripped binaries where source symbols are unavailable:
gdb_pwn_context,gdb_vmmap_structured,gdb_address_info,
gdb_telescope,gdb_nearpc,gdb_piebase,gdb_break_rva,
gdb_checksec, andgdb_elf_info. - Structured address, mapping, PIE/RVA, near-PC disassembly, pointer-chain, and
ELF hardening metadata so agents can reason in module offsets, registers, and
memory instead of relying on source-level debug information.
v0.3.0
Added
- Lazy stdio proxy behavior for
gdb-mcp: clients can discover the GDB tool
schema at MCP startup while the full backend starts or connects on first tool use. gdb-mcp-backendfor explicitly running the full backend, including HTTP and
SSE transports.
Changed
- Claude Code and Codex plugin/direct configurations now use
gdb-mcp, whose
default MCP behavior defers full backend startup until debugging tools are
actually used. - README and Linux walkthrough now describe the lazy, single-entry client model.
v0.2.0
Full Changelog: https://github.com/BeaCox/gdb-mcp/commits/v0.2.0