GG

googlecloudplatform/gke-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

169 stars 81 forks 品質 78 トレンド 37Apache-2.0

MCP互換のAIエージェントがGoogle Kubernetes Engineとやり取りできるようにしましょう。

概要

MCP互換のAIエージェントがGoogle Kubernetes Engineとやり取りできるようにしましょう。 MCPサーバーのインストール方法を選び、AIを接続してください。 まだGoをインストールしていない場合は、以下の指示に従ってください。 Goがインストールされたら、以下のコマンドを実行してgke-mcpをインストールしてください: gke-mcpバイナリはGOBIN環境変数で指定されたディレクトリにインストールされます。GOBINが設定されていない場合はデフォルトで$GOPATH/binとなり、GOPATHも設定されていなければ$HOME/go/binにフォールバックします。 正確な場所はgo env GOBINを実行することで特定できます。コマンドが空の値を返す場合は、go env GOPATHを実行してインストールディレクトリを探してください。 追加の助けはトラブルシューティングセクションを参照してください:gke-mcp: command not found。 GKE MCPサーバーをカーソル、Visual Studio Code、Claude Desktop、Claude Codeなどの様々なAIクライアントに接続する詳細な手順については、専用のインストールガイドをご参照ください。

概要(AI 翻訳)

MCP互換のAIエージェントがGoogle Kubernetes Engineとやり取りできるようにしましょう。

設置

MCPサーバーのインストール方法を選び、AIを接続してください。

Gemini CLI拡張としての使用

  1. Gemini CLIをインストールする。

  2. 拡張機能のインストール

MCPクライアント/その他のAIでの使用

クイックインストール(LinuxおよびmacOSのみ)

手動インストール

まだGoをインストールしていない場合は、以下の指示に従ってください。

Goがインストールされたら、以下のコマンドを実行してgke-mcpをインストールしてください:

gke-mcpバイナリはGOBIN環境変数で指定されたディレクトリにインストールされます。GOBINが設定されていない場合はデフォルトで$GOPATH/binに戻り、GOPATHも設定されていなければ$HOME/go/binに戻されます。

正確な場所はgo env GOBINを実行することで特定できます。コマンドが空の値を返す場合は、go env GOPATHを実行してインストールディレクトリを探してください。

追加の助けはトラブルシューティングセクションを参照してください:gke-mcp: command not found。

MCPサーバーをAIに追加

GKE MCPサーバーをカーソル、Visual Studio Code、Claude Desktop、Claude Codeなどの様々なAIクライアントに接続する詳細な手順については、専用のインストールガイドをご参照ください。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

GKE MCP Server and Gemini CLI Extension

Enable MCP-compatible AI agents to interact with Google Kubernetes Engine.

Installation

Choose a way to install the MCP Server and then connect your AI to it.

Use as a Gemini CLI Extension

  1. Install Gemini CLI.

  2. Install the extension

gemini extensions install https://github.com/GoogleCloudPlatform/gke-mcp.git

Use in MCP Clients / Other AIs

Quick Install (Linux & macOS only)

curl -sSL https://raw.githubusercontent.com/GoogleCloudPlatform/gke-mcp/main/install.sh | bash

Manual Install

If you haven’t already installed Go, follow these instructions.

Once Go is installed, run the following command to install gke-mcp:

go install github.com/GoogleCloudPlatform/gke-mcp@latest

The gke-mcp binary will be installed in the directory specified by the GOBIN environment variable. If GOBIN is not set, it defaults to $GOPATH/bin and, if GOPATH is also not set, it falls back to $HOME/go/bin.

You can find the exact location by running go env GOBIN. If the command returns an empty value, run go env GOPATH to find the installation directory.

For additional help, refer to the troubleshoot section: gke-mcp: command not found.

Add the MCP Server to your AI

For detailed instructions on how to connect the GKE MCP Server to various AI clients, including Cursor, Visual Studio Code, Claude Desktop, and Claude Code, please refer to our dedicated installation guide.

Configuring the Developer Knowledge API

The manifest generation agent (generate_manifest tool) can retrieve official GKE documentation, required annotations, and best practices using the Developer Knowledge API.

To enable this capability:

  1. Enable the API: Enable the Developer Knowledge API in your Google Cloud Project (refer to the Developer Knowledge API documentation for details).
  2. Generate an API Key: Create an API key with permissions to call the Developer Knowledge API.
  3. Configure the Environment Variable: Set the DK_API_KEY environment variable when starting the MCP server:
    • Gemini CLI / Terminal:
      export DK_API_KEY="your-api-key-here"
      
    • Cursor / Claude Desktop / Visual Studio Code: Add the environment variable to your client’s MCP configuration. For example, in claude_desktop_config.json:
      {
        "mcpServers": {
          "gke-mcp": {
            "command": "gke-mcp",
            "env": {
GitHub で README 全文を見る

インストール

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

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "gke-mcp": { "command": "gke-mcp", "env": { "DK_API_KEY": "your-api-key-here" } } } }