io.github.vola-trebla/zod-contract-mock-forge-mcp
MCP server for deterministic mock generation and API contract scaffolding using Zod schemas
Versions
0.1.1latestTools 10
introspect_schema Convert a Zod schema string to JSON Schema for LLM understanding.
read_schema_from_file Read a Zod schema directly from a TypeScript or JavaScript file.
generate_valid_mock Generate valid mock data from a Zod schema string.
generate_boundary_violations Generate intentionally invalid payloads based on a Zod schema — for negative testing.
generate_exhaustive_union_violations Generate violation payloads for every branch of a z.union() or z.discriminatedUnion() schema.
generate_mock_variants Generate N structurally valid but value-diverse mocks from a Zod schema — for property-based testing.
scaffold_api_contract_test Generate an API contract test or mock boilerplate for Playwright, Jest, Vitest, or MSW.
suggest_contract_fix Validate a JSON payload against a Zod schema and suggest fixes for each violation.
detect_schema_drift Compare a Zod schema in a TypeScript file against an OpenAPI spec — finds silent divergence.
evaluate_schema_evolution Detect breaking changes when a Zod schema is tightened — before tests run.
Permissions 2
filesystem low shell high