Logo von Windbg MCP Rs

Windbg MCP Rs

Community
kanren3

A WinDbg plugin that turns the current debugging session into an MCP server for command docs, debugger actions, and AI-assisted analysis.

Herausgeberkanren3
Repositorywindbg-mcp-rs
SpracheRust
Forks
9
Sterne
57
Verfügbare Tools
0
Transporttypstdio
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Windbg MCP Rs stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    57 Sterne und 9 Forks im verlinkten Repository.

windbg-mcp-rs

windbg-mcp-rs is a pure WinDbg extension DLL that exposes the current debugging session as an MCP server.

  • Read official WinDbg command documentation extracted from docs/debugger.chm
  • Execute WinDbg commands through dbgeng
  • Interrupt a running target from MCP
  • Alternative — windbg-mcp (headless, stdio): a sibling project that drives cdb.exe/kd.exe as subprocesses. No WinDbg GUI required, multi-session, auto-detects installed Windows Debugging Tools.

Screenshots

WinDbg MCP plugin screenshot 1

WinDbg MCP plugin screenshot 2

Quick Start

1. Install the released extension

One-liner (recommended):

powershell
irm https://raw.githubusercontent.com/kanren3/windbg-mcp-rs/master/scripts/install.ps1 | iex

This downloads the latest release from GitHub and installs to all discovered WinDbg locations.
Run as Administrator to install to SDK debugger paths.

2. Build the DLL (developers)

powershell
# x64 (default)
cargo build --release --target x86_64-pc-windows-msvc

# x86 / 32-bit WinDbg
rustup target add i686-pc-windows-msvc
cargo build --release --target i686-pc-windows-msvc

# ARM64
rustup target add aarch64-pc-windows-msvc
cargo build --release --target aarch64-pc-windows-msvc

Release tags publish one architecture-specific archive for every supported WinDbg engine:

WinDbg architectureRust targetRelease suffixStore DLL destination
x86i686-pc-windows-msvcwindows-x86.zipEngineExtensions32\windbg_mcp_rs.dll
x64x86_64-pc-windows-msvcwindows-x64.zipEngineExtensions\windbg_mcp_rs.dll
ARM64aarch64-pc-windows-msvcwindows-arm64.zipEngineExtensions\windbg_mcp_rs.dll

The checked-in gallery manifest remains architecture-neutral (Architecture="Any"). The installer generates Store-only absolute entries for the architectures actually installed. Store gallery package validation requires the loaded DLL file name to match the binary component name, so Store DLLs are always named windbg_mcp_rs.dll; architecture is selected by the manifest entry and destination directory. Installation is filtered by host architecture before copying files. On x64 Windows, the installer publishes x86 and x64 entries because WinDbg can use the x86 engine for x86 targets. On ARM64 Windows, the installer publishes only the ARM64 entry by default. Extra SDK directories for non-native architectures are ignored unless they are part of that host architecture set.

3. Install a local build

Install from local build:

powershell
.\scripts\install.ps1 -LocalPath .\target

-LocalPath accepts either a flat directory containing windbg_mcp_rs.dll or a build root containing <RustTarget>\release\windbg_mcp_rs.dll. The installer reads each DLL's PE machine, rejects mismatched or duplicate candidates, discovers Store packages through Get-AppxPackage before falling back to WindowsApps, and returns a nonzero exit code if any required architecture fails. Validate without changing installation files with:

powershell
.\scripts\install.ps1 -LocalPath .\target -DryRun

Manual install:

text
# SDK Debuggers
copy target\<RustTarget>\release\windbg_mcp_rs.dll     <matching-windbg>\winext\
copy windbg_mcp_rs_GalleryManifest.xml                 <windbg>\OptionalExtensions\

# WinDbg (Store) — use install.ps1 (manual setup is complex)
# The script rewrites the manifest with absolute architecture-specific paths
# and publishes the shared gallery files.
# atomically under %LOCALAPPDATA%\DBG\ExtRepository\windbg-mcp-rs\.
# Then run:
#   .settings load %LOCALAPPDATA%\DBG\ExtRepository\windbg-mcp-rs\config.xml
#   .settings save

4. Verify

Start WinDbg and run:

text
!mcp status

The MCP server auto-starts when WinDbg reports an active debugging session.
Endpoint: the first available endpoint from http://127.0.0.1:50051/mcp through http://127.0.0.1:50070/mcp.

5. Connect your MCP client

Run !mcp status and point your client to the reported endpoint. For a single instance this is usually:

text
http://127.0.0.1:50051/mcp

Multi-Instance Discovery

When the default port is already in use, auto-start tries the next localhost port up to 127.0.0.1:50070. Each running WinDbg instance writes a user-local discovery file:

text
%LOCALAPPDATA%\windbg-mcp-rs\instances\instance-<pid>.json

The JSON file contains the MCP server name and URL, host WinDbg/EngHost process id, host architecture, host process path, start timestamp, and a best-effort current_target snapshot for discovery prioritization. In schema 1, mcp_server_name and mcp_server_url identify the MCP endpoint, host_pid, host_arch, and host_process_path identify the process hosting the MCP extension, while current_target uses name for the active target image name/path, source_path for offline dump/trace source files when available, and transport/endpoint for remote transports. current_target can be null during early startup or after the debug session becomes inactive, and is refreshed after WinDbg reports an accessible session or a relevant target/session event. The snapshot is only a hint; clients must still treat registry files as candidates and confirm liveness and target identity with an MCP initialize handshake before using the endpoint. The running extension keeps a companion instance-<pid>.lock file open to mark the instance as active, and rewrites instance-<pid>.json through instance-<pid>.json.tmp followed by an atomic replace. When another instance starts, it tries to delete old instance-*.lock, instance-*.json, and instance-*.json.tmp groups; active instances remain protected by their lock file, while stale files from crashed or killed WinDbg processes are normally removed.

WinDbg Commands

Use !mcp help to list all plugin commands.

Common ones:

text
!mcp help
!mcp serve 127.0.0.1:50051
!mcp status
!mcp catalog dt
!mcp doc dt
!mcp stop

What MCP Exposes

  • Resources: a low-context guide resource and compact/full WinDbg command documentation resources
  • Tools: a compact toolset for catalog search, execution-state query, command execution, and target interrupt

Pure UI shortcut topics remain available as documentation, and command execution is exposed through a single windbg_execute_command tool.

Recommended agent flow: call windbg_search_catalog, read windbg://command/{id}, fall back to windbg://command-full/{id} only when needed, call windbg_get_execution_state, and then call windbg_execute_command.

If the debugger is running or busy, call windbg_interrupt_target explicitly and verify state again before executing the command.

Development

powershell
cargo check
cargo test

Notes

  • This project was written entirely with a Vibe Coding workflow
  • The server runs inside the WinDbg process
  • The runtime does not parse docs/debugger.chm; it uses the prebuilt static catalog in src/catalog.json
  • The transport is Streamable HTTP
  • Set your MCP client timeout as high as possible, because some WinDbg operations can take a long time to finish
  • The server now auto-starts when WinDbg reports an active debugging session. Run !mcp stop to stop it, or !mcp serve to start it again manually.
  • windbg_mcp_rs_GalleryManifest.xml enables WinDbg auto-loading when placed in OptionalExtensions\ alongside the extension DLL.
  • Use scripts\install.ps1 to automatically deploy the extension to all discovered WinDbg installations.

Alternative: windbg-mcp (headless, stdio)

Prefer a headless MCP server that runs as a separate process instead of an in-process WinDbg extension? Check out the sibling project:

  • Repo: https://github.com/kanren3/windbg-mcp
  • Transport: stdio (not Streamable HTTP)
  • Model: drives cdb.exe / kd.exe as subprocesses — no WinDbg GUI required
  • Sessions: multi-session; auto-detects installed Windows Debugging Tools

Drop it straight into your MCP client config:

json
{
  "mcpServers": {
    "windbg-mcp": {
      "command": "bun",
      "args": ["x", "windbg-mcp@latest"]
    }
  }
}

Which one should I use?

windbg-mcp-rs (this repo)windbg-mcp (alternative)
Runs asWinDbg extension DLL (in-process)Standalone process driving cdb/kd
TransportStreamable HTTPstdio
WinDbg GUIRequired (loads the extension)Not required (headless)
Multi-sessionOne extension per WinDbg instanceMultiple cdb/kd subprocesses
SetupInstall DLL into WinDbgbun x windbg-mcp@latest
Best forInteractive debugging alongside the WinDbg UIScripted / CI / agent-only workflows

Both offer overlapping command-execution and interrupt tools, but differ in lifecycle and session management (see the table above). Pick the one that fits your workflow — or run both.

Windbg MCP Rs MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Windbg MCP Rs verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Windbg MCP Rs als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Windbg MCP Rs ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "windbg-mcp-rs": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Windbg MCP Rs. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Windbg MCP Rs.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Windbg MCP Rs bei dieser Aufgabe helfen?
Windbg MCP Rs
Gerne. Ich habe es gelesen.
Das habe ich mit Windbg MCP Rs gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Windbg MCP Rs verwendet?

Windbg MCP Rs ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Windbg MCP Rs MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Windbg MCP Rs mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Windbg MCP Rs MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Windbg MCP Rs verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Windbg MCP Rs MCP mit TypingMind?

Windbg MCP Rs wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Windbg MCP Rs MCP in TypingMind bereit?

Windbg MCP Rs stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Windbg MCP Rs MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Windbg MCP Rs eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇