generate-test-code
Generate Vitest test code based on boundary value analysis and equivalence partitioning from JSON specification
Turn a JSON description of a model's fields into Vitest cases that cover the boundaries and equivalence classes.
LABSCO SUMMARY
You describe the field ranges once and get back every boundary and its neighbours, every valid and invalid category member, combined pairwise when the parameter count makes that sensible. The assertions are left to you, so it produces a scaffold rather than a finished suite.
A server with a single tool: give it a JSON specification of fields and value ranges, and it returns Vitest test code built from boundary-value analysis and equivalence partitioning.
Nothing — no account, no key. Runs under Node.
One command — npx testing-mcp-vitest
USE CASES
Describe the accepted ranges and categories, and get the boundary and invalid cases enumerated for you.
Declare each range separately and get cases for both windows plus the gap between them.
Let the generator switch to pairwise combinations instead of writing out the full cross-product.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
generate-test-codeGenerate Vitest test code based on boundary value analysis and equivalence partitioning from JSON specification
BEFORE YOU INSTALL
1 tool when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"testing-mcp-vitest": {
"command": "npx",
"args": [
"testing-mcp-vitest"
]
}
}
}npx testing-mcp-vitest