ocp-triage-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ocp-triage-mcpTriage KubePodCrashLooping for pod payments-api in namespace production"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ocp-triage-mcp
An MCP server that triages OpenShift alerts by orchestrating an upstream OCP
MCP server (the one exposing oc get nodes, get namespaces, describe pods, etc.). This server is both an MCP server (to whoever is triaging) and
an MCP client (of the OCP MCP) — the consuming team never touches the
upstream server directly.
LLM / agent ──MCP──▶ ocp-triage-mcp ──MCP (Streamable HTTP)──▶ OCP MCP ──▶ cluster
│
└── runbooks/*.yaml (one file per alert code)Each alert code maps to a runbook: a YAML-defined sequence of upstream tool calls. Triage is deterministic — no LLM inside this server — so evidence collection is repeatable, auditable, and cheap. The LLM sitting above it interprets the evidence bundle.
Tools exposed
Tool | Purpose |
| Alert codes supported, required/optional inputs, steps |
| Run the full runbook, return the evidence bundle |
| Re-run one step of a runbook |
| Check all runbooks against the live upstream tool list |
The evidence bundle reports per-step status (ok / error / skipped /
aborted) so partial failures are visible, never silent.
Passthrough discovery tools
Callers usually need to find the runbook inputs first — which clusters,
namespaces, and pods exist. Set TRIAGE_PASSTHROUGH_TOOLS to a
comma-separated allowlist of upstream tool names (fnmatch patterns allowed):
TRIAGE_PASSTHROUGH_TOOLS=get_clusters,get_namespaces,get_pods,list_*Matching upstream tools are re-exposed on this server verbatim — same name,
same input schema, same description — and calls are forwarded to the OCP MCP.
Nothing is passed through by default; the surface stays curated. The tool list
is fetched from the upstream lazily and cached; validate_runbooks refreshes
it and reports which names currently match.
Related MCP server: OpenShift SRE Copilot
Setup
Full guide — install, verification, hosting for another team, container deployment, troubleshooting: docs/setup.md
Quick start:
pip install -e .Configuration is via environment variables:
Variable | Meaning | Default |
| Upstream OCP MCP Streamable HTTP endpoint, e.g. | (required) |
| Extra upstream headers, | none |
| Upstream tools to re-expose here (comma-separated, fnmatch patterns) | none |
| Directory of runbook YAMLs |
|
| This server's transport: |
|
| Listen address for the HTTP transports |
|
Variables can also live in a .env file next to the server (copy
.env.example); real environment variables override it.
Run it:
ocp-triage-mcpRegistering in Claude Code (stdio):
{
"mcpServers": {
"ocp-triage": {
"command": "ocp-triage-mcp",
"env": {
"OCP_MCP_URL": "https://ocp-mcp.example.com/mcp",
"OCP_MCP_HEADERS": "Authorization: Bearer <token>",
"TRIAGE_RUNBOOKS_DIR": "C:/GIT/mcp-runbook/runbooks"
}
}
}
}To serve it to another team over HTTP instead, set
TRIAGE_MCP_TRANSPORT=streamable-http and deploy it like any web service.
Writing runbooks
One YAML file per alert code in runbooks/:
alert: KubePodCrashLooping # the alert code callers pass to triage_alert
description: What this runbook collects and why.
inputs:
required: [namespace, pod] # must be present in params
optional: [cluster]
steps:
- id: describe_pod # unique id; defaults to the tool name
tool: describe_pod # tool name ON THE UPSTREAM OCP MCP
args:
namespace: "{{namespace}}" # template from params...
pod: "{{pod}}"
- id: node_status
tool: describe_node
when: "{{describe_pod.spec.nodeName}}" # skip unless resolvable & truthy
continue_on_error: true # don't abort the runbook on failure
args:
node: "{{describe_pod.spec.nodeName}}" # ...or from earlier step resultsTemplating rules:
{{name}}resolves fromparamsfirst, then from earlier step results by step id.Dotted paths (
{{describe_pod.spec.nodeName}}) walk into a step's result — this requires the upstream tool to return JSON (structured content or a JSON text block). Plain-text output is kept verbatim and can't be path-referenced.A string that is exactly one template keeps the referenced value's type (numbers, booleans, objects); mixed strings are substituted as text.
Steps run sequentially. A step failure aborts the rest of the runbook unless the failing step has
continue_on_error: true.
The example runbooks use placeholder tool names. After pointing
OCP_MCP_URL at your real server, call validate_runbooks — it lists the
upstream's actual tools and flags every runbook step that references a tool
the upstream doesn't expose.
Design notes
Fresh upstream connection per call. Each
triage_alertopens its own Streamable HTTP session to the upstream and closes it when done. Remote sessions get dropped by idle timeouts/proxies; reconnecting per run makes every triage self-contained at negligible handshake cost.Runbooks are re-read from disk on every call, so editing a YAML takes effect without restarting the server. If load cost ever matters, add mtime caching in
server._load.No LLM inside. If a runbook someday needs in-flight reasoning, first try extending
when:conditions; embedding an agent is the last resort.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to investigate backend incidents by executing runbooks that gather evidence from observability and storage systems.59MIT
- FlicenseAqualityDmaintenanceAI-powered MCP server for enterprise OpenShift/Kubernetes cluster management, providing diagnostic tools, RAG knowledge retrieval, and autonomous remediation recommendations.9
- AlicenseBqualityBmaintenanceA comprehensive Model Context Protocol (MCP) server that exposes 216 tools, 7 resources, and 10 runbook prompts for every OpenShift 4 cluster operation an SRE, developer, or operator could need — all driven by an LLM.100Apache 2.0
- AlicenseBqualityAmaintenanceGoverned Prometheus + Grafana operations — firing-alert and scrape-target RCA, alert noise/flapping analysis, silences, and dashboards, with unbypassable audit logging (MCP + CLI), budget/runaway guards, dry-run, and undo/rollback.39MIT
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Remote MCP for A2A failure replay MCP, structured receipts, audit logs, and reviewer-ready evidence.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aasthapit/mcp-runbook'
If you have feedback or need assistance with the MCP directory API, please join our Discord server