JSON Contracts for VS Code
io.github.json-contracts/json-contracts
JSON contract registry and validator for structured LLM and agent outputs.
client:VS Code
transport:stdio
runtime:npm
Install JSON Contracts in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "json-contracts-dir",
"description": "JSON_CONTRACTS_DIR",
"password": true
}
],
"servers": {
"json-contracts": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"json-contracts"
],
"env": {
"JSON_CONTRACTS_DIR": "${input:json-contracts-dir}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs