K8s 观察器
STDIOKubernetes集群管理与工作负载分析工具
Kubernetes集群管理与工作负载分析工具
mcp-k8s-eye is a tool that can manage kubernetes cluster and analyze workload status.
resource_get: Get detailed resource information about a specific resource in a namespaceresource_list: List detailed resource information about all resources in a namespaceresource_create_or_update: Create or update a resource in a namespaceresource_delete: Delete a resource in a namespaceresource_describe: Describe a resource detailed information in a namespacedeployment_scale: Scale a deployment in a namespacepod_exec: Execute a command in a pod in a namespace`pod_logs: Get logs from a pod in a namespacepod_analyze: Diagnose all pods in a namespacedeployment_analyze: Diagnose all deployments in a namespacestatefulset_analyze: Diagnose all statefulsets in a namespaceservice_analyze: Diagnose all services in a namespacecronjob_analyze: Diagnose all cronjobs in a namespaceingress_analyze: Diagnose all ingresses in a namespacenetworkpolicy_analyze: Diagnose all networkpolicies in a namespacevalidatingwebhook_analyze: Diagnose all validatingwebhooksmutatingwebhook_analyze: Diagnose all mutatingwebhooksnode_analyze: Diagnose all nodes in clusterworkload_resource_usage: Get pod/deployment/replicaset/statefulset resource usage in a namepace (cpu, memory)# clone the repository
git clone https://github.com/wenhuwang/mcp-k8s-eye.git
cd mcp-k8s-eye
# build the binary
go build -o mcp-k8s-eye
{
  "mcpServers": {
    "k8s eye": {
      "command": "YOUR mcp-k8s-eye PATH",
      "env": {
        "HOME": "USER HOME DIR"
      },
    }
  }
}
env.HOME is used to set the HOME directory for kubeconfig file.
{
  "mcpServers": {
    "k8s eye": {
      "url": "http://localhost:8080/sse",
      "env": {}
    }
  }
}
