Skip to main content
Glama

kube-mcp

by lochgeo

kube-mcp

获取 Gemini APi 密钥

前往https://aistudio.google.com/获取 API 密钥。目前,gemini-2.0-pro-exp-02-05 LLM 完全免费。其他型号也提供非常优惠的价格。

安装 Codename Goose

Goose 是一个开源 AI 代理,它通过自动化编码任务来增强您的软件开发能力。我们将使用 Codename Goose,因为它内置了 MCP 客户端。请按照此处的步骤安装 Codename Goose: https://block.github.io/goose/docs/getting-started/installation 。设置 GOOGLE_API_KEY 环境变量,以便 Goose 知道使用 Gemini API。了解如何使用goose configure进行配置,以及如何使用goose session以会话方式启动。

开发 MCP 服务器

通过阅读文档了解 MCP: https://modelcontextprotocol.io/introduction以及 Python SDK: https://github.com/modelcontextprotocol/python-sdk克隆此仓库并使用mcp dev server.py进行测试。请注意,本项目使用uv包管理器而不是 pip。通过阅读文档了解uvhttps://github.com/astral-sh/uv本项目使用 Kubernetes python 客户端: https://github.com/kubernetes-client/python

安装 Minikube

按照以下说明安装 minikube: https://minikube.sigs.k8s.io/docs/start/? arch=/linux/x86-64/stable/binary+download 确保集群配置已提供给 MCP 服务器。查看KubernetesManagerconfig.load_kube_config()以了解配置的加载方式。

将您的 MCP 服务器连接到 Codename Goose

通过阅读以下文档将 MCP 服务器添加为扩展: https://block.github.io/goose/docs/getting-started/using-extensions使用命令goose session --with-builtin developer --with-extension "uvx kube-mcp"启动新的 goose 会话

让一切正常运转

尝试在 Goose 中发出命令并使其使用 MCP 服务器与 Minikube 进行交互

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP 服务器可以通过自然语言与 Kubernetes/Minikube 集群进行交互,从而允许 Codename Goose 等 AI 代理通过模型上下文协议管理 Kubernetes 资源。

  1. 获取 Gemini APi 密钥
    1. 安装 Codename Goose
      1. 开发 MCP 服务器
        1. 安装 Minikube
          1. 将您的 MCP 服务器连接到 Codename Goose
            1. 让一切正常运转

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A read-only MCP server for Kubernetes that allows querying cluster information and diagnosing issues through natural language interfaces like Claude.
                Last updated -
                1
                Python
                MIT License
                • Apple
                • Linux
              • -
                security
                F
                license
                -
                quality
                A server that enables LLMs to manage Kubernetes clusters through natural language commands, wrapping kubectl operations to provide a simplified interface for common Kubernetes tasks.
                Last updated -
                3
                Python
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.
                Last updated -
                32
                80
                5
                TypeScript
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables AI assistants to interact with Kubernetes clusters through natural language, supporting core Kubernetes operations, monitoring, security, and diagnostics.
                Last updated -
                604
                Python
                MIT License
                • Linux
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/lochgeo/kube-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server