XUnitAssured.Mcp 6.42.0

There is a newer version of this package available.
See the version list below for details.
{
  "servers": {
    "XUnitAssured.Mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": ["XUnitAssured.Mcp@6.42.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 6.42.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 6.42.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=XUnitAssured.Mcp&version=6.42.0
                    
nuke :add-package XUnitAssured.Mcp --version 6.42.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@6.19.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": []
    }
  }
}

Option C - From source (contributors)

Build the server from the repository:

cd src/XunitAssured.MCP
dotnet build -c Debug

Then point .mcp.json at it — through the project (relative path, good for a team):

{
  "servers": {
    "xunitassured": {
      "type": "stdio",
      "command": "dotnet",
      "args": ["run", "--no-build", "--project", "src/XunitAssured.MCP/XunitAssured.MCP.csproj"]
    }
  }
}

or at the compiled executable, which starts faster because it skips project resolution:

{
  "servers": {
    "xunitassured": {
      "type": "stdio",
      "command": "<full-path-to-repo>/src/XunitAssured.MCP/bin/Debug/net10.0/XUnitAssured.Mcp.exe",
      "args": []
    }
  }
}

Available Tools (11)

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)

Camunda (1 tool)

Tool Description
generate_camunda_test Reads a BPMN diagram and writes the XUnitAssured.Camunda test skeleton: Deploy, a mock for every job type, user task, message, signal and intermediate timer, StartInstance and the assertions of the path to its end; boundary events, the other paths of an event-based gateway and call activities come as commented alternatives

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"

"Read bpmn/order.bpmn and generate the Camunda test for it"

What the Playwright translator does to your code

This example used to live in the tool's own description, where it rode along in every request. It belongs here instead.

Paste what the Playwright Inspector gives you:

await page.GetByRole(AriaRole.Button, new() { Name = "Click me" }).ClickAsync();

and translate_playwright_to_dsl hands back the DSL call:

.ClickByRole(AriaRole.Button, "Click me")

The boilerplate goes away: using statements, and the browser, context and page creation. What survives is the locator plus action, which is the part the fixture does not already own.

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

Apache-2.0 - 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
6.43.0 207 11/7/2026
6.42.0 105 11/6/2026
6.41.0 109 11/6/2026
6.40.0 103 11/6/2026
6.39.0 113 11/6/2026
6.38.0 106 11/5/2026
6.37.1 98 11/5/2026
6.37.0 99 11/5/2026
6.36.1 122 10/29/2026
6.36.0 125 10/18/2026
6.35.0 115 10/18/2026
6.34.0 105 10/18/2026
6.33.0 110 10/18/2026
6.32.0 105 10/17/2026
6.31.5 110 10/17/2026
6.31.4 102 10/17/2026
6.31.3 106 10/17/2026
6.31.2 113 10/17/2026
6.31.1 115 10/17/2026
6.31.0 113 10/16/2026
Loading failed

New package XUnitAssured.Jsonata: JSONata expressions over the JSON a step returns, with a time limit, a recursion limit and $jwt; ToJsonObject() on the HTTP, Kafka and RabbitMQ results. No breaking changes. Release notes: https://github.com/andrewBezerra/xunit-assured-net/blob/main/docs/releases/6.36.0.md