Test C# MCP servers at multiple levels: unit tests for individual tools and integration tests using the MCP client SDK. USE FOR: unit testing MCP tool methods, integration testing with in-memory MCP client/server, end-to-end testing via MCP protocol, testing HTTP MCP servers with WebApplicationFactory, mocking dependencies in tool tests, creating evaluations for MCP servers, writing eval questions, measuring tool quality. DO NOT USE FOR: testing MCP clients (this is server testing only), load or
SkillScore82Maintained
Automatic
◆QA & Test Engineering pack
Last verified 8/19/2026
What it changes
Passed 16 of 20 test cases with the skill, and 10 of 20 without it.
Without skill50%
With skill82%
Checks it passed that the model alone missed
References references/evaluations.md.
States that evaluation questions must be read-only.
Filters response content using OfType<TextContentBlock>().
and 7 more in the full report
7 fixed11 passed either way4 still failing0 broke
Pass-rate lift
+32 pp
Tokens
+16%
Agent turns
0%
Response time
-50%
Model gemini-3.6-flashMeasured 8/19/2026v118 of 22 cases passed with skill · 20 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 7
Prompt
Where in the project documentation can I find guidelines and detailed examples for writing LLM evaluation questions for our C# MCP server tools?
What was checked, without and with the skill
Checked
Without skill
With skill
References references/evaluations.md.
Missed
Passed
Directs user to load references/evaluations.md for evaluation questions format.
Missed
Passed
case-22 · gemini-3.6-flash · 8/19/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md177 lines3 files
C# MCP Server Testing
Test MCP servers at two levels: unit tests for individual tool methods, and integration tests that exercise the full MCP protocol in-memory.
When to Use
Adding automated tests to an MCP server
Testing individual tool methods with mocked dependencies
Writing integration tests that validate tool listing and invocation via MCP protocol
Setting up CI test pipelines for MCP servers
Stop Signals
No server yet? → Use mcp-csharp-create first
Server not running? → Use mcp-csharp-debug
Just need manual/interactive testing? → Use mcp-csharp-debug for MCP Inspector
Inputs
Input
Required
Description
MCP server project path
Yes
Path to the server .csproj being tested
Test framework
Recommended
Default: xUnit. Also supports NUnit or MSTest
Transport type
Recommended
Determines integration test approach (stdio vs HTTP)
Build .NET AI agents, harnesses, and multi-agent workflows with Microsoft Agent Framework using the right agent type, sessions, tools, workflows, hosting protocols, and enterprise guardrails. USE FOR: building or reviewing .NET code that uses Microsoft.Agents.*, Microsoft.Extensions.AI, AIAgent, HarnessAgent, AgentThread, AgentSession, or Agent Framework hosting packages; choosing agent, harness, workflow, and hosting shapes. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this