Skip to content
VS Code

ContractGate for VS Code

io.github.nightmoose/contractgate

Infer, dry-run, deploy, and inspect ContractGate semantic data contracts.

client:VS Code transport:stdio runtime:npm

Install ContractGate in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "contractgate-api-key",
      "description": "CONTRACTGATE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "contractgate-base-url",
      "description": "CONTRACTGATE_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "contractgate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@contractgate/mcp-server"
      ],
      "env": {
        "CONTRACTGATE_API_KEY": "${input:contractgate-api-key}",
        "CONTRACTGATE_BASE_URL": "${input:contractgate-base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ContractGate in other clients