JSON Contracts
NPM · JSON-CONTRACTS · SCANNED AUG 3
JSON contract registry and validator for structured LLM and agent outputs.
Available components
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
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (Apache-2.0).Pass
- Actively maintained (last published 89 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
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
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
claude mcp add json-contracts-json-contracts -- npx -y json-contracts
codex mcp add json-contracts-json-contracts -- npx -y json-contracts
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"json-contracts-json-contracts": {
"type": "local",
"command": [
"npx",
"-y",
"json-contracts"
],
"enabled": true
}
}
} openclaw mcp add json-contracts-json-contracts --command npx --arg -y --arg json-contracts
mcp_servers:
json-contracts-json-contracts:
command: "npx"
args: ["-y", "json-contracts"] {
"mcpServers": {
"json-contracts-json-contracts": {
"command": "npx",
"args": [
"-y",
"json-contracts"
]
}
}
} 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.
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.
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.
get_edit_contract ~58
Return schema, rules, current JSON, edit instructions, and input so the agent/model can edit existing JSON.
| Name | Type | Req | Description |
|---|---|---|---|
| context | object | — | — |
| contract | string | yes | — |
| currentJson | — | yes | — |
| input | string | yes | — |
| Name | Type | Req | Description |
|---|---|---|---|
| context | object | yes | — |
| contract | string | yes | — |
| contractHash | string | yes | — |
| currentJson | — | yes | — |
| description | string | yes | — |
| examples | array | yes | — |
| input | string | yes | — |
| instructions | array | yes | — |
| operation | — | yes | — |
| operationExamples | array | yes | — |
| operationRules | array | yes | — |
| rules | array | yes | — |
| schema | object | yes | — |
| schemaHash | string | yes | — |
No examples provided.
get_json_contract ~49
Return schema, rules, examples, instructions, and input so the agent/model can produce JSON.
| Name | Type | Req | Description |
|---|---|---|---|
| context | object | — | — |
| contract | string | yes | — |
| input | string | yes | — |
| Name | Type | Req | Description |
|---|---|---|---|
| context | object | yes | — |
| contract | string | yes | — |
| contractHash | string | yes | — |
| description | string | yes | — |
| examples | array | yes | — |
| input | string | yes | — |
| instructions | array | yes | — |
| operation | — | yes | — |
| operationExamples | array | yes | — |
| operationRules | array | yes | — |
| rules | array | yes | — |
| schema | object | yes | — |
| schemaHash | string | yes | — |
No examples provided.
get_repair_contract ~47
Return schema, rules, previous invalid JSON, validation errors, and repair instructions.
| Name | Type | Req | Description |
|---|---|---|---|
| contract | string | yes | — |
| invalidJson | — | yes | — |
| validationErrors | array | — | — |
| Name | Type | Req | Description |
|---|---|---|---|
| contract | string | yes | — |
| contractHash | string | yes | — |
| examples | array | yes | — |
| instructions | array | yes | — |
| invalidJson | — | yes | — |
| rules | array | yes | — |
| schema | object | yes | — |
| schemaHash | string | yes | — |
| validationErrors | array | yes | — |
No examples provided.
list_contracts ~15
List currently loaded JSON contracts.
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| contracts | array | yes | — |
No examples provided.
read_contract ~21
Read a loaded JSON contract.
| Name | Type | Req | Description |
|---|---|---|---|
| contract | string | yes | — |
| Name | Type | Req | Description |
|---|---|---|---|
| contract | string | yes | — |
| contractHash | string | yes | — |
| description | string | yes | — |
| examples | array | yes | — |
| operations | object | yes | — |
| rules | array | yes | — |
| schema | object | yes | — |
| schemaHash | string | yes | — |
No examples provided.
reload_contracts ~20
Rescan the JSON contracts directory and reload valid contracts.
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| contracts | array | yes | — |
| loaded | number | yes | — |
No examples provided.
status ~19
Return json-contracts MCP server status and loaded contract metadata.
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| allowInvalidContracts | boolean | yes | — |
| contracts | array | yes | — |
| contractsDir | string | yes | — |
| loaded | number | yes | — |
| server | — | yes | — |
| version | string | yes | — |
| watchContracts | boolean | yes | — |
No examples provided.
validate_json ~29
Validate agent-produced JSON against a contract schema.
| Name | Type | Req | Description |
|---|---|---|---|
| contract | string | yes | — |
| json | — | yes | — |
| Name | Type | Req | Description |
|---|---|---|---|
| contract | string | yes | — |
| errors | array | yes | — |
| json | — | — | — |
| valid | boolean | yes | — |
No examples provided.