Skip to content
VS Code

K8gentS — Kubernetes RCA MCP Server for VS Code

io.github.jdoornink/k8gents

Kubernetes RCA agent that sandboxes its own AI with OPA Gatekeeper. MCP-ready for any client.

client:VS Code transport:stdio runtime:oci

Install K8gentS — Kubernetes RCA MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ai-api-key",
      "description": "AI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ai-model",
      "description": "AI_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "kubeconfig",
      "description": "KUBECONFIG",
      "password": true
    }
  ],
  "servers": {
    "k8gents": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/jdoornink/k8gents:0.1.1"
      ],
      "env": {
        "AI_API_KEY": "${input:ai-api-key}",
        "AI_MODEL": "${input:ai-model}",
        "KUBECONFIG": "${input:kubeconfig}"
      }
    }
  }
}

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

K8gentS — Kubernetes RCA MCP Server in other clients