Logo van mcp-windbg-rs

mcp-windbg-rs

Community
FlorentinoJink

Model Context Protocol for WindDbg, implementation by rust

UitgeverFlorentinoJink
Repositorymcp-windbg
TaalRust
Forks
6
Sterren
12
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieAGPL-3.0
Links
  • Koppel tools aan AI-workflows

    mcp-windbg-rs biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • Beschikbare tools: 0

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Belangstelling voor het opensourceproject

    Statistieken van de gekoppelde repository (sterren: 12, forks: 6).

mcp-windbg-rs

中文文档 | English

A Model Context Protocol (MCP) server for Windows debugging — crash dump analysis, remote debugging, and direct program debugging via CDB.

Built with Rust and Tokio for async I/O. Ships as a single executable with no runtime dependencies.

Features

  • Crash dump analysis — Open .dmp files, auto-run !analyze -v, inspect threads, modules, and stack traces
  • Remote debugging — Connect to remote debug sessions via connection strings
  • Direct program debugging — Launch executables under CDB, set breakpoints, step through code, inspect variables
  • Session management — Multiple concurrent debug sessions with automatic reuse
  • Configurable timeouts — Separate timeouts for initialization (symbol loading) and command execution

Prerequisites

If CDB is not installed, you can get it via:

bash
winget install Microsoft.WinDbg

The server auto-discovers CDB from Windows SDK default paths, WinDbg Preview (Microsoft Store), and PATH.

Installation

From source

bash
cargo build --release

Binary: target/release/mcp-windbg-rs.exe

Configuration

VS Code / Kiro

.vscode/mcp.json:

json
{
  "servers": {
    "mcp-windbg": {
      "type": "stdio",
      "command": "/path/to/mcp-windbg-rs.exe",
      "args": [],
      "env": {
        "_NT_SYMBOL_PATH": "SRV*C:\\Symbols*https://msdl.microsoft.com/download/symbols"
      }
    }
  }
}

Claude Desktop / Cline / Other MCP Clients

json
{
  "mcpServers": {
    "mcp-windbg-rs": {
      "command": "mcp-windbg-rs",
      "args": [],
      "env": {
        "_NT_SYMBOL_PATH": "SRV*C:\\Symbols*https://msdl.microsoft.com/download/symbols"
      }
    }
  }
}

Environment Variables

VariableDescriptionDefault
CDB_PATHCustom path to cdb.exeAuto-discovered
_NT_SYMBOL_PATHDebug symbol search path—
_NT_SOURCE_PATHSource file search path—
MCP_WINDBG_TIMEOUTCommand timeout (seconds)30
MCP_WINDBG_INIT_TIMEOUTInit timeout for dump/symbol loading (seconds)120
MCP_WINDBG_VERBOSEVerbose logging (true/false)false

CLI Options

mcp-windbg-rs [OPTIONS]

  --timeout <SECONDS>       Command execution timeout (default: 30)
  --init-timeout <SECONDS>  Initialization timeout (default: 120)
  --verbose                 Enable verbose logging

Tools

ToolDescription
open_windbg_dumpOpen and analyze a crash dump file
open_windbg_remoteConnect to a remote debugging session
launch_debugLaunch a program under CDB for debugging
run_windbg_cmdExecute any WinDbg/CDB command in a session
close_windbg_dumpClose a dump file session
close_windbg_remoteClose a remote debugging session
close_debugClose a launch debug session and terminate the program
list_windbg_dumpsList .dmp files in a directory

Usage Examples

Crash Dump Analysis

Analyze the crash dump at C:\dumps\app.dmp

Remote Debugging

Connect to tcp:Port=5005,Server=192.168.0.100 and show the current state

Direct Program Debugging

Launch a program, set breakpoints, step through code:

Launch C:\MyApp\app.exe for debugging

Then use run_windbg_cmd to control execution:

bp main          — Set breakpoint at main
g                — Continue execution
p                — Step over
t                — Step into
k                — Stack trace
dv               — View local variables
lsa .            — Show source at current location

The launch_debug tool supports optional parameters:

ParameterTypeDescription
program_pathstringPath to the target program (required)
argumentsstring[]Command line arguments
working_directorystringWorking directory
symbols_pathstringPDB symbol search path
source_pathstringSource file path for source-level debugging
include_stack_tracebooleanInclude initial stack trace
include_modulesbooleanInclude loaded modules list

Close a Session

Close the debug session for C:\MyApp\app.exe

Troubleshooting

CDB not found — Install via winget install Microsoft.WinDbg or set CDB_PATH to your cdb.exe location.

Symbols not loading — Set _NT_SYMBOL_PATH. Recommended: SRV*C:\Symbols*https://msdl.microsoft.com/download/symbols

Command timeout — Increase with --timeout 60 or MCP_WINDBG_TIMEOUT=60. Large dumps and symbol downloads may need higher MCP_WINDBG_INIT_TIMEOUT.

Web Dump Debugger

The project also ships a web-based crash dump analysis service (web-dump-debugger) that provides a browser UI for uploading, analyzing, and reporting on crash dumps.

Features

  • Web upload — Upload .zip, .7z, or .tar.gz archives containing dump files through a browser
  • Automatic extraction — Archives are extracted and scanned for .dmp, .pdb, and source files
  • LLM-powered analysis — Uses the same mcp_client.py orchestration as the GitHub Actions workflow
  • Real-time progress — Server-Sent Events (SSE) stream live analysis progress to the browser
  • HTML reports — Markdown analysis output is rendered to HTML with syntax highlighting
  • Rate limiting — Per-IP upload rate limiting with sliding window algorithm
  • Session management — Isolated per-session workspaces with automatic cleanup

Quick Start

bash
# Build both binaries
cargo build --release

# Create a config file (edit llm.api_key first)
cp config.example.toml config.toml

# Start the web server
./target/release/web-dump-debugger --config config.toml

Then open http://localhost:8080 in your browser.

Configuration

See config.example.toml for all options. The server supports both TOML file and environment variable configuration.

API Endpoints

MethodPathDescription
GET/Upload form HTML page
POST/uploadUpload crash dump archive (multipart/form-data)
GET/progress/:idSSE progress stream
GET/report/:idHTML report page
GET/download/:idDownload raw Markdown report
GET/healthHealth check (JSON)

Deployment

See docs/WEB_DEPLOYMENT.md for production deployment guidance.

Related

License

AGPL-3.0-or-later

Installatie

TypingMind
Vereisten:

Node.js 18+

{
  "mcpServers": {
    "florentinojink-mcp-windbg": {
      "command": "",
      "args": []
    }
  }
}

Gebruik mcp-windbg-rs MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra mcp-windbg-rs is verbonden, kun je de verbinding dus met verschillende AI-modellen in TypingMind gebruiken, zonder die voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg mcp-windbg-rs toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus op ‘Gereed’ staat.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van mcp-windbg-rs.
  4. Sla de serverlijst op.
  5. Vernieuw de pagina als je wilt controleren of de connectorstatus nog op ‘Gereed’ staat.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "florentinojink-mcp-windbg": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-windbg"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van mcp-windbg-rs in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van mcp-windbg-rs in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je mcp-windbg-rs gebruiken om me hiermee te helpen?
mcp-windbg-rs
Zeker. Ik heb het gelezen.
Dit vond ik met mcp-windbg-rs.

Veelgestelde vragen

Waarvoor wordt de MCP-server mcp-windbg-rs gebruikt?

mcp-windbg-rs is een MCP-server waarmee compatibele AI-clients toegang krijgen tot externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik mcp-windbg-rs MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je mcp-windbg-rs gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom mcp-windbg-rs MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als mcp-windbg-rs verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik mcp-windbg-rs MCP met TypingMind?

mcp-windbg-rs werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt mcp-windbg-rs MCP in TypingMind?

mcp-windbg-rs biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om mcp-windbg-rs MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als mcp-windbg-rs authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇