Supports debugging of Windows applications compiled with MinGW-w64 cross-compiler, allowing testing and debugging of 32-bit Windows executables on non-Windows platforms.
Provides a server that wraps the Wine Debugger (winedbg) to debug Windows applications running under Wine from a remote client. Offers a comprehensive set of debugging tools including breakpoints, watchpoints, memory examination, stack navigation, and process control.
WineDbg MCP Server
This project provides a server that wraps the Wine Debugger (winedbg
) and exposes its functionality through a simple API. This allows you to debug Windows applications running under Wine from a remote client.
Installation
- Install Wine and
winedbg
. - Create a Python virtual environment and install the required dependencies:
Usage
- Start the server:
- Run the test client to see the server in action:
Testing with the Test App
This project includes a simple C application that can be used for testing the server.
- Compile the test application for 32-bit Windows:If you don't have the MinGW-w64 cross-compiler, you can install it on Debian/Ubuntu with:
sudo apt-get install gcc-mingw-w64-i686
- Run the test client:The test client will automatically use the
test_app.exe
to test the server's functionality.
MCP Server Configuration
If you are using a client that supports launching MCP servers, you can configure it with the following JSON. This tells the client how to start the winedbg
server.
Note: Make sure to replace /ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-winedbg
with the actual absolute path to this project directory on your system.
Available Tools
The server exposes the following tools:
run
: Run an executable inwinedbg
.attach
: Attach to a process.quit
: Quitwinedbg
.detach
: Detach from the process.kill
: Kill the process.cont
: Continue execution.break_at
: Set a breakpoint.watch
: Set a watchpoint.info_break
: Get breakpoint info.delete_breakpoint
: Delete a breakpoint.backtrace
: Get a backtrace.frame
: Select a stack frame.up
: Move up the stack.down
: Move down the stack.step
: Step execution.next
: Next execution.stepi
: Step instruction.nexti
: Next instruction.finish
: Finish execution of the current function.print_var
: Print a variable.examine_memory
: Examine memory.info_locals
: Get local variables.info_args
: Get function arguments.info_proc
: Get process info.info_threads
: Get thread info.info_share
: Get shared library info.set_debug_channel
: Set theWINEDEBUG
environment variable.get_debug_channels
: Get theWINEDEBUG
environment variable.
This server cannot be installed
A server that wraps the Wine Debugger (winedbg) and exposes its functionality through a simple API, allowing you to debug Windows applications running under Wine from a remote client.
Related MCP Servers
- -securityAlicense-qualityThis server provides tools to inspect error reports, stacktraces, and other debugging information from your Sentry account.Last updated -57,040PythonMIT License
- -securityFlicense-qualityAllows Claude to directly debug a NodeJS server by setting breakpoints, inspecting variables and stepping through code.Last updated -189240JavaScript
- -securityFlicense-qualityProvides GDB debugging functionality for use with Claude or other AI assistants, allowing users to manage debugging sessions, set breakpoints, examine variables, and execute GDB commands through natural language.Last updated -JavaScript
- -securityAlicense-qualityA GDB/MI protocol server based on the MCP protocol, providing remote application debugging capabilities.Last updated -19RustMIT License