covdbg
com.covdbgv1.3.0Updated Oct 8, 2026
C++ code coverage on Windows for AI agents. Find uncovered code from PDBs, no rebuild.
Overview
Lets an AI assistant measure C++ code coverage on Windows x64 binaries using existing PDB symbols, find uncovered code, and add targeted tests without…
- What it does
- covdbg-mcp exposes tools to run coverage on an already-built Windows x64 executable with PDB debug symbols, ranking files by uncovered lines and reading uncovered source segments with context. It can start, wait for, and cancel coverage runs, open existing .covdb databases read-only, run one read-only SQL statement, and merge databases. A guide tool offers workflow and configuration help.
- When to use it
- Use it when you want an assistant to close coverage gaps in a Windows C++ project: run tests, see which files and lines are uncovered, inspect that code, add a focused test, and re-run to confirm the gap is closed. It suits projects that already produce PDB symbols and do not want a rebuild for coverage.
- Requirements
- Windows x64, covdbg 1.3.0 or newer installed and on PATH, and an executable with PDB debug symbols. A one-time covdbg login, or the COVDBG_PROJECT_TOKEN environment variable for CI or headless use. A .covdbg.yaml next to the target executable or a config_path passed to run. The server runs locally over stdio; the MCP bundle does not include covdbg itself.
Installation
In SourceWeft
- Open covdbg in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit e081067
Tools
0Version history
1- v1.3.0LatestOct 8, 2026


