MM

malepuppet/mcp-k8s-eye

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

20 stars 1 forks 质量 54 趋势 10Apache-2.0

用于管理和诊断你的集群和应用的MCP服务器

概览

MCP-K8S-EYE 是一款可以管理 Kubernetes 集群并分析工作负载状态的工具。 - [x] 连接 Kubernetes 集群 - [x] 管理能力 - 支持所有导航资源:Pod、部署、服务、StatefulSet、Ingress...... - 支持 CustomResourceDefinition 资源 - 操作包括:列表、获取、创建、更新、删除 - [x] Pod 管理能力(执行、日志)- [x] 部署管理能力(规模化)- [ ] 描述 Kubernetes 资源 - [ ] 解释 Kubernetes 资源 - [x] Pod 诊断(分析 Pod 状态、容器状态、Pod 资源利用率)- [x] 服务诊断(分析服务选择器配置,不分析准备端点、事件)- [x] 部署诊断(分析可用副本)- [x] StatefulSet 诊断(分析状态fulset服务(如果存在,pvc(存在)、可用副本)- [x] CronJob 诊断(分析 cronjob 计划、起始截止日期、最后调度时间)- [x] 入口诊断(分析入口类......

概述(AI 翻译)

MCP-K8s-EYE

MCP-K8S-EYE 是一款可以管理 Kubernetes 集群并分析工作负载状态的工具。

特色

核心Kubernetes运算

  • [x] 连接到Kubernetes集群
  • [x] 通用 Kubernetes 资源 管理能力
  • 支持所有导航资源:舱、部署、服务、状态集、入口…
  • 支持 CustomResourceDefinition 资源
  • 操作包括:列表、获取、创建、更新、删除
  • [x] Pod 管理能力(exec,日志)
  • [x] 部署管理能力(规模)
  • [ ] 描述 Kubernetes 资源
  • [ ] 解释 Kubernetes 资源

诊断

  • [x] 舱体诊断(分析舱体状态、容器状态、舱体资源利用率)
  • [x] 服务诊断(分析服务选择器配置,而非端点、事件)
  • [x] 部署诊断(分析可用副本)
  • [x] StatefulSet 诊断(分析状态完整集服务(如存在,分析 pvc,或可用副本)
  • [x] CronJob 诊断(分析 CronJob 的排班时间、起始截止日期、最后排程时间)
  • [x] 入口诊断(分析入口类配置、相关服务、TLS秘密)

本页由 AI 翻译,技术细节请以原文为准。

README

mcp-k8s-eye

mcp-k8s-eye is a tool that can manage kubernetes cluster and analyze workload status.

Features

Core Kubernetes Operations

  • [x] Connect to a Kubernetes cluster
  • [x] Generic Kubernetes Resources management capabilities
    • Support all navtie resources: Pod, Deployment, Service, StatefulSet, Ingress…
    • Support CustomResourceDefinition resources
    • Operations include: list, get, create, update, delete
  • [x] Pod management capabilities (exec, logs)
  • [x] Deployment management capabilities (scale)
  • [ ] Describe Kubernetes resources
  • [ ] Explain Kubernetes resources

Diagnostics

  • [x] Pod diagnostics (analyze pod status, container status, pod resource utilization)
  • [x] Service diagnostics (analyze service selector configuration, not ready endpoints, events)
  • [x] Deployment diagnostics (analyze available replicas)
  • [x] StatefulSet diagnostics (analyze statefulset service if exists, pvc if exists, available replicas)
  • [x] CronJob diagnostics (analyze cronjob schedule, starting deadline, last schedule time)
  • [x] Ingress diagnostics (analyze ingress class configuration, related services, tls secrets)
  • [x] NetworkPolicy diagnostics (analyze networkpolicy configuration, affected pods)
  • [x] ValidatingWebhook diagnostics (analyze webhook configuration, referenced services and pods)
  • [x] MutatingWebhook diagnostics (analyze webhook configuration, referenced services and pods)
  • [x] Node diagnostics (analyze node conditions)
  • [ ] Cluster diagnostics and troubleshooting

Monitoring

  • [x] Pod, Deployment, ReplicaSet, StatefulSet, DaemonSet workload resource usage (cpu, memory)
  • [ ] Node capacity, utilization (cpu, memory)
  • [ ] Cluster capacity, utilization (cpu, memory)

Advanced Features

  • [x] Multiple transport protocols support (Stdio, SSE)
  • [x] Support multiple AI Clients

Requirements

  • Go 1.23 or higher
  • kubectl configured

Installation

# clone the repository
git clone https://github.com/malepuppet/mcp-k8s-eye.git
cd mcp-k8s-eye

# build the binary
go build -o mcp-k8s-eye

Usage

Stdio mode

{
  "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.

SSE mode

  1. start your mcp sse server
  2. config your mcp server
{
  "mcpServers": {
    "k8s eye": {
      "url": "http://localhost:8080/sse",
      "env": {}
    }
  }
}

cursor tools

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →