Command-line options¶
The server is started by your MCP client, but the same options apply when you run it by hand:
The mcp-windbg entry point is equivalent, if its scripts directory is on your PATH.
All options¶
| Option | Default | Description |
|---|---|---|
--transport {stdio,streamable-http} |
stdio |
Transport protocol. See Transports. |
--host HOST |
127.0.0.1 |
Host to bind for the HTTP transport. |
--port PORT |
8000 |
Port to bind for the HTTP transport. |
--cdb-path PATH |
auto-detect | Full path to cdb.exe. See Symbols and CDB. |
--kd-path PATH |
auto-detect | Full path to kd.exe, used for kernel debugging. See Symbols and CDB. |
--symbols-path PATH |
_NT_SYMBOL_PATH |
Symbol search path used when opening a session. |
--no-dump-dir-symbols |
off | Do not auto-add a dump's own directory to the symbol path. |
--filter-script PATH |
none | Python script with tool-text hooks. See Filter script hooks. |
--timeout SECONDS |
60 |
Baseline command/connect timeout; a floor for the per-tool defaults. |
--verbose |
off | Verbose logging to stderr. |
General¶
--timeoutsets the baseline command/connect timeout and acts as a floor for the per-tool defaults (open_cdb_dump180s,run_cdb_command60s,run_kd_command120s). Anyopen_*/run_*call can also override it per call withtimeout_seconds. Raise the floor for heavy analysis on large dumps, for example--timeout 120.--verboselogs to stderr, which is safe under stdio (stdout is the MCP transport).
Transports¶
| Transport | Use it for |
|---|---|
stdio (default) |
Local MCP clients that launch the server as a child process: VS Code, Claude Desktop, Copilot CLI. |
streamable-http |
Running the server separately and connecting over HTTP. |
Standard I/O (default):
Streamable HTTP:
The endpoint is then http://127.0.0.1:8000/mcp. See
Client configuration for the matching client snippet and
Debug from another machine for the full workflow.
The HTTP transport has no authentication
Anyone who can reach the port can drive cdb.exe on the host. Keep --host 127.0.0.1, or
expose it only on a trusted network or behind an SSH tunnel or authenticating proxy.
Symbols and CDB¶
--cdb-path- the server auto-detectscdb.exein the common Windows Kits and Microsoft Store locations. Set this when yours is installed elsewhere.--kd-path- the same, for thekd.exeused byopen_kd_session. Kernel debugging needskd.exe;cdb.execannot drive a kernel connection, so this is a separate option from--cdb-path.--symbols-path- sets the symbol search path for new sessions. If omitted, the debugger uses_NT_SYMBOL_PATHfrom the environment, which is the usual way to configure the Microsoft symbol server (see Getting started).- Dump directory symbols - when a session is created for a dump, the server prepends the
dump's own directory to the symbol path so co-located
.pdbfiles are found. Disable this with--no-dump-dir-symbols.
Per-call symbol paths are also available on the open_* tools, see
open_cdb_dump and open_cdb_remote.
Filter script hooks¶
Use --filter-script to load a small Python helper that rewrites tool text only, for
example to redact PII before it leaves the machine. The script
never sees the full MCP JSON-RPC envelope, which keeps the hook surface small and avoids
protocol interference. It
runs in-process with the server, so treat it as trusted code.
The script may define either or both of these functions:
process_inputis applied to string-valued tool arguments before the tool runs.process_outputis applied toTextContent.textvalues returned by tools before they go back to the client.textis always a plainstr.contextincludeshook,tool_name,transport, andcall_id.- Input callbacks also receive
argument_pathsuch as$.commandor$.payload.notes[0]. - Output callbacks also receive
content_indexfor the returned text item. call_idis stable for the lifetime of one tool invocation, so input and output for the same call can be correlated.- A hook may return
Noneto leave the text unchanged, or a replacement string.
Example redaction filter:
def process_input(text, context):
if context["tool_name"] == "run_cdb_command" and context["argument_path"] == "$.command":
return text.replace("user@example.com", "[redacted-email]")
return text
def process_output(text, context):
return text.replace("user@example.com", "[redacted-email]")
Start the server with the filter enabled: