CDB-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CDB_MCP_CDB_PATH | No | Full path to cdb.exe | |
| CDB_MCP_CMD_TIMEOUT | No | Default command timeout (seconds) | 30 |
| CDB_MCP_SOURCE_PATH | No | Source code path | |
| CDB_MCP_MAX_SESSIONS | No | Max concurrent sessions | 4 |
| CDB_MCP_SYMBOLS_PATH | No | Symbol path (semicolon-separated) | |
| CDB_MCP_OUTPUT_BUFFER | No | Output buffer line count | 1000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_sessionA | Create a CDB debug session by launching a cdb.exe subprocess. Four session types:
After creation, use the execute tool to send CDB commands. |
| close_sessionA | Close a debug session, terminating the cdb.exe subprocess. With detach=true the debugger detaches (target process keeps running). With detach=false the session is closed directly. |
| list_sessionsA | List all active debug sessions and their states. |
| executeA | Send a CDB command to the current debug session. Returns status and output. This is the core tool for interacting with CDB. The LLM constructs valid CDB command strings; the server forwards them to cdb.exe. Returns JSON: {"status": "completed", "output": "..."} -- command finished {"status": "pending", "output": "..."} -- command timed out but still running {"status": "error", "output": "", "error": "..."} -- error occurred When status is "pending":
Common commands:
Note: q/qq/qd commands are blocked (use close_session instead). |
| get_outputA | Get the output status and content of the current command. Used to poll a command's progress after execute() returns pending. Does not send any command to CDB; only reads the existing output buffer. Returns JSON: {"status": "pending", "output": "...", "command": "g"} -- command still running; output is what has been produced so far {"status": "idle", "output": "", "command": null} -- no command is executing Typical usage:
|
| wait_for_promptA | Wait for the current pending command to complete (CDB prompt to appear). Used after execute() returns pending, to continue waiting for command completion. If no command is pending, returns idle status. Returns JSON: {"status": "completed", "output": "..."} -- command finished {"status": "pending", "output": "..."} -- still running, timed out again {"status": "idle", "output": ""} -- no command is executing |
| interruptA | Interrupt the running debug target (send Ctrl+Break). Used after execute('g') returns pending, to stop the target. CDB will stop the target and display a new prompt. After interrupt, use get_output() to see the post-interrupt output. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: session lifecycle (create/close/list), command execution, output polling, waiting, and interrupting. Even the similar get_output and wait_for_prompt are differentiated by their descriptions (reading buffer vs. waiting for prompt), leaving no real ambiguity.
Names mostly follow a verb_noun pattern (create_session, close_session, list_sessions, get_output), with a few bare verbs (execute, interrupt) that still clearly indicate actions. The style is consistent and readable, with only minor deviation from the noun suffix.
Seven tools is well-scoped for a debugger integration. Each tool covers a necessary aspect of session and command management without redundancy, and the count is appropriate for the complexity of CDB interaction.
The tool set covers the full debug session lifecycle: create, close, list, execute arbitrary commands, and handle asynchronous output (poll, wait, interrupt). There are no obvious dead ends—any CDB command can be run, and pending operations can be managed. The only theoretical gap (dedicated breakpoint tools) is handled by the generic execute tool.