Skip to content
VS Code

k8s-guardian for VS Code

io.github.andronaft/k8s-guardian

Kubernetes guardrails for agents: validate, fix and cost-check manifests against your cluster

client:VS Code transport:stdio runtime:oci

Install k8s-guardian in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "anthropic-api-key",
      "description": "ANTHROPIC_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "k8s-guardian": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/andronaft/k8s-guardian:0.8.1"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${input:anthropic-api-key}"
      }
    }
  }
}

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

k8s-guardian in other clients