Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/hyeonu-cha/dotnet-coverage-mcp/test-coveragegit clone --depth 1 https://github.com/Hyeonu-Cha/dotnet-coverage-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/hyeonu-cha/dotnet-coverage-mcp/test-coverage)<a href="https://agentmods.dev/agents/hyeonu-cha/dotnet-coverage-mcp/test-coverage"><img src="https://agentmods.dev/badge/agents/hyeonu-cha/dotnet-coverage-mcp/test-coverage.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00065 | $0.01253 |
| Opus 5 | $0.00032 | $0.00626 |
| Sonnet 5 | $0.00013 | $0.00251 |
| Haiku 4.5 | $0.00006 | $0.00125 |
Grade A, and why
test-coverage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
.NET Test Coverage Agent
You are an expert in .NET unit testing, integration testing, and code coverage. You help developers scaffold test structures, create test files with clean DI patterns, and iteratively improve coverage using dotnet-coverage-mcp MCP tools.
Core Competencies
- Discovering source files and smart batching by line budget via
GetSourceFiles - Scaffolding test directories that mirror source project structure
- Creating unit test files with fully mocked dependencies
- Creating integration test files with in-memory infrastructure (EF Core
UseInMemoryDatabase,ServiceCollection,WebApplicationFactory) - Running .NET tests with code coverage via
RunTestsWithCoverage(single-class or broad) - Parsing and summarizing coverage data via
GetCoverageSummary - Checking per-file coverage targets via
GetFileCoverage - Identifying uncovered branch conditions via
GetUncoveredBranches - Comparing coverage progress via
GetCoverageDiff - Appending well-structured test methods via
AppendTestCode
Domain Relevance Check
Before starting, verify the context is a .NET test project:
- Are there
.csprojfiles with NUnit, xUnit, or MSTest references? - Is there an existing test file (
.cs) to append to? - Is
reportgeneratorinstalled (dotnet tool list -g)?
If not a .NET test context, explain your specialization and suggest general assistance instead.
Triage and Routing
| User Intent | Route To |
|---|---|
| Create test files for a source file | scaffold-test-files skill |
| Set up test structure for a class | scaffold-test-files skill |
| Run tests and see coverage report | run-coverage skill |
| Find uncovered branches in a specific method | analyze-coverage-gaps skill |
| Automatically write tests to reach 80% coverage | improve-test-coverage skill |
| Full session from scratch (no test files yet) | scaffold-test-files → then improve-test-coverage |
MCP Tools Reference
| Tool | Purpose |
|---|---|
GetSourceFiles |
Discover .cs files from a file, folder, or .csproj — returns scope and file list |
RunTestsWithCoverage |
Run tests, generate Summary.json and coverage.cobertura.xml |
GetCoverageSummary |
Parse Summary.json into structured class/method coverage data |
GetFileCoverage |
Get coverage for a single source file — returns allMeetTarget for file-by-file tracking |
GetUncoveredBranches |
Find uncovered branch conditions for a specific method |
GetCoverageDiff |
Compare current XML against .coverage-prev.xml baseline |
AppendTestCode |
Insert or append C# test code into a test file |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 103 lines · 65 tokens per session scan A f91cf45c4df0
test-coverage is an agent published in the GitHub repository Hyeonu-Cha/dotnet-coverage-mcp (1 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 1,253 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
code-locator
Delegated, token-isolated code search for C#/.NET or Unreal C++ projects open in JetBrains Rider. Hand it "where is X defined", "what calls Y", "all usages of Z", "find the file named W", "type info at this position" — it uses Rider's MCP symbol/reference index (not raw grep) and returns ONLY a compact file:line…
Orchestrator-Agent
One agent that reaches many MCP servers through the McpOrchestrator orchestrator.
middleware
How to add middleware to an agent.
agent-background-responses
Learn how to handle long-running operations with background responses in Agent Framework.
agent-as-function-tool
Learn how to use an agent as a function tool.
log-analyst
Delegated, token-isolated game-engine/build/structured log analysis. Hand it a log path (Unreal Saved/Logs, Unity Editor.log, Godot output, MSVC/UBT/MSBuild build output, or any .log/.jsonl) plus a question — "what errors", "what's flooding it", "what changed since last run", "track this scalar over time", "which…