Testing logo

Testing

Test generation, mocks, coverage analysis for AI agents

Install Testing

Run the project’s own setup commands, in order.

Setup steps from the project

testing installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install
    

Overview

Tools19

What Testing lets your agent do. Expand a tool for its parameters.

Self-reported~220 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 88d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit8mo agoMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.

From the project README

@rog0x/mcp-testing-tools

Testing and quality assurance tools for AI agents, exposed via the Model Context Protocol (MCP).

Tools

generate_tests

Generate test cases from a function signature. Produces four categories of tests as ready-to-run Jest or Vitest code:

  • Happy path -- valid inputs, expected outputs
  • Edge cases -- empty strings, zero values, null parameters
  • Error cases -- missing arguments, wrong types
  • Boundary values -- extreme numbers, large arrays, NaN

Parameters:

NameTypeRequiredDescription
signaturestringYesFunction signature, e.g. async function fetchUser(id: number): Promise<User>
frameworkstringNojest or vitest (default: vitest)
module_pathstringNoImport path for the module under test (default: ./module)

generate_mock_data

Generate realistic mock data for testing. Supported types:

name, email, address, date, uuid, phone, company, credit_card, ip

Parameters:

NameTypeRequiredDescription
typestringYesData type to generate
countnumberNoNumber of items (default: 10, max: 1000)
localestringNoen or es (default: en)
typesstring[]NoGenerate mixed records with multiple field types

generate_api_mock

Generate mock API responses from a schema definition. Creates realistic JSON payloads for REST endpoints by inferring values from field names and types.

Parameters:

NameTypeRequiredDescription
endpointstringYesAPI endpoint path
methodstringNoHTTP method (default: GET)
fieldsobject[]YesField schemas with name, type, optional items, fields, nullable, enum
countnumberNoNumber of records (default: 1, max: 100)
status_codenumberNoHTTP status code (default: 200)
wrap_in_envelopebooleanNoWrap in { success, data, meta } (default: true)

analyze_test_coverage

Analyze source code and test code to find untested functions. Prioritizes suggestions by:

  • Export status (public API surface)
  • Cyclomatic complexity estimate
  • Parameter count
  • Async functions (more error paths)

Parameters:

NameTypeRequiredDescription
source_codestringYesSource code to analyze
test_codestringYesExisting test code
source_file_namestringNoFilename label (default: source.ts)

generate_assertions

Generate detailed assertion code by comparing expected and actual values. Performs deep diff and produces per-field assertions with descriptive comments.

Parameters:

NameTypeRequiredDescription
expectedstringYesExpected value as JSON string
actualstringYesActual value as JSON string
labelstringNoDescription for the comparison
frameworkstringNojest, vitest, or chai (default: jest)
deepbooleanNoDeep equality for objects/arrays (default: true)

Setup

Terminal
npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "testing-tools": {
      "command": "node",
      "args": ["path/to/mcp-testing-tools/dist/index.js"]
    }
  }
}

License

MIT

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Testing

testing is an MCP server that provides test generation and quality-assurance tools for AI agents. It generates Jest or Vitest tests, realistic mock data, API response payloads, assertion code, and coverage analysis. Developers can use it to explore edge cases, error paths, boundary values, and untested functions.

Yes, it generates ready-to-run Jest or Vitest test cases from a function signature. The output covers happy paths, edge cases, error cases, and boundary values. Vitest is the default framework, and you can specify the module import path with the optional module_path parameter.

Use generate_mock_data to create realistic values for names, emails, addresses, dates, UUIDs, phone numbers, companies, credit cards, and IP addresses. You can request up to 1,000 items, choose an English or Spanish locale, or generate mixed records with multiple field types.

Yes, generate_api_mock creates realistic JSON responses from an endpoint, HTTP method, and field schema. It supports nested fields, arrays, nullable values, and enums, with up to 100 records. Responses can use a success, data, and meta envelope, and the status code is configurable.

analyze_test_coverage compares source code with existing test code and identifies untested functions. It prioritizes suggestions using export status, estimated cyclomatic complexity, parameter count, and whether functions are asynchronous, helping focus testing on public and higher-risk code paths.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTesting AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/testing?style=directory)](https://allmcps.com/mcp/testing)
HTML Embed
<a href="https://allmcps.com/mcp/testing"><img src="https://allmcps.com/api/badge/testing?style=directory" alt="Testing on AllMCPs" /></a>