K8gentS — Kubernetes RCA MCP Server
io.github.JDoornink · Updated
Kubernetes RCA agent that sandboxes its own AI with OPA Gatekeeper. MCP-ready for any client.
At a glance
K8gentS — Kubernetes RCA MCP Server is an MCP server in the Dev Tools & Git category. It runs locally over stdio via `docker run -i --rm docker.io/jdoornink/k8gents:0.1.1`, and needs AI_API_KEY. It scores C (54/100) on the MCP Skills Hub health score as of Oct 28, 2026.
One-click install
Opens your editor and pre-fills the config. Your editor will ask before adding it.
How to install K8gentS — Kubernetes RCA MCP Server in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install K8gentS — Kubernetes RCA MCP Server in Claude CodeAnthropic's agentic CLI
Add the server
bashclaude mcp add k8gents -e 'AI_API_KEY=<AI_API_KEY>' -- docker run -i --rm docker.io/jdoornink/k8gents:0.1.1Fill in your credentials
Replace <AI_API_KEY> with your real value. Keep secrets out of any config file you commit.
Verify it's connected
bashclaude mcp listSharing it with your team?
Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).
Use it in a session
Ask Claude to use the tools this server exposes. It discovers them automatically.
How to install K8gentS — Kubernetes RCA MCP Server in Claude DesktopDesktop app (MCP config)
Open your MCP config
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this server
json{ "mcpServers": { "k8gents": { "command": "docker", "args": [ "run", "-i", "--rm", "docker.io/jdoornink/k8gents:0.1.1" ], "env": { "AI_API_KEY": "<AI_API_KEY>" } } } }Fill in your credentials
Replace <AI_API_KEY> with your real value. Keep secrets out of any config file you commit.
Restart Claude Desktop
The tools appear under the 🔌 menu once the app reloads.
How to install K8gentS — Kubernetes RCA MCP Server in CursorAI-first code editor
Create / edit .cursor/mcp.json in your project
json{ "mcpServers": { "k8gents": { "command": "docker", "args": [ "run", "-i", "--rm", "docker.io/jdoornink/k8gents:0.1.1" ], "env": { "AI_API_KEY": "<AI_API_KEY>" } } } }Fill in your credentials
Replace <AI_API_KEY> with your real value. Keep secrets out of any config file you commit.
Enable it
Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.
How to install K8gentS — Kubernetes RCA MCP Server in Codex CLIOpenAI coding agent
Add to ~/.codex/config.toml
toml[mcp_servers.k8gents] command = "docker" args = ["run", "-i", "--rm", "docker.io/jdoornink/k8gents:0.1.1"] env = { AI_API_KEY = "<AI_API_KEY>" }Fill in your credentials
Replace <AI_API_KEY> with your real value. Keep secrets out of any config file you commit.
Run Codex
Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.
How to install K8gentS — Kubernetes RCA MCP Server in WindsurfCodeium's agentic IDE
Edit ~/.codeium/windsurf/mcp_config.json
json{ "mcpServers": { "k8gents": { "command": "docker", "args": [ "run", "-i", "--rm", "docker.io/jdoornink/k8gents:0.1.1" ], "env": { "AI_API_KEY": "<AI_API_KEY>" } } } }Fill in your credentials
Replace <AI_API_KEY> with your real value. Keep secrets out of any config file you commit.
Reload
Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.
How to install K8gentS — Kubernetes RCA MCP Server in ClineVS Code autonomous agent
Open Cline → MCP Servers → Configure
Adds to cline_mcp_settings.json.
Add the server
json{ "mcpServers": { "k8gents": { "command": "docker", "args": [ "run", "-i", "--rm", "docker.io/jdoornink/k8gents:0.1.1" ], "env": { "AI_API_KEY": "<AI_API_KEY>" } } } }Fill in your credentials
Replace <AI_API_KEY> with your real value. Keep secrets out of any config file you commit.
How to install K8gentS — Kubernetes RCA MCP Server in VS CodeCopilot / MCP support
Create .vscode/mcp.json
json{ "servers": { "k8gents": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "docker.io/jdoornink/k8gents:0.1.1" ], "env": { "AI_API_KEY": "<AI_API_KEY>" } } } }Fill in your credentials
Replace <AI_API_KEY> with your real value. Keep secrets out of any config file you commit.
Start it
VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.
What does K8gentS — Kubernetes RCA MCP Server need from you?
API key — Google Gemini API key for LLM-powered root cause analysis
AI_API_KEYrequiredsecretEnvironment variableGoogle Gemini API key for LLM-powered root cause analysis
AI_MODELoptionalEnvironment variableGemini model to use (default: gemini-2.5-pro)
KUBECONFIGoptionalEnvironment variablePath to kubeconfig file. Omit to use in-cluster config or ~/.kube/config automatically.
Pass secrets through your shell environment rather than committing them into a config file.
What tools does K8gentS — Kubernetes RCA MCP Server expose?
This server runs as a local package. We only query remote servers for their tool list — asking this one would mean executing it, so its tools are listed in the documentation below.
What the code can do
Source analysis currently covers npm packages only. This server ships as a container image, whose contents are not readable the same way.
Before you install
Signals gathered from the source repo and package registry — not a safety verdict.
What it can reach
- Runs code on your machine — Executes as a Docker container with whatever mounts and env you pass it.
- Downloads at launch — The package is fetched from its registry each run unless you pin a version.
- Last commit 5 months ago — Actively maintained.
- 1 GitHub stars — Very little community usage so far.
- No license declared — Without a license the code is not legally reusable in a commercial project.
Client compatibility
Health score
C · 54Maintenance, adoption, transparency and packaging — not a safety audit. How this is calculated
- Maintenance30%80%
Last commit 173 days ago.
- Adoption20%9%
1 stars.
- Transparency20%50%
2/4: ✓ public source repo, ✗ declared license, ✓ documentation, ✗ discoverable tool list.
- Provenance15%75%
Links to its own repository; package linkage unverified.
- Packaging15%50%
No pinned version — installs resolve to whatever is latest at launch.
Documentation
Full READMEK8gentS ☸️🤖
A Human-in-the-Loop RCA Agent for Kubernetes — LLM Diagnosis, OPA-Bounded Remediation
📖 Overview
K8gentS is a Kubernetes diagnostic agent built around a single premise: an LLM is well-suited to *reason* about cluster failures, but unfit to *act* on them unsupervised. It continuously watches the cluster event stream, runs Warning-class events through a Gemini-powered root cause analysis (RCA) pipeline, and surfaces the top hypotheses with resolution steps to Slack. Every remediation is human-in-the-loop (HITL) — a reviewer approves or rejects via interactive buttons before anything mutates. Approved fixes execute inside an ephemeral Job whose blast radius is bounded by an OPA Gatekeeper admission policy at the API server, independent of RBAC. The reasoning is non-deterministic by design; the controls around it are not.
The goal: reduce MTTR on diagnosable failures without handing an LLM a kubectl apply.
🧠 The Hard Problem
Building the Kubernetes side of this is straightforward. The real challenge is making a diagnostic layer trustworthy when the engine behind it is fundamentally non-deterministic.
Traditional observability is built on guarantees. Alerts fire on known thresholds. Dashboards show reproducible numbers. Logs return consistent answers to the same query. SRE success depends on that predictability — it's what makes incident response repeatable and on-call sustainable.
An LLM-driven diagnostic layer breaks that contract. The same pod failure can produce three different plausible explanations across three different runs. Each may be coherent. Each may even be correct under different assumptions. But "plausible" is not the same as "right," and for infrastructure, the gap between them is where outages live.
Some of the specific problems I've been working through while building K8gentS:
1. Confidence scoring with an unbounded output space. The agent returns top-3 root causes with confidence metrics, but confidence in what, exactly? The model is not selecting from a fixed set of known failure modes — it's generating free-form hypotheses. A calibrated confidence score needs a reference distribution, and the distribution here is whatever the model happened to produce this run.
2. When to trust reasoning vs. fall back to deterministic checks. - THE ART Some failures (CrashLoopBackOff, OOMKilled) have well-traveled diagnostic paths and a deterministic check will be right every time. Others benefit from the model's ability to interpolate across signals. Drawing that line — and doing it at runtime — is non-trivial and where the art really lies.
Excerpt — the full document is on GitHub.
Alternatives to K8gentS — Kubernetes RCA MCP Server
- Agent GuildB · 79See and steer Claude Code, Codex, Antigravity, Grok, Docker Agent and shell sessions in Agent Guild.
- Agent-Native CalendarA · 88Agent-Native Google Calendar - manage events, sync, and public booking
- Gmail-MCP-ServerA · 87Lean Gmail MCP server with auto authentication support
- gdharnessA · 84A harness for driving a Godot 4 project from an agent: addons, runtime bridge, MCP server, CLI.
Maintain K8gentS — Kubernetes RCA MCP Server? Add a badge to your README
Shows its health grade, and links readers to install steps for every client.
[](https://mcp-skills-hub.vercel.app/mcps/io-github-jdoornink-k8gents)Catalog data refreshed . Something wrong? Report it.