XUnitAssured.Mcp 5.0.0

{
  "servers": {
    "XUnitAssured.Mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": ["XUnitAssured.Mcp@5.0.0", "--yes"]
    }
  }
}
                    
This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's .vscode/mcp.json settings file.
dotnet tool install --global XUnitAssured.Mcp --version 5.0.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 XUnitAssured.Mcp --version 5.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=XUnitAssured.Mcp&version=5.0.0
                    
nuke :add-package XUnitAssured.Mcp --version 5.0.0
                    

XUnitAssured.Mcp

MCP (Model Context Protocol) server for AI-assisted test generation with the XUnitAssured.Net framework. Integrates with GitHub Copilot Chat, VS Code, Visual Studio, and any MCP-compatible AI client via stdio transport.

Installation

Requires .NET 10 SDK or later.

Add to your .mcp.json (repo root, ~/.mcp.json, or .vscode/mcp.json):

{
  "servers": {
    "xunitassured": {
      "type": "stdio",
      "command": "dnx",
      "args": ["XUnitAssured.Mcp@5.0.0", "--yes"]
    }
  }
}

Restart your IDE - the tools will be available immediately.

Option B - Via dotnet tool

dotnet tool install --global XUnitAssured.Mcp

Then configure .mcp.json:

{
  "servers": {
    "xunitassured": {
      "type": "stdio",
      "command": "xunitassured-mcp",
      "args": []
    }
  }
}

Available Tools (10)

Playwright (3 tools)

Tool Description
translate_playwright_to_dsl Translates Playwright C# Inspector code to XUnitAssured fluent DSL
translate_playwright_to_test Generates a complete Given/When/Then test from Playwright code
list_xunitassured_dsl_methods Lists all Playwright DSL methods with Playwright equivalents

HTTP (3 tools)

Tool Description
generate_http_test Scaffolds an HTTP test method (GET, POST, PUT, DELETE)
generate_http_crud_tests Generates 5 CRUD test methods for a REST resource
list_http_dsl_methods Lists all HTTP DSL methods (request, auth, assert)

Kafka (4 tools)

Tool Description
generate_kafka_produce_test Scaffolds a Kafka produce test method
generate_kafka_consume_test Scaffolds a Kafka consume test method
generate_kafka_produce_consume_test Generates a round-trip produce/consume test
list_kafka_dsl_methods Lists all Kafka DSL methods (produce, consume, auth, assert)

Usage Examples

In GitHub Copilot Chat (Agent mode):

"Generate CRUD tests for /api/products with fields name:string, price:decimal"

"Translate this Playwright code to XUnitAssured DSL"

"Generate a Kafka produce-consume round-trip test for the orders topic"

"List all HTTP DSL methods"

Supported Clients

Client Support
GitHub Copilot Chat (VS / VS Code) Agent mode
GitHub Copilot Coding Agent via copilot-setup-steps.yml
Claude Desktop via claude_desktop_config.json
Cursor via MCP settings
Any MCP-compatible client stdio transport

License

MIT - see LICENSE.md

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
5.0.0 74 3/3/2026