Debugging MCP Server
Enables LLMs to automatically diagnose coding errors through codebase search, test execution, and live debugger integration (DAP/V8 CDP). Provides a secure, policy-gated environment for investigating failures while preventing destructive operations.
README
Debugging MCP Server
A Model Context Protocol (MCP) server for structured debugging assistance. This server exposes tools, resources, and prompts that help an LLM host automatically diagnose errors, search the codebase, and correlate failures.
Features
This server provides a strict, safe, and context-rich environment for an LLM to investigate coding issues.
🛠️ Tools (Actions)
initialize_session: Auto-detects the framework, log paths, test runners, and tech stack.search_codebase: Fast search usingripgrep(fallback to fs walk).run_tests: Executes the workspace's test suite (requires explicitconfirm=trueflag for safety).get_recent_commits: Wrapsgitfor contextual history.- Debugger Integration (DAP & V8 CDP):
connect_dap: Connects to a running debugger. Automatically detects and switches between DAP (TCP) and V8 Inspector (WebSocket) protocols!inspect_runtime_state: Retrieves live threads, call stack, scopes, and variables.step_debugger: Controls execution flow (continue,next,stepIn,stepOut) while preserving safe execution synchronization.evaluate_expression: Evaluates expressions safely (restricted tohoverandwatchcontexts).disconnect_dap: Cleanly disconnects from the remote session.
📁 Resources (Context)
workspace://structure: A dynamic map of the repository structure.workspace://logs: Tail common workspace log files.
💬 Prompts (Workflows)
debug-error: Orchestrates the LLM to use the tools to find root causes of an error.explain-stacktrace: Analyzes a provided stack trace using codebase search.correlate-failure: Links recent commits to a current failure state.
Installation & Build
# Install dependencies
npm install
# Build the TypeScript code
npm run build
Usage
You can run the server directly via stdio:
npm start
Using the MCP Inspector
To test the server locally, use the official MCP Inspector:
npm run inspect
Security & Architecture
This server is built with safety in mind. All command execution (like run_tests) is gated by a Policy Layer (src/server/policy.ts) that guarantees:
- No destructive shell commands can be run.
- File access is strictly locked to the workspace root.
- DAP code evaluation is restricted from executing arbitrary mutations (no Repl context).
- Safety flags (like
confirm: true) are required for active agents.
For deeper technical details and usage examples, refer to the GUIDE.md.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.