Skip to content
Zed

JSON Contracts for Zed

io.github.json-contracts/json-contracts

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

client:Zed transport:stdio runtime:npm

Install JSON Contracts in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

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

{
  "context_servers": {
    "json-contracts": {
      "command": "npx",
      "args": [
        "-y",
        "json-contracts"
      ],
      "env": {
        "JSON_CONTRACTS_DIR": "<JSON_CONTRACTS_DIR>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

JSON Contracts in other clients