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 |
Capabilities
Features and capabilities supported by this server
| 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 | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cc682/cdb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server