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

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.2.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.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_cpp_debugger-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 69bbfa6cb5912f8eda3c179a517610818dbcb17a31b0a94366d92b987ab031ab
MD5 fd32fbd6b64c3241f5c96e5fed4db2ef
BLAKE2b-256 77cece9069b184ce10e63c7a2d2bac84ce7adf4ecbc61a1890d3e51f84defe0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_cpp_debugger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec5ad89a35901c2a9e249f306611968668b49c65330246d3a8948533eb0a4566
MD5 4cabc870e5f83a65982429794ef76356
BLAKE2b-256 9d0d965e73e313057d6399e6ad0b982298ab28126dee8f8c84ada563b167a2e1

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