Test generation, mocks, coverage analysis for AI agents
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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: 100) |
status_code | number | No | HTTP status code (default: 200) |
wrap_in_envelope | boolean | No | Wrap in { success, data, meta } (default: true) |
Analyze source code and test code to find untested functions. Prioritizes suggestions by:
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
source_code | string | Yes | Source code to analyze |
test_code | string | Yes | Existing test code |
source_file_name | string | No | Filename label (default: source.ts) |
Generate detailed assertion code by comparing expected and actual values. Performs deep diff and produces per-field assertions with descriptive comments.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
expected | string | Yes | Expected value as JSON string |
actual | string | Yes | Actual value as JSON string |
label | string | No | Description for the comparison |
framework | string | No | jest, vitest, or chai (default: jest) |
deep | boolean | No | Deep equality for objects/arrays (default: true) |
Add to your claude_desktop_config.json:
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/testing)<a href="https://allmcps.com/mcp/testing"><img src="https://allmcps.com/api/badge/testing?style=directory" alt="Testing on AllMCPs" /></a>