dotnet-coverage-mcp MCP Server
MCP server for .NET coverage: run tests, parse Cobertura, find uncovered branches, append tests.
dotnet-coverage-mcp scores 39 (Limited), licensed MIT and written in C#. It installs as a local process. It declares 34 tools. Filed under Uncategorized. GitHub shows 3 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
39 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
56/100 for listing completeness. Lost points: no README, 23 of 34 tools barely described, short summary.
How quality is graded
Where the 39 comes from
0 + 20 + 2 + 10 + 4 + 3 = 39. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "hyeonu-cha-dotnet-coverage-mcp": { "command": "dnx", "args": [ "dotnet-coverage-mcp" ], "env": { "COVERAGE_MCP_ALLOWED_ROOT": "", "COVERAGE_MCP_DOTNET_TEST_TIMEOUT_MS": "", "COVERAGE_MCP_HANG_TIMEOUT_SECONDS": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
COVERAGE_MCP_ALLOWED_ROOT | Optional | Restrict every tool's filesystem access to this subtree. Recommended for shared environments. When unset, the server logs a warning and accepts any path. |
COVERAGE_MCP_DOTNET_TEST_TIMEOUT_MS | Optional | Override the dotnet test timeout in milliseconds. Default: 600000 (10 minutes). |
COVERAGE_MCP_HANG_TIMEOUT_SECONDS | Optional | Seconds a single test may run before it counts as hung and the run is stopped (VSTest; reported as testRunAborted). Default: 30. Raise it for long-running integration tests. |
Tools34Tool docs quality grade D
All capabilitiesappend_test_codetoolInsert or append C# test code into a test file. Rejects code that is not valid C# member syntax with syntaxError, and a member the class already declares (same name and parameter types) with duplicateMember, leaving the file unchanged; send
belowTargettooldouble
cleanup_sessiontoolRemove session state files and the TestResults- directories the tool created (never the bare TestResults that dotnet test and Visual Studio use). Pass the sessionId you ran with to remove that session's artifacts; omit it to remove the sing
coberturaXmlPathtoolstring
codeToAppendtoolstring
For a source file, per class: constructor dependencies with how to provide each in a test (mock, NullLogger, Options.Create, real instance for sealed/concrete classes, SQLite for a DbContext), public/internal methods with signatures and dec
forceRestoretoolbool
Compare current Cobertura XML against baseline. Shows method-level changes including new and removed methods. Supports sessionId for concurrent isolation.
For a scope (file, folder, .csproj or list), report per file whether it meets targetRate on lines and branches, and for each file below it the fewest methods that close its gap, with uncovered line ranges, uncovered branches and the source
Summarise class/method coverage from the Cobertura XML, sorted worst-first by branch coverage: totalClasses, the 25 worst classes (or topN), and in moreClasses how many were left out. Optional belowTarget/topN/methodsPerClass filters trim t
Get coverage for a single source file from Cobertura XML. Returns allMeetTarget (true when all classes meet the configured targetRate for both line and branch coverage; default 0.8) and the file's path on this machine. Supports sessionId.
get_source_filestoolDiscover .cs files from a file, folder, or .csproj project. For a folder or project, files that are not test targets (entry points, DI registration, generated code, data-only models, test projects) are left out, counted per kind in excluded
About
An MCP (Model Context Protocol) server that exposes .NET code coverage tooling as callable tools for AI assistants
Frequently asked questions
What is dotnet-coverage-mcp MCP Server?
MCP server for .NET coverage: run tests, parse Cobertura, find uncovered branches, append tests.
How do I install dotnet-coverage-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. dotnet-coverage-mcp MCP Server runs locally from the NuGet package dotnet-coverage-mcp with the command dnx dotnet-coverage-mcp.
Is dotnet-coverage-mcp MCP Server free and open source?
Yes. dotnet-coverage-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does dotnet-coverage-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for dotnet-coverage-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does dotnet-coverage-mcp MCP Server provide?
dotnet-coverage-mcp MCP Server provides 34 tools, including append_test_code, belowTarget, cleanup_session, and coberturaXmlPath. See the full tool list for descriptions and parameters.
How is dotnet-coverage-mcp MCP Server's trust score calculated?
dotnet-coverage-mcp MCP Server scores 39 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.