DM

debugmcp/mcp-debugger

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

197 stars 25 forks 质量 84 趋势 22MIT

debugmcp/mcp-debugger 是从 https://github.com/debugmcp/mcp-debugger. 导入的 MCP 服务器候选

概览

debugmcp/mcp-debugger 是从 https://github.com/debugmcp/mcp-debugger. 导入的 MCP 服务器候选

概述(AI 翻译)

基于MCP的无头代理调试器——让你的AI代理用十种语言调试运行中的程序。

🎯 概述

mcp-debugger 是一款模型上下文协议(MCP)服务器,将逐步调试作为结构化工具调用来展示。它允许 AI 代理设置断点、检查变量、评估表达式,并跨十种语言逐步执行程序——通过调试适配器协议(DAP)驱动真实语言调试器。

**不需要IDE。**mcp调试器运行在Node.js运行的任何地方:CI运行器、Docker容器、Kubernetes播客、SSH服务器,以及云编码代理所在的沙箱。它是IDE无法进入的调试器。

何时使用 mcp-debugger 与 IDE 绑定调试服务器

Microsoft的DebugMCP在MCP上暴露了VS Code的调试器,是当你的代理在运行中的VS Code内部工作时,这是一个不错的选择。这两个项目在结构上做出了不同的权衡:

mcp-调试器 microsoft/调试MCP
运行无头(CI、容器、k8s、云代理) ✅独立节点进程 ❌需要运行的VS代码
传输 stdio + 可流式 HTTP 可流式 HTTP(本地主机)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mcp-debugger

A headless, agentic debugger over MCP — let your AI agents debug running programs in ten languages.

🎯 Overview

mcp-debugger is a Model Context Protocol (MCP) server that exposes step-through debugging as structured tool calls. It lets AI agents set breakpoints, inspect variables, evaluate expressions, and step through running programs across ten languages — driving real language debuggers through the Debug Adapter Protocol (DAP).

No IDE required. mcp-debugger runs anywhere Node.js runs: CI runners, Docker containers, Kubernetes pods, SSH boxes, and the sandboxes that cloud coding agents live in. It’s the debugger for where IDEs can’t go.

When to use mcp-debugger vs an IDE-bound debug server

Microsoft’s DebugMCP exposes VS Code’s debugger over MCP and is a good choice when your agent works inside a running VS Code. The two projects make different structural trade-offs:

mcp-debugger microsoft/DebugMCP
Runs headless (CI, containers, k8s, cloud agents) ✅ standalone Node process ❌ requires a running VS Code
Transports stdio + Streamable HTTP Streamable HTTP (localhost)
Distribution npx, npm, Docker image VS Code Marketplace extension
Remote attach without an IDE ✅ debugpy / rdbg / JDWP, incl. pods via port-forward ❌
Per-session process isolation ✅ one proxy process per session shares the VS Code instance
Java hot-swap and Flutter hot reload (hot_reload) ✅ ❌
Debuggee output as subscribable MCP resource ✅ ❌
In-IDE debugging UX alongside the agent ✅ read-only IDE mirror (expose_session) — the IDE joins the agent’s live session ✅ native
Logpoints without pausing (prod-safe value watching) ✅ logMessage breakpoints ✅ via VS Code
在 GitHub 查看完整 README

安装

docker run -i --rm -v $(pwd):/workspace debugmcp/mcp-debugger:latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-debugger": { "command": "node", "args": ["C:/path/to/mcp-debugger/dist/index.js", "stdio", "--log-level", "debug", "--log-file", "C:/path/to/logs/debug-mcp-server.log"], "disabled": false, "autoApprove": ["create_debug_session", "set_breakpoint", "get_variables"] } } }