# io.github.vola-trebla/zod-contract-mock-forge-mcp (npm · zod-contract-mock-forge-mcp)

MCP server for deterministic mock generation and API contract scaffolding using Zod schemas

- Trust score: 66/100 (medium)
- Change this week: +20
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `zod-contract-mock-forge-mcp`: 66/100 (this document), [markdown](https://verifymcp.io/servers/vola-trebla-zod-contract-mock-forge-mcp/zod-contract-mock-forge-mcp.md), [page](https://verifymcp.io/servers/vola-trebla-zod-contract-mock-forge-mcp/zod-contract-mock-forge-mcp)

## Channel facts

- Registry: `npm`
- Package: `zod-contract-mock-forge-mcp`
- Version: `0.2.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (102 of 106), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (102 of 106), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 75 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 77/100
  - AI-judged instruction clarity (excellent).
  - Tool/resource definitions use about 960 tokens (~96/item across 10 items; 10 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### Claude

```bash
claude mcp add vola-trebla-zod-contract-mock-forge-mcp -- npx -y zod-contract-mock-forge-mcp
```

### Codex

```bash
codex mcp add vola-trebla-zod-contract-mock-forge-mcp -- npx -y zod-contract-mock-forge-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "vola-trebla-zod-contract-mock-forge-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "zod-contract-mock-forge-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add vola-trebla-zod-contract-mock-forge-mcp --command npx --arg -y --arg zod-contract-mock-forge-mcp
```

### Hermes

```yaml
mcp_servers:
  vola-trebla-zod-contract-mock-forge-mcp:
    command: "npx"
    args: ["-y", "zod-contract-mock-forge-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "vola-trebla-zod-contract-mock-forge-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "zod-contract-mock-forge-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 66, +40)

- [security regression] Provenance: unverified → fail
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Install scripts: unverified → pass
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet.
- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Security disclosure: fail → unverified
- [functional regression] Capabilities: pass → unverified
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] License: unverified → pass
- [functional improvement] Schema quality: unverified → excellent
- [functional] Licence: MIT

### 2026-08-01 (score 26, +19)

- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional regression] Dependency health: partial → unverified
- [functional improvement] Tool coverage: unverified → 100
- [functional improvement] MCP protocol: unverified → pass

### 2026-07-31 (score 7, −39)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-27 (score 46)

First indexed and scored.

## MCP tools (10)

### `introspect_schema` (~63 tokens)

Convert a Zod schema string to JSON Schema for LLM understanding. Use to answer: what is the structure and constraints of this schema?

Input parameters:

- `schema_code` (string, required): Zod schema code (e.g., 'z.object({ name: z.string() })')

### `read_schema_from_file` (~85 tokens)

Read a Zod schema directly from a TypeScript or JavaScript file. Use to answer: what schema is defined in this file?

Input parameters:

- `export_name` (string): Name of the exported schema variable. If omitted, extracts the first Zod expression found.
- `file_path` (string, required): Absolute path to the .ts or .js file containing the Zod schema

### `generate_valid_mock` (~64 tokens)

Generate valid mock data from a Zod schema string. Use to answer: what does a valid payload for this schema look like?

Input parameters:

- `count` (integer): Number of mocks to generate (default: 1)
- `schema_code` (string, required): Zod schema code

### `generate_boundary_violations` (~53 tokens)

Generate intentionally invalid payloads based on a Zod schema — for negative testing. Use to answer: what invalid inputs should I test against this API?

Input parameters:

- `schema_code` (string, required): Zod schema code

### `generate_exhaustive_union_violations` (~80 tokens)

Generate violation payloads for every branch of a z.union() or z.discriminatedUnion() schema. Use when generate_boundary_violations only covers one union variant and you need full branch coverage.

Input parameters:

- `schema_code` (string, required): Zod schema code — must evaluate to a z.union() or z.discriminatedUnion()

### `generate_mock_variants` (~112 tokens)

Generate N structurally valid but value-diverse mocks from a Zod schema — for property-based testing. Use when generate_valid_mock is too deterministic and you need varied inputs to surface edge cases. Supply seed for reproducible output in CI.

Input parameters:

- `count` (integer): Number of mock variants to generate (default: 5, max: 50)
- `schema_code` (string, required): Zod schema code
- `seed` (integer): Seed for reproducible output — omit for random variants each call

### `scaffold_api_contract_test` (~132 tokens)

Generate an API contract test or mock boilerplate for Playwright, Jest, Vitest, or MSW. Use to answer: how do I write a test that validates this API endpoint against this schema?

Input parameters:

- `base_url` (string): Base URL of the API
- `endpoint` (string, required): API endpoint path (e.g., /api/users)
- `framework` (string): Testing framework to generate code for
- `method` (string): HTTP method
- `schema_code` (string, required): Zod schema code for the response body
- `test_name` (string): Name of the generated test

### `suggest_contract_fix` (~68 tokens)

Validate a JSON payload against a Zod schema and suggest fixes for each violation. Use to answer: why does this payload fail validation, and how do I fix it?

Input parameters:

- `payload` (string, required): JSON string of the failing payload
- `schema_code` (string, required): Zod schema code

### `detect_schema_drift` (~165 tokens)

Compare a Zod schema in a TypeScript file against an OpenAPI spec — finds silent divergence. Use when Zod and OpenAPI docs are maintained separately and may have drifted apart. Reports missing fields, extra fields, type conflicts, and required/optional mismatches.

Input parameters:

- `openapi_file_path` (string, required): Absolute path to the OpenAPI spec (.yaml, .yml, or .json)
- `openapi_schema_name` (string): Schema name in components.schemas to compare against. Defaults to schema_export_name.
- `schema_export_name` (string, required): Name of the exported Zod schema variable (e.g. "UserSchema")
- `zod_file_path` (string, required): Absolute path to the .ts or .js file containing the Zod schema

### `evaluate_schema_evolution` (~138 tokens)

Detect breaking changes when a Zod schema is tightened — before tests run. Generates mocks from the old schema, validates them against the new schema, and reports exactly which fields and constraints now reject previously valid data. Use when you changed a schema and want to know if existing test fixtures will break.

Input parameters:

- `old_schema_content` (string): Full content of the old schema file. Omit to automatically retrieve the last committed version via git show HEAD.
- `schema_export_name` (string, required): Name of the exported Zod schema variable
- `schema_file_path` (string, required): Absolute path to the TypeScript file containing the updated Zod schema

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/vola-trebla-zod-contract-mock-forge-mcp/zod-contract-mock-forge-mcp#diagnostics

## Score history

- 2026-08-03: 66
- 2026-08-02: 66
- 2026-08-01: 26
- 2026-07-31: 7
- 2026-07-30: 46
- 2026-07-28: 46
- 2026-07-27: 46

## Links

- npm package: https://www.npmjs.com/package/zod-contract-mock-forge-mcp
- Socket report: https://socket.dev/npm/package/zod-contract-mock-forge-mcp
- Repository: https://github.com/vola-trebla/zod-contract-mock-forge-mcp
- Changelog RSS feed: https://verifymcp.io/servers/vola-trebla-zod-contract-mock-forge-mcp/zod-contract-mock-forge-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/vola-trebla-zod-contract-mock-forge-mcp/zod-contract-mock-forge-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/vola-trebla-zod-contract-mock-forge-mcp/zod-contract-mock-forge-mcp
