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
                    
if you are setting up this repo
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
                    
nuke :add-package DotnetCoverageMcp --version 0.3.0
                    

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 solution
  • filter: Optional test filter expression
  • configuration: Build configuration (default: Debug)

get_coverage

Gets code coverage information for a .NET project.

Parameters:

  • projectPath (required): Path to the test project
  • configuration: Build configuration (default: Debug)

search_coverage

Searches for coverage information for specific files or methods.

Parameters:

  • projectPath (required): Path to the test project
  • searchPattern (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 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.

Version Downloads Last Updated
0.3.0 169 2/8/2026
0.2.0 130 2/8/2026
0.1.0 167 2/8/2026