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は完全に無料でご利用いただけます。その他のモデルも非常にお手頃な価格でご利用いただけます。

コードネーム・グースをインストールする

Gooseは、コーディングタスクを自動化することでソフトウェア開発を加速させるオープンソースのAIエージェントです。MCPクライアントが組み込まれているため、Codename Gooseを使用します。https ://block.github.io/goose/docs/getting-started/installationの手順に従ってCodename Gooseをインストールしてください。GooseがGemini APIを使用するように、GOOGLE_API_KEY環境変数を設定してください。goose goose configureを使って設定する方法と、 goose sessionを使ってセッションとして起動する方法を理解してください。

MCPサーバーの開発

MCPについては、ドキュメント( https://modelcontextprotocol.io/introduction )とPython SDK( https://github.com/modelcontextprotocol/python-sdk )をご覧ください。このリポジトリをクローンし、 mcp dev server.pyを使ってテストしてください。このプロジェクトでは、pipではなくuvパッケージマネージャーを使用していることに注意してください。UVについては、ドキュメント( https://github.com/astral-sh/uv)をご覧ください。このプロジェクトでは、kubernetes pythonクライアント( https://github.com/kubernetes-client/python uvを使用しています。

Minikubeをインストールする

以下の手順に従ってminikubeをインストールしてください: https: KubernetesManager ?arch=/linux/x86-64/stable/binary+download クラスターの設定がMCPサーバーに提供されていることを確認してください。KubernetesManagerとconfig.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.

自然言語を介して Kubernetes/Minikube クラスターとの対話を可能にする MCP サーバー。Codename Goose などの AI エージェントがモデル コンテキスト プロトコルを介して Kubernetes リソースを管理できるようになります。

  1. Gemini APIキーを取得する
    1. コードネーム・グースをインストールする
      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 -
                7
                Python
                MIT License
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                An MCP server that enables interaction with Kubernetes resources through natural language interfaces like Goose CLI, allowing users to get, read, and patch Kubernetes resources.
                Last updated -
                Python
                Apache 2.0
              • -
                security
                F
                license
                -
                quality
                An auto-generated MCP server that enables interaction with Google Kubernetes Engine Hub API for multi-cluster management through natural language commands.
                Last updated -
                Python

              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