zod-contract-mock-forge-mcp
About
Generates deterministic mocks and boundary violations from Zod schemas
Explore
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
zod-contract-mock-forge-mcpCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"zod-contract-mock-forge-mcp": {
"server": {
"command": "npx",
"args": [
"-y",
"zod-contract-mock-forge-mcp"
]
}
}
}
}
McpServers
{
"server": {
"command": "npx",
"args": [
"-y",
"zod-contract-mock-forge-mcp"
]
}
}
Transport
"stdio"
Package
"zod-contract-mock-forge-mcp"
Registry
"npm"
Generates deterministic mocks and boundary violations from Zod schemas
An MCP server that turns Zod schemas into mocks, violations, and contract tests — so your AI agent can reason about API contracts without manually crafting payloads.
Zod schemas are runtime code. An AI agent cannot execute them, introspect their constraints, or generate valid/invalid payloads without this layer. The agent also cannot detect when the schema and the OpenAPI docs silently diverged, or whether a schema change breaks existing test fixtures.
npm install -g zod-contract-mock-forge-mcp
Cursor / VS Code (.cursor/mcp.jsonor.vscode/mcp.json)
{ "mcpServers": { "zod-forge": { "command": "zod-contract-mock-forge-mcp" } } }
claude mcp add zod-forge zod-contract-mock-forge-mcp
My schema file is src/schemas/user.ts, exported as UserSchema. My OpenAPI spec is docs/openapi.yaml. 1. introspect_schema — what are the constraints on this schema? 2. generate_mock_variants — give me 10 diverse valid payloads (seed: 42) for CI reproducibility 3. generate_exhaustive_union_violations — test every branch of the role discriminated union 4. detect_schema_drift — has the Zod schema diverged from the OpenAPI docs? 5. evaluate_schema_evolution — does my schema change break any existing mock data?
generate_mock_variants— 3 diverse valid mocks, seeded for CI:
{ "schema_id": "schema_a1b2c3d4", "count": 3, "all_valid": true, "variants": [ { "name": "Colleen Rowe", "age": 37 }, { "name": "Pat Reynolds", "age": 24 }, { "name": "Veronica Konopelski", "age": 45 } ] }
detect_schema_drift— field missing in OpenAPI, extra field in Zod:
{ "drift_count": 2, "drifts": [ { "field_path": "role", "drift_type": "missing_in_openapi", "zod_value": "string", "openapi_value": null }, { "field_path": "email", "drift_type": "missing_in_zod", "zod_value": null, "openapi_value": "string" } ] }
evaluate_schema_evolution— new required field breaks existing mocks:
{ "breaking_change": true, "sample_count": 20, "invalid_mock_count": 20, "failure_reasons": [ { "field_path": "status", "zod_code": "invalid_type", "expected": "string", "received": "undefined", "affected_mock_count": 20 } ] }
npm run build # compile TypeScript → dist/ npm run lint # ESLint npm run format # Prettier --write npm run format:check # Prettier check (used in CI) npm test # Vitest
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Help agents automatically write and test stories for your UI components
Six read-only decision tools for coding agents to assess GitHub bounties, audit agent instructions, diagnose GitHub Actions failures and flakes, and detect MCP tool drift. Remote Streamable HTTP
AI-Safe Code Analysis with 113+ MCP tools for guard validation, memory, workflow, and testing.
fable-discipline is a Claude Code plugin that makes agentic software work follow repeatable working patterns: design before code, verify after edits, separate author from reviewer, preserve verified state between sessions, and report uncertainty honestly.
MCP server that generates production-grade engineering standards (SOLID, testing, architecture, CI/CD) for AI coding assistants
Execute JavaScript code in a modern runtime environment with support for various built-in modules.
Provides a secure JavaScript execution environment for running code snippets.
A server for JavaScript/TypeScript development with intelligent project tooling and testing capabilities.
Execute code securely in isolated sandbox environments using the E2B API.
A powerful Model Context Protocol (MCP) server that supercharges your Python development workflow with AI-powered code review, intelligent test generation, and comprehensive test execution.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



