covdbg
com.covdbgv1.3.0更新于 Oct 8, 2026
C++ code coverage on Windows for AI agents. Find uncovered code from PDBs, no rebuild.
概览
让 AI 助手在 Windows x64 上利用现有 PDB 符号测量 C++ 代码覆盖率、找出未覆盖代码并补充针对性测试,无需重新构建。
- 功能
- covdbg-mcp 提供工具,对已构建、带 PDB 调试符号的 Windows x64 可执行文件运行覆盖率测量,按未覆盖行数对文件排序,并读取未覆盖源码片段及其上下文。它可以启动、等待和取消覆盖率运行,以只读方式打开已有的 .covdb 数据库,执行一条只读 SQL 语句,以及合并数据库。guide 工具提供工作流和配置方面的指引。
- 适用场景
- 当你希望助手帮助补齐 Windows C++ 项目的覆盖率缺口时使用:运行测试、查看哪些文件和行未被覆盖、阅读这些代码、添加针对性测试并重新运行以确认缺口已闭合。它适合已经生成 PDB 符号、且不希望为覆盖率而重新构建的项目。
- 运行要求
- Windows x64、已安装 covdbg 1.3.0 或更高版本并加入 PATH,以及带 PDB 调试符号的可执行文件。需要一次性执行 covdbg login,或在 CI 与无界面场景下使用环境变量 COVDBG_PROJECT_TOKEN。目标可执行文件旁需有 .covdbg.yaml,或向 run 传入 config_path。服务器通过 stdio 在本地运行;MCP 捆绑包本身不包含 covdbg。
安装
在 SourceWeft 中
- 打开 控制台中的 covdbg,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
covdbg-mcp
MCP server for covdbg: C++ code coverage on Windows for AI agents. Run tests, find uncovered code, and add targeted tests. No rebuild required.
covdbg measures coverage of the Windows x64 binaries you already build, using their PDB debug information. It works like a debugger: it starts your executable, reads the PDB, and places lightweight probes while the program runs. The MCP server is built into the covdbg executable (since v1.3.0) and is started with covdbg mcp.
This repository holds the MCP registry metadata (server.json, glama.json) and the MCP Bundle manifest (manifest.json) for covdbg. The server itself ships with covdbg.
What an agent can do
- Run coverage on a test executable without rebuilding it.
- Rank files by uncovered lines.
- Read the uncovered code with surrounding context.
- Add a focused test, re-run it, and confirm the gap is closed.
- Query and merge coverage databases (
.covdb) with read-only SQL.
Requirements
- Windows x64
- covdbg 1.3.0 or newer
- An executable with PDB debug symbols (MSVC or any PDB-producing toolchain)
- A one-time
covdbg login, orCOVDBG_PROJECT_TOKENfor CI - A
.covdbg.yamlnext to the target executable, or aconfig_pathpassed torun(see the configuration reference)
Install covdbg
- Installer (recommended): installer.msi. It installs to
%LocalAppData%\Programs\Liasoft\covdbgand adds that directory to your userPATH. - Portable: portable.zip. Extract it anywhere and add the directory to your
PATHyourself.
Then open a new terminal and sign in:
Client setup
The server uses stdio transport. Start it from your project directory, or pass --workspace <dir>.
Claude Code
From the project directory:
Or add a project .mcp.json:
VS Code
.vscode/mcp.json:
Cursor
.cursor/mcp.json:
Claude Desktop (MCP Bundle)
- Download
covdbg.mcpbfrom the latest release. - Open it with Claude Desktop, or drag it into Settings → Extensions.
- Set the following:
- covdbg executable: the path to
covdbg.exe. The default is the MSI install location. - Workspace: your project directory.
- Project token: optional. Leave it empty if you have run
covdbg login.
- covdbg executable: the path to
The bundle does not contain covdbg itself. It launches your installed covdbg.exe, so covdbg updates take effect without a new bundle.
Tools
Limits and behavior
- Run session IDs start with
run-; coverage session IDs start withcovdb-. - At most 8 runs in flight and 32 open coverage sessions.
wait_runblocks for at most 30 seconds. If it reportsstillRunning, call it again.- Run outcomes are
success,no_functions_to_track,license_failure, orerror. - covdbg's exit code does not carry the target's exit code, so check test results separately.
Environment variables
Documentation
Publishing (maintainers)
Keep version in manifest.json and server.json, and the release tag in the server.json package URL, in sync.
-
Build the bundle.
.mcpbignorelimits it tomanifest.json,icon.pngandLICENSE: -
Create the GitHub release
v<version>and uploadcovdbg.mcpbas an asset. -
Put the bundle's hash into
fileSha256inserver.json: -
Publish to the MCP registry. The
com.covdbg/*namespace uses DNS authentication oncovdbg.com: -
Glama picks up
glama.jsonfrom the repository.
License
The metadata in this repository is licensed under the Apache License 2.0. covdbg itself is licensed separately, with Free, Team, and Enterprise plans. See covdbg.com and the Licensing FAQ.
来源:README.md,提交 e081067
工具
0版本历史
1- v1.3.0最新Oct 8, 2026


