Skip to main content
Glama
luischang07

Debugging MCP Server

by luischang07

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 confirm flag MUST be set to true to actually execute — this is a safety measure.

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_state or evaluate_expression. The debug adapter must already be listening on the specified host and port (e.g., a Node.js app started with --inspect-brk, or a VS Code debug adapter in server mode).

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 connect_dap first). Most useful when the debuggee is stopped at a breakpoint.

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 context parameter restricts what kind of evaluation is performed: "hover" (default, safe, no side effects) or "watch".

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

NameDescription
debug-errorGiven an error message or stack trace, orchestrate a structured debugging workflow using the available tools. Identifies likely root causes and suggests next actions.
explain-stacktraceAnalyzes a stack trace and produces a human-readable explanation of the failure, walking through each frame and identifying the key transition points.
correlate-failureLinks 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

NameDescription
workspace-structureA dynamic directory tree of the workspace. Excludes common non-essential directories like node_modules and .git. Limited to 4 levels deep.
workspace-logsReal-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