Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

JSON Contracts

NPM · JSON-CONTRACTS · SCANNED AUG 3

JSON contract registry and validator for structured LLM and agent outputs.

Available components

+16 this week 47 Trust /100
Trust breakdown (6 categories)

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. How we score →

Supply Chain Security33
  • Malware scan not yet available for this package.Unverified
  • CVE check failed: a known medium-severity CVE affects @hono/node-server 1.19.17, reached via @modelcontextprotocol/sdk > @hono/node-server. A fixed version is available. View diagnostics → Fail
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (98 of 102), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability65
  • 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
  • AI-judged instruction clarity (poor).Fail
  • Tool/resource definitions use about 258 tokens (~32/item across 8 items; 8 tools + 0 resources), lean.Pass
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management23
  • Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage71
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 0% of tool parameters carry a description.Fail
  • Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · json-contracts

# add to Claude Code
claude mcp add json-contracts-json-contracts -- npx -y json-contracts
# add to Codex CLI
codex mcp add json-contracts-json-contracts -- npx -y json-contracts
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "json-contracts-json-contracts": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "json-contracts"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add json-contracts-json-contracts --command npx --arg -y --arg json-contracts
# ~/.hermes/config.yaml
mcp_servers:
  json-contracts-json-contracts:
    command: "npx"
    args: ["-y", "json-contracts"]
// mcp.json
{
  "mcpServers": {
    "json-contracts-json-contracts": {
      "command": "npx",
      "args": [
        "-y",
        "json-contracts"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 3 Aug 26 +42
    • GHSA-frvp-7c67-39w9 affects this package: medium security
    • Provenance: unverified → fail security
    • Known CVEs: unverified → fail security
    • Install scripts: unverified → pass security
    • Maintenance: unverified → pass functional
    • MCP protocol: unverified → pass functional
    • Stability: unverified → 0.23 functional
    • Schema quality: unverified → poor functional
    • Tool coverage: unverified → 100 functional
    • License: unverified → pass functional
    • Schema quality: unverified → 100 functional
    • Dependency health: unverified → partial functional
    • Licence: Apache-2.0 functional
  • 2 Aug 26 −18
    • Tool coverage: 100 → unverified functional
    • Schema quality: 100 → unverified functional
  • 1 Aug 26 −8
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 27 Jul 26 31

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 3 Aug 2026 · Analysed npm/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Vulnerabilities 1 finding
ID CVE Severity Vector Fix available
GHSA-frvp-7c67-39w9 medium CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N yes
Dependencies 98 packages

98 packages in the resolved dependency tree · 98 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 8 exposed · ~258 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
get_edit_contract ~58

Return schema, rules, current JSON, edit instructions, and input so the agent/model can edit existing JSON.

NameTypeReqDescription
contextobject
contractstringyes
currentJsonyes
inputstringyes
NameTypeReqDescription
contextobjectyes
contractstringyes
contractHashstringyes
currentJsonyes
descriptionstringyes
examplesarrayyes
inputstringyes
instructionsarrayyes
operationyes
operationExamplesarrayyes
operationRulesarrayyes
rulesarrayyes
schemaobjectyes
schemaHashstringyes

No examples provided.

get_json_contract ~49

Return schema, rules, examples, instructions, and input so the agent/model can produce JSON.

NameTypeReqDescription
contextobject
contractstringyes
inputstringyes
NameTypeReqDescription
contextobjectyes
contractstringyes
contractHashstringyes
descriptionstringyes
examplesarrayyes
inputstringyes
instructionsarrayyes
operationyes
operationExamplesarrayyes
operationRulesarrayyes
rulesarrayyes
schemaobjectyes
schemaHashstringyes

No examples provided.

get_repair_contract ~47

Return schema, rules, previous invalid JSON, validation errors, and repair instructions.

NameTypeReqDescription
contractstringyes
invalidJsonyes
validationErrorsarray
NameTypeReqDescription
contractstringyes
contractHashstringyes
examplesarrayyes
instructionsarrayyes
invalidJsonyes
rulesarrayyes
schemaobjectyes
schemaHashstringyes
validationErrorsarrayyes

No examples provided.

list_contracts ~15

List currently loaded JSON contracts.

Input schema present but exposes no named parameters.

NameTypeReqDescription
contractsarrayyes

No examples provided.

read_contract ~21

Read a loaded JSON contract.

NameTypeReqDescription
contractstringyes
NameTypeReqDescription
contractstringyes
contractHashstringyes
descriptionstringyes
examplesarrayyes
operationsobjectyes
rulesarrayyes
schemaobjectyes
schemaHashstringyes

No examples provided.

reload_contracts ~20

Rescan the JSON contracts directory and reload valid contracts.

Input schema present but exposes no named parameters.

NameTypeReqDescription
contractsarrayyes
loadednumberyes

No examples provided.

status ~19

Return json-contracts MCP server status and loaded contract metadata.

Input schema present but exposes no named parameters.

NameTypeReqDescription
allowInvalidContractsbooleanyes
contractsarrayyes
contractsDirstringyes
loadednumberyes
serveryes
versionstringyes
watchContractsbooleanyes

No examples provided.

validate_json ~29

Validate agent-produced JSON against a contract schema.

NameTypeReqDescription
contractstringyes
jsonyes
NameTypeReqDescription
contractstringyes
errorsarrayyes
json
validbooleanyes

No examples provided.