Skip to content
Windsurf

JSON Contracts for Windsurf

io.github.json-contracts/json-contracts

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

client:Windsurf transport:stdio runtime:npm

Install JSON Contracts in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

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

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

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

JSON Contracts in other clients