Enables GPU diagnostics and monitoring through tools that track GPU utilization, run nvidia-smi inside GPU-enabled pods for real-time process and memory details, and check for GPU hardware errors (XID) and throttling events across the cluster.
Provides monitoring tools that query Prometheus metrics via OpenShift route for real-time cluster observability, including resource balance analysis, pod restart detection, GPU utilization tracking, and vLLM inference server performance metrics.
OpenShift MCP Server
A Model Context Protocol (MCP) server for OpenShift diagnostics and troubleshooting.
Features
Storage Tools
Storage Analysis:
get_cluster_storage_report- comprehensive report of ephemeral storage usage on nodes, including top pod consumers.Deep Forensics:
inspect_node_storage_forensics- deep analysis of disk usage on a specific node, checking for unused images and container writable layers.PV Capacity:
check_persistent_volume_capacity- monitor persistent volume usage across namespaces with configurable thresholds.
Monitoring Tools
Resource Balance:
get_cluster_resource_balance- analyze CPU and memory resource distribution across nodes.Pod Restarts:
detect_pod_restarts_anomalies- identify pods with excessive restart counts within a time window.GPU Utilization:
get_gpu_utilization- track GPU usage and identify idle GPU resources.Inspect GPU Pod:
inspect_gpu_pod- runnvidia-smiinside a GPU-enabled pod to view real-time process and memory details.Check GPU Health:
check_gpu_health- check for GPU hardware errors (XID) and throttling events across the cluster.vLLM Metrics:
get_vllm_metrics- monitor vLLM inference server performance metrics (throughput, queue size, cache usage).
All monitoring tools use Prometheus metrics via OpenShift route for real-time cluster observability.
Pod Diagnostics Tools
Pod Logs:
get_pod_logs- retrieve and analyze logs from a specific pod, with support for previous container logs, tail limits, and time-based filtering.Pod Diagnostics:
get_pod_diagnostics- comprehensive health check of a pod including status, conditions, container states, restart counts, and issue detection.
Installation
Configuration
This server relies on the oc command line tool.
Ensure
ocis installed and in your PATH.Ensure you are authenticated (
oc login ...) to your target cluster before running the server.
MCP Client Configuration
Configure the MCP server in your Claude Desktop or Gemini CLI settings:
Example Usage
Once configured, you can ask questions like:
"Give me a summary of storage usage for all nodes"
"Check GPU utilization in the cluster"
"Diagnose pod health for my-app-pod in production namespace"
Simulated Tool Output (
Simulated Tool Output (
Simulated Tool Output (
Development
Testing the server directly
When run directly, the server expects JSON-RPC messages on standard input. You can verify the registered tools by simulating a full client handshake (Initialize -> Initialized -> Tools/List):
Expected output (truncated for brevity):
This server cannot be installed