MW

memoryforensics1/windbg-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

47 stars 8 forks Качество 77 Тренд 8MIT

memoryforensics1/windbg-mcp - кандидат на сервер MCP, импортированный из https://github.com/memoryforensics1/windbg-mcp.

Обзор

memoryforensics1/windbg-mcp - кандидат на сервер MCP, импортированный из https://github.com/memoryforensics1/windbg-mcp.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который дает агентам ИИ полный контроль над виртуальной машиной Windows для отладки ядра, обратного проектирования, анализа вредоносных программ и исследования уязвимостей.

Встроенный в C# (.NET 8), он заворачивает Windows Debugger Engine (DbgEng COM), VMware Workstation, Frida и dbgsrv в инструменты 29 MCP, которые может вызвать любой MCP-совместимый LLM-клиент.

##Почему именно этот проект?

Другие MCP-серверы WinDbg существуют — большинство из них являются обертками Python, которые запускают cdb.exe или windbg.exe в качестве подпроцесса и управляют им через stdin/stdout. Это легко создать прототип, но на практике очень хрупко: отладчик ребенка падает, висит на модальных диалогах, закрывает свои собственные трубы или умирает в середине сессии и берет с собой контекст агента.

Этот проект использует другой подход:

Direct DbgEng COM — изначально вызывает движок отладчика Windows через интерфейс COM. Никакого подпроцесса для няни, никакого стадного анализа, никаких подвешенных труб. Команды выполняются внутри серверного процесса на выделенном потоке MTA COM с помощью отладчика событий, поэтому отладчик не может перетащить весь сервер MCP с ним.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

WinDbg MCP Server

A Model Context Protocol (MCP) server that gives AI agents complete control over a Windows VM for kernel debugging, reverse engineering, malware analysis, and vulnerability research.

Built in C# (.NET 8), it wraps the Windows Debugger Engine (DbgEng COM), VMware Workstation, Frida, and dbgsrv into 29 MCP tools that any MCP-compatible LLM client can call.

Why this project?

Other WinDbg MCP servers exist — most are Python wrappers that launch cdb.exe or windbg.exe as a subprocess and drive it over stdin/stdout. That’s easy to prototype but fragile in practice: the child debugger crashes, hangs on modal dialogs, deadlocks its own pipes, or dies mid-session and takes the agent’s context with it.

This project takes a different approach:

  • Direct DbgEng COM — calls the Windows Debugger Engine natively through its COM interface. No subprocess to babysit, no stdout parsing, no hung pipes. Commands execute inside the server process on a dedicated MTA COM thread with an event pump — so the debugger can’t drag the whole MCP server down with it.
  • Kernel debugging is the primary use case, not an afterthought — full KDNET integration: attach to a running kernel, set breakpoints, step, run any WinDbg command while the target is halted, wait for events with hard timeouts, detect BSODs, and pass first-chance exceptions through so Windows keeps running normally. Execution-control commands (g/t/p) are blocked in kd_execute so the LLM can’t accidentally run away from a breakpoint — it has to use the explicit kd_continue/kd_step tools, which always return.
  • User-mode is covered too — Frida (with eternalized hooks for persistent instrumentation across sessions), dbgsrv for noninvasive process inspection with full WinDbg command access, and TTD (Time Travel Debugging) — all behind the same server.
  • VM lifecycle is integrated with the debug session — snapshot restore cleanly tears down KD/Frida/dbgsrv before reverting the VM; guest commands, file transfer, and process control are all gated on VM power state so the agent never trips on “wrong state” errors. vm_set_target lets a running server switch to a different VM at runtime.
  • Designed for LLM agents — every tool has a hard timeout (nothing blocks forever), every error message explicitly tells the LLM what to do next, and get_system_state gives the model a single “where am I?” snapshot on demand. A StateCoordinator validates preconditions before every call so the agent gets useful feedback instead of silent failures.

What Can It Do?

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "windbg-mcp": { "command": "dotnet", "args": ["run", "--project", "C:\\path\\to\\windbg-mcp\\src\\WinDbgMCP.Server\\WinDbgMCP.Server.csproj"] } } }