Skip to content
Claude Code

JSON Contracts for Claude Code

io.github.json-contracts/json-contracts

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

client:Claude Code transport:stdio runtime:npm

Install JSON Contracts in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add json-contracts -e JSON_CONTRACTS_DIR=<JSON_CONTRACTS_DIR> -- npx -y json-contracts

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

JSON Contracts in other clients