Skip to content
Cursor

Kubernetes Troubleshoot for Cursor

io.github.nanagyamfiprempeh30/k8s-troubleshoot-mcp

Read-only Kubernetes diagnostics: pods, logs, events, workloads, services, PVCs and nodes.

client:Cursor transport:stdio runtime:oci

Install Kubernetes Troubleshoot in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "k8s-troubleshoot-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/yawgyamfiprem32/k8s-troubleshoot-mcp:1.0.0"
      ],
      "env": {
        "KUBECONFIG": "<KUBECONFIG>",
        "ALLOWED_NAMESPACES": "<ALLOWED_NAMESPACES>",
        "LOG_LEVEL": "<LOG_LEVEL>",
        "API_TIMEOUT_SECONDS": "<API_TIMEOUT_SECONDS>",
        "MAX_LOG_LINES": "<MAX_LOG_LINES>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Kubernetes Troubleshoot in other clients