Skip to content
VS Code

Midplane for VS Code

ai.midplane/midplane

Safe-by-default SQL guardrails for AI agents: AST-checked queries, per-table policy, audit log.

client:VS Code transport:stdio runtime:npm

Install Midplane in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "database-url",
      "description": "DATABASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "midplane-policy-file",
      "description": "MIDPLANE_POLICY_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "db-path",
      "description": "DB_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "midplane-telemetry",
      "description": "MIDPLANE_TELEMETRY",
      "password": true
    }
  ],
  "servers": {
    "midplane": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "midplane"
      ],
      "env": {
        "DATABASE_URL": "${input:database-url}",
        "MIDPLANE_POLICY_FILE": "${input:midplane-policy-file}",
        "DB_PATH": "${input:db-path}",
        "MIDPLANE_TELEMETRY": "${input:midplane-telemetry}"
      }
    }
  }
}

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

Midplane in other clients