NW

nadavlor/windbg-ext-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

118 stars 30 forks 质量 55 趋势 0MIT

nadavlor/windbg-ext-mcp 是从 https://github.com/nadavlor/windbg-ext-mcp. 导入的 MCP 服务器候选

概览

nadavlor/windbg-ext-mcp 是从 https://github.com/nadavlor/windbg-ext-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

WinDbg 扩展 + Python MCP 服务器。允许兼容 MCP 的客户端(Cursor、Claude、VS Code + Cline/Roo)用干净、验证的命令驱动 WinDbg。内核优先;用户模式也可行。

目录

  • 快速入门
  • 建筑学
  • 使用示例
  • 这里有什么
  • 理智检查
  • 故障排除
  • 配置
  • 测试
  • 注释

快速启动

先修课程

  • Windows 10/11
  • WinDbg(Windows SDK“Windows调试工具”)
  • Visual Studio 构建工具(C++)
  • Python 3.10+ 和 Poetry 2.x

构建扩展(Developer PowerShell for VS):

在 WinDbg 中加载:

安装并运行MCP服务器(根目录):

建筑

  • 扩展托管命名管道服务器,并安全地执行 WinDbg 命令。
  • Python 服务器验证输入,解决超时,并将工具暴露给 MCP 客户端。

使用示例

通用(自然语言提示)

  • “显示内核中所有正在运行的进程”
  • “当前线程的栈跟踪是多少?”
  • “分析地址0x1000的内存”
  • “帮我理解这场崩溃”
  • “在nt上设置断点!NtCreateFile并继续执行”
  • “逐步完成接下来的3条指令并展示寄存器”

Rootkit 行为(仅限研究)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

WinDbg‑ext‑MCP

WinDbg extension + Python MCP server. Lets MCP‑compatible clients (Cursor, Claude, VS Code + Cline/Roo) drive WinDbg with clean, validated commands. Kernel‑first; user‑mode works too.

Contents

  • Quick Start
  • Architecture
  • Usage Examples
  • What’s Here
  • Sanity Check
  • Troubleshooting
  • Configuration
  • Tested With
  • Notes

Quick Start

Prereqs

  • Windows 10/11
  • WinDbg (Windows SDK “Debugging Tools for Windows”)
  • Visual Studio Build Tools (C++)
  • Python 3.10+ and Poetry 2.x

Build the extension (Developer PowerShell for VS):

msbuild extension\windbgmcpExt.sln /p:Configuration=Release /p:Platform=x64

Load in WinDbg:

.load C:\path\to\windbgmcpExt.dll

Install and run the MCP server (in root directory):

poetry install
poetry run selftest
poetry run mcp --list-tools
poetry run mcp

Architecture

MCP Client (stdio)    Python MCP Server (stdio)    WinDbg Extension (named pipe)    WinDbg/Target
                             FastMCP                      \\.\pipe\windbgmcp                   Kernel/User
  • The extension hosts a named‑pipe server and executes WinDbg commands safely.
  • The Python server validates inputs, resolves timeouts, and exposes tools to MCP clients.

Usage Examples

General (natural language prompts)

  • “Show me all running processes in the kernel”
  • “What’s the current thread’s stack trace?”
  • “Analyze the memory at address 0x1000”
  • “Help me understand this crash dump”
  • “Set a breakpoint on nt!NtCreateFile and continue execution”
  • “Step through the next 3 instructions and show me the registers”

Rootkit behavior (research‑only)

  • “Hide explorer.exe using EPROCESS unlink and PspCidTable Unlink”
  • “Make OneDrive.exe appear to have no open handles”
  • “Make notepad.exe resistance to termination and kill attempts”
  • “Install invisible system call hooks that dont modify SSDT”
  • “Hide network connections from netstat while keeping them active”
  • “Make files invisible to directory enumeration but accessible by direct path”

Note: These are for lawful, defensive research in controlled test labs only.

Available Tools

  • debug_session: session status and metadata
  • connection_manager: connection health and resilience controls
  • session_manager: capture/restore debugging context
  • run_command: execute a WinDbg command with validation/timeout handling
  • run_sequence: execute multiple commands in order
  • breakpoint_and_continue: set a breakpoint and continue execution
  • analyze_process: process enumeration, info, and context switching
  • analyze_thread: thread info and stack traces
  • analyze_memory: memory display, typed structures, searches
  • analyze_kernel: kernel objects and system analysis
  • performance_manager: optimization controls and performance report
  • async_manager: parallel execution and async task stats
  • troubleshoot: quick diagnostics and guidance
  • get_help: list tools and usage tips
在 GitHub 查看完整 README

安装

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

Open the repository installation guide 新手?先看 mcpskill.org 教程 →