Skip to main content

MCP server for C++ debugging, supporting launch, attach, dump analysis, and interactive debugging operations

Project description

MCP Debugger

基于MCP协议的C++调试器,为AI大模型提供调试C++程序的能力。

快速开始

1. 安装依赖

安装 uv 包管理器:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

安装项目依赖:

uv sync
uv tool install mcp-cpp-debugger

3. 配置MCP客户端

在MCP客户端(Claude CLI / Cursor / VS Code Copilot / Visual Studio)中添加配置。

支持两种传输方式:

方式一:stdio(推荐)

客户端自动启动和管理调试器进程,通过标准输入输出通信。

配置示例:

{
  "mcpServers": {
    "mcp-cpp-debugger": {
      "command": "uvx mcp-cpp-debugger",
      "args": ["--transport", "stdio"]
    }
  }
}

优点:

  • ✅ 自动管理进程生命周期
  • ✅ 无需手动启动服务器
  • ✅ 无端口冲突问题

方式二:streamable-http

手动启动服务器进程,客户端通过 HTTP 连接。

第一步:启动服务器

mcp-cpp-debugger --transport http --port 8999
# 或使用简写
mcp-cpp-debugger -p 8999

第二步:配置客户端

{
  "mcpServers": {
    "mcp-cpp-debugger": {
      "url": "http://localhost:8999/mcp"
    }
  }
}

优点:

  • ✅ 可查看服务器日志
  • ✅ 适合开发调试
  • ✅ 支持多客户端连接

注意: 默认端口为 8999,可通过 --port-p 参数修改。

4. 开始调试

在对话中直接向AI描述调试需求,AI将自动调用调试器完成操作。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_cpp_debugger-0.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_cpp_debugger-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_cpp_debugger-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_cpp_debugger-0.1.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for mcp_cpp_debugger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 91390fe180848097ee5f700173abd015795d0cdf43d857c33ad2f5a9c9c1f2ed
MD5 ce5401d1a3711665a5b357941bda8315
BLAKE2b-256 06e976332f6f8752313025d949edf99d1667a2d89f1b878e1ac825329d511bfd

See more details on using hashes here.

File details

Details for the file mcp_cpp_debugger-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_cpp_debugger-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31ed8e41ff0869391e0ebeadb9311f4c6879284d062e23f8bc187a0ef0ed9d4c
MD5 9d19c6a0115ff3ddd2ac89bcecc4dce2
BLAKE2b-256 ace11496a8c7f35370454420d6e9543ffb2f0b13dbb6c4ad785fbe7aa5e6a735

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page