DotnetCoverageMcp 0.3.0
dotnet tool install --global DotnetCoverageMcp --version 0.3.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local DotnetCoverageMcp --version 0.3.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DotnetCoverageMcp&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package DotnetCoverageMcp --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DotnetCoverageMcp
A Model Context Protocol (MCP) server that provides .NET testing and code coverage tools for AI-assisted development.
Installation
As a Global .NET Tool
dotnet tool install -g DotnetCoverageMcp
From Local Source
./install-tool.sh
Usage
Run the MCP server in stdio mode:
dotnet-coverage-mcp --stdio
MCP Tools
This server provides the following tools:
run_dotnet_tests
Runs .NET tests in a specified project or solution and returns detailed results.
Parameters:
projectPath(required): Path to the test project or solutionfilter: Optional test filter expressionconfiguration: Build configuration (default: Debug)
get_coverage
Gets code coverage information for a .NET project.
Parameters:
projectPath(required): Path to the test projectconfiguration: Build configuration (default: Debug)
search_coverage
Searches for coverage information for specific files or methods.
Parameters:
projectPath(required): Path to the test projectsearchPattern(required): Pattern to search for (file name or method name)
Configuration with MCP Clients
VS Code (.mcp.json)
Add a .mcp.json file to your workspace root:
{
"servers": {
"dotnet-coverage": {
"type": "stdio",
"command": "dotnet-coverage-mcp",
"args": ["--stdio"]
}
}
}
Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"dotnet-coverage": {
"command": "dotnet-coverage-mcp",
"args": ["--stdio"]
}
}
}
Requirements
- .NET 10.0 SDK or later
- For coverage features: coverlet.collector package in test projects
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.