Skip to main content

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@latest

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将自动调用调试器完成操作。

Metadata

Release files for mcp-cpp-debugger 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-cpp-debugger 0.1.2
File Size Uploaded Provenance
mcp_cpp_debugger-0.1.2.tar.gz 11.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-cpp-debugger 0.1.2
File Interpreter ABI Platform
mcp_cpp_debugger-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / mcp_cpp_debugger-0.1.2.tar.gz

Download URL mcp_cpp_debugger-0.1.2.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
69bbfa6cb5912f8eda3c179a517610818dbcb17a31b0a94366d92b987ab031ab
BLAKE2b-256 checksum
How to use checksums
77cece9069b184ce10e63c7a2d2bac84ce7adf4ecbc61a1890d3e51f84defe0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / mcp_cpp_debugger-0.1.2-py3-none-any.whl

Download URL mcp_cpp_debugger-0.1.2-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec5ad89a35901c2a9e249f306611968668b49c65330246d3a8948533eb0a4566
BLAKE2b-256 checksum
How to use checksums
9d0d965e73e313057d6399e6ad0b982298ab28126dee8f8c84ada563b167a2e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for mcp-cpp-debugger 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page