Package

Kubernetes Troubleshoot

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

io.github.NanaGyamfiPrempeh30/k8s-troubleshoot-mcpSource repository
Version1.0.0latest catalog version
ConnectionPackageoci
PublishedAug 24, 2026catalog
UpdatedAug 24, 2026catalog
Overview

What this server provides

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

Install

Packages

1
Package 1oci
docker.io/yawgyamfiprem32/k8s-troubleshoot-mcp:1.0.0Version not declared
  • KUBECONFIG

    Path to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup failure rather than a silent downgrade to an ambient credential.

    Default: /kubeconfig
    Required
  • ALLOWED_NAMESPACES

    Comma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in-depth, not the security boundary — the boundary is the ServiceAccount's RBAC bindings.

    Format: string
    Required
  • LOG_LEVEL

    DEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.

    Default: INFO
    Optional
  • API_TIMEOUT_SECONDS

    Kubernetes API request timeout. Must be a positive integer.

    Default: 30
    Optional
  • MAX_LOG_LINES

    Maximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.

    Default: 200
    Optional
  • --mount.kubeconfig_path

    Absolute path on the host to a kubeconfig scoped to the diagnostic ServiceAccount. Generate it with scripts/generate-kubeconfig.sh — do not mount an admin kubeconfig. The file must be readable by UID 10001, which the container runs as.

    Format: filepath
    Required
View server metadata