-
-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started
Three paths, from "try it on a laptop" to "run it against production." Full commands live in the deployment guide; this page is the shape of the journey.
flowchart LR
A[Path A<br/>laptop kind fleet] --> B[Path B<br/>real OCM fleet]
B --> C[Path C<br/>hardened production]
A -.15 min.-> A2[try the whole flow]
B -.apply RBAC + policies.-> B2[point at your hub]
C -.checklist.-> C2[cluster-proxy, audit shipping, TTLs]
git clone https://github.com/sandeepbazar/ocm-mcp-server.git
cd ocm-mcp-server
make bootstrap # 1 hub + 3 kind clusters, OCM, Kyverno, policies, demo app
make installmake bootstrap prints the exact environment to export. Register the server
with your MCP client (Claude Code, Codex CLI, Gemini CLI, or IBM BOB, all in
examples/),
then run the smoke test:
make inject SCENARIO=failing-rollout CLUSTER=cluster2
# then ask your agent: "Payments is degraded somewhere in the fleet. Fix it."Walk through the whole conversation, including approval, in Use Cases and Impact and the worked examples.
Works with any conformant hub. Apply the identity and policies, wire read-only spoke access, point the server at your hub context:
kubectl --context <hub> apply -f deploy/rbac.yaml
kubectl --context <hub> apply -f deploy/policies/
export OCM_MCP_HUB_CONTEXT=<hub>
export OCM_MCP_SPOKE_CONTEXTS=prod-tokyo=prod-tokyo-reader,...
ocm-mcp-serverThe deployment guide has the full checklist. The essentials: swap direct spoke
contexts for the OCM cluster-proxy add-on, one server + hub identity per agent,
OCM_MCP_HOME on encrypted disk, ship audit.jsonl to your log pipeline, set
an OTLP endpoint, and tune the approval TTL to your change windows.
| Variable | Meaning |
|---|---|
OCM_MCP_HUB_CONTEXT |
kubeconfig context of the hub cluster |
OCM_MCP_SPOKE_CONTEXTS |
name=context,... read-only spoke access for events/logs |
OTEL_EXPORTER_OTLP_ENDPOINT |
optional tracing collector |
OCM_MCP_HOME |
state dir (secret, proposals, audit); default ~/.ocm-mcp
|
OCM_MCP_APPROVAL_TTL |
approval token lifetime, seconds; default 3600 |
Next: Use Cases and Impact.