4 Commits

Author SHA1 Message Date
79c646cf87 Add comprehensive documentation for MCP server
- Update README.md with accurate lokkju fork info and troubleshooting
- Add CLAUDE.md development guide for future sessions
- Document GDB protocol details, architecture, and common issues
2026-01-27 15:26:22 -07:00
b022f6fb9e Switch to lokkju/dosbox-x-remotedebug fork for working GDB server
- Use remotedebug branch which adds GDB/QMP server support
- Build with --enable-remotedebug configure flag
- Add proper GDB handshake (qSupported) to gdb_client.py
- Support no-ack mode for faster communication
- Expose QMP port 4444 in addition to GDB port 1234

The GDB server is configured via [dosbox] section:
  gdbserver = true
  gdbserver port = 1234
  qmpserver = true
  qmpserver port = 4444

Tested features: register read, memory read, breakpoints
2026-01-27 14:55:53 -07:00
6b5057c17a Refactor server.py into modular tools structure
Split 684-line server.py into focused modules:
- state.py: Shared global instances (manager, client)
- tools/execution.py: launch, attach, continue, step, quit
- tools/breakpoints.py: breakpoint_set, breakpoint_list, breakpoint_delete
- tools/inspection.py: registers, memory_*, disassemble, stack, status
- tools/peripheral.py: screenshot, serial_send

server.py now 102 lines (just FastMCP setup and tool registration)
2026-01-27 14:25:51 -07:00
170eba0843 Initial implementation of DOSBox-X MCP Server
MCP server for AI-assisted debugging of DOS binaries via GDB protocol.

Features:
- GDB remote protocol client for DOSBox-X debugging
- 16 debugging tools: launch, attach, breakpoint management,
  registers, memory read/write, disassemble, step, continue, etc.
- Docker container with DOSBox-X for consistent environment
- Support for DOS segment:offset addressing
- Comprehensive test suite (49 tests)

Primary use case: Reverse engineering the unpublished Bezier algorithm
in RIPTERM.EXE for the RIPscrip graphics protocol project.
2026-01-27 13:07:51 -07:00