rog0x/mcp-testing-tools
MCP server for testing: generate test cases, create mock data, mock API responses, analyze test coverage, generate assertions Install: npx @rog0x/mcp-testing-tools
Platform-specific configuration:
{
"mcpServers": {
"mcp-testing-tools": {
"command": "npx",
"args": [
"-y",
"mcp-testing-tools"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
Testing and quality assurance tools for AI agents, exposed via the Model Context Protocol (MCP).
Generate test cases from a function signature. Produces four categories of tests as ready-to-run Jest or Vitest code:
Parameters:
| Name | Type | Required | Description | |------|------|----------|-------------| | signature | string | Yes | Function signature, e.g. async function fetchUser(id: number): Promise<User> | | framework | string | No | jest or vitest (default: vitest) | | module_path | string | No | Import path for the module under test (default: ./module) |
Generate realistic mock data for testing. Supported types:
name, email, address, date, uuid, phone, company, credit_card, ip
Parameters:
| Name | Type | Required | Description | |------|------|----------|-------------| | type | string | Yes | Data type to generate | | count | number | No | Number of items (default: 10, max: 1000) | | locale | string | No | en or es (default: en) | | types | string[] | No | Generate mixed records with multiple field types |
Generate mock API responses from a schema definition. Creates realistic JSON payloads for REST endpoints by inferring values from field names and types.
Parameters:
| Name | Type | Required | Description | |------|------|----------|-------------| | endpoint | string | Yes | API endpoint path | | method | string | No | HTTP method (default: GET) | | fields | object[] | Yes | Field schemas with name, type, optional items, fields, nullable, enum | | count | number | No | Number of records (default: 1, max:
Loading reviews...