Debugging MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_codebaseA | Fast text search across the workspace files. Uses ripgrep when available, falls back to a recursive file walk. Returns matching file paths, line numbers, and line content. |
| initialize_sessionA | Auto-detects the workspace's technology stack, package manager, test runner, log paths, and entry points. Call this first to establish context before debugging. |
| run_testsA | Executes the workspace's test suite. Auto-detects the appropriate test runner. The |
| get_recent_commitsA | Retrieves recent git commits for the workspace. Useful for correlating code changes with failures. Returns commit hash, author, date, and message. |
| connect_dapA | Establishes a TCP connection to a running Debug Adapter Protocol (DAP) server. This must be called before |
| inspect_runtime_stateA | Retrieves the live debugging snapshot from a connected DAP session: threads, call stack, scopes, and local variables with their current values. Requires an active DAP connection (call |
| evaluate_expressionA | Evaluates an expression in the context of the debuggee's current state. Requires an active DAP connection and typically works best when the debuggee is stopped. The |
| step_debuggerA | Controls execution flow of the debuggee. Use this to resume, step over, step into, or step out. Requires an established debugging connection which is currently paused. This command will mutate the state of the debuggee and wait up to 3 seconds for it to pause again. |
| disconnect_dapA | Cleanly disconnects from the current DAP session. The debuggee continues running — this does NOT terminate it. Idempotent: safe to call even if not connected. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| debug-error | Given an error message or stack trace, orchestrate a structured debugging workflow using the available tools. Identifies likely root causes and suggests next actions. |
| explain-stacktrace | Analyzes a stack trace and produces a human-readable explanation of the failure, walking through each frame and identifying the key transition points. |
| correlate-failure | Links recent git commits to a current failure. Helps identify which change likely introduced the bug by cross-referencing error context with commit diffs. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| workspace-structure | A dynamic directory tree of the workspace. Excludes common non-essential directories like node_modules and .git. Limited to 4 levels deep. |
| workspace-logs | Real-time access to application log files found in the workspace. Scans common log directories and returns the most recent entries. |
Latest Blog Posts
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/luischang07/debugging-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server