
originsec/kd-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 서버 래핑 `kd.exe` Windows 커널 디버깅
개요
Windows 커널 디버깅을 위한 kd.exe를 감싸는 MCP (모델 Context Protocol) 서버. Spawns kd.exe는 하위 처리로 제공하며 22 MCP 도구로 기능을 노출시킵니다. KDNET 연결, Breakpoints, Memory reads, register inspection, 그리고 DbgEng COM 래퍼의 실링 제한 없이 심볼 해상도를 처리합니다. Hyper-V VM을 관리하고 PowerShell Direct를 통해 KDNET을 구성하는 Hyperv-mcp와 페어링하도록 설계되었습니다. Hyperv-mcp를 사용하여 VM을 스냅하고 KDNET을 설정 한 다음 커널 디버그 세션으로 드롭하기 위해 kd-mcp의 커널 attach를 kd-mcp의 커널 attach에 결과를 전달합니다. - Windows 10/11 Windows Debugging Tools 설치 - Python 3.10+ - KDNET에 연결된 대상 커널 이것은 kd-mcp 콘솔 스크립트를 설치하고 mcp 의존성에 끌어냅니다. 특정 개정 (tag 또는 커밋)을 설치하려면: KD EXE 환경 변수를 사용하여 다른 곳에 설치하십시오. 콘솔 스크립트없이 모듈을 직접 호출 할 수 있습니다 : — kd를 시작합니다.
개요(AI 번역)
MCP (모델 Context Protocol) 서버는 Windows 커널 디버깅을 위해 kd.exe를 감싸는 서버입니다.
Spawns kd.exe는 하위 처리로 제공하며 22 MCP 도구로 기능을 노출시킵니다.
손잡이 KDNET 연결, Breakpoints, 메모리 읽기, 등록 검사 및 기호
DbgEng COM 래퍼의 스레드 제한 없이 해결.
hyperv-mcp와 쌍에 디자인해, Hyper-V VM을 관리하고 PowerShell을 통해 KDNET 내부의 구성 직접.
hyperv-mcp를 사용하여 VM을 스냅하고 KDNET을 설정 한 다음 통과 결과kernel_attach_stringkd-mcp]kernel_attach] 커널 디버그 세션.
요구 사항
- Windows 10/11 Windows Debugging 도구 설치
- 파이썬 3.10+
- KDNET에 연결된 대상 커널
설치
GitHub에서 직접 설치:
이것은 kd-mcp] 콘솔 스크립트를 설치하고 mcp] 자동적으로 풀합니다.
특정 개정 (tag 또는 커밋)을 설치하려면:
kd.exe 위치
서버 기본값은:
KD_EXE] 환경변수를 설치한 경우:
MCP 클라이언트에 연결
클로드 코드 (CLI)
.mcp.json에 관하여
핀이 필요한 경우 KD_EXE per-config:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
kd-mcp
An MCP (Model Context Protocol) server wrapping kd.exe for Windows kernel debugging.
Spawns kd.exe as a subprocess and exposes its functionality as 22 MCP tools.
Handles KDNET connections, breakpoints, memory reads, register inspection, and symbol
resolution without the threading limitations of DbgEng COM wrappers.
Designed to pair with hyperv-mcp, which manages Hyper-V VMs and configures KDNET inside guests via PowerShell Direct. Use
hyperv-mcpto snapshot a VM and set up KDNET, then pass the resultingkernel_attach_stringtokd-mcp’skernel_attachto drop into a kernel debug session.
Requirements
- Windows 10/11 with Windows Debugging Tools installed
- Python 3.10+
- A target kernel connected over KDNET
Installation
Install directly from GitHub:
pip install git+https://github.com/originsec/kd-mcp.git
This installs the kd-mcp console script and pulls in the mcp dependency automatically.
To install a specific revision (tag or commit):
pip install git+https://github.com/originsec/[email protected]
kd.exe location
The server defaults to:
C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\kd.exe
Override with the KD_EXE environment variable if installed elsewhere:
$env:KD_EXE = "C:\path\to\kd.exe"
Connecting to MCP clients
Claude Code (CLI)
claude mcp add kd -- kd-mcp
.mcp.json
{
"mcpServers": {
"kd": {
"command": "kd-mcp"
}
}
}
If you need to pin KD_EXE per-config:
{
"mcpServers": {
"kd": {
"command": "kd-mcp",
"env": { "KD_EXE": "C:\\path\\to\\kd.exe" }
}
}
}
You can also invoke the module directly without the console script:
python -m kd_mcp
Development install
git clone https://github.com/originsec/kd-mcp.git
cd kd-mcp
pip install -e .
Available Tools (21 total)
Session
| Tool | Parameters | Returns |
|---|---|---|
kernel_attach |
connect_string, reset_vm?, timeout |
{status, kernel_version, attempts, output} |
status |
— | {connected, pid?} |
detach |
— | {status} |
kernel_attach — Launches kd.exe and connects via KDNET. Auto-respawns kd.exe on
connection failures until timeout expires, so it can catch the KDNET hello packet
whenever the target becomes ready (e.g. after a VM reboot). Pass reset_vm with a
Hyper-V VM name to hard-reset the VM 2 seconds after kd.exe starts.
connect_string format: "net:port=50000,key=a1b2.c3d4.e5f6.a7b8.c9d0"
Execution Control
| Tool | Parameters | Returns |
|---|---|---|
go |
timeout |
{status, output} |
break_in |
timeout |
{status, output} |
step_into |
— | {output} |
step_over |
— | {output} |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"kd": {
"command": "kd-mcp"
}
}
}