Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Debugging Server

БесплатноНе проверен

Enables LLMs to automatically diagnose coding errors through codebase search, test execution, and live debugger integration (DAP/V8 CDP). Provides a secure, pol

GitHubEmbed

Описание

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

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 using ripgrep (fallback to fs walk).
  • run_tests: Executes the workspace's test suite (requires explicit confirm=true flag for safety).
  • get_recent_commits: Wraps git for 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 to hover and watch contexts).
    • 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:

  1. No destructive shell commands can be run.
  2. File access is strictly locked to the workspace root.
  3. DAP code evaluation is restricted from executing arbitrary mutations (no Repl context).
  4. Safety flags (like confirm: true) are required for active agents.

For deeper technical details and usage examples, refer to the GUIDE.md.

from github.com/luischang07/debugging-mcp

Установить Debugging Server в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install debugging-mcp-server

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add debugging-mcp-server -- npx -y github:luischang07/debugging-mcp

Пошаговые гайды: как установить Debugging Server

FAQ

Debugging Server MCP бесплатный?

Да, Debugging Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Debugging Server?

Нет, Debugging Server работает без API-ключей и переменных окружения.

Debugging Server — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Debugging Server в Claude Desktop, Claude Code или Cursor?

Открой Debugging Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Debugging Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development