Logo de GKE MCP Server and Gemini CLI Extension

GKE MCP Server and Gemini CLI Extension

Organização
GoogleCloudPlatform

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

Publicado porGoogleCloudPlatform
Repositóriogke-mcp
IdiomaGo
Forks
82
Estrelas
167
Ferramentas disponíveis
0
Tipo de transportestdio, streamable-http
Categorias
LicençaApache-2.0
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    GKE MCP Server and Gemini CLI Extension disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    167 estrelas e 82 forks no repositório vinculado.

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

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

Use in MCP Clients / Other AIs

Quick Install (Linux & macOS only)

sh
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:

sh
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:
      sh
      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:
      json
      {
        "mcpServers": {
          "gke-mcp": {
            "command": "gke-mcp",
            "env": {
              "DK_API_KEY": "your-api-key-here"
            }
          }
        }
      }

Optional configuration:

  • DK_BASE_URL: The base URL of the Developer Knowledge API (defaults to https://knowledge.googleapis.com).

MCP Tools

  • cluster_toolkit_download: Download the Cluster Toolkit Git repository.
  • list_clusters: List GKE clusters.
  • get_cluster: Get detailed information about a single GKE cluster.
  • create_cluster: Create a new GKE cluster (defaults to Autopilot).
  • get_kubeconfig: Configure kubeconfig for a GKE cluster.
  • update_cluster: Update a GKE cluster.
  • get_node_sos_report: Generate and download an SOS report from a GKE node.
  • delete_cluster: Delete a GKE cluster (if enabled).
  • list_node_pools: List node pools in a GKE cluster.
  • get_node_pool: Get details for a GKE node pool.
  • create_node_pool: Create a new node pool in a GKE cluster.
  • update_node_pool: Update a GKE node pool.
  • delete_node_pool: Delete a GKE node pool (if enabled).
  • gke_deploy: Deploy a workload to a GKE cluster using a configuration file.
  • query_logs: Query Google Cloud Platform logs using Logging Query Language (LQL).
  • get_log_schema: Get the schema for a specific GKE log type.
  • list_monitored_resource_descriptors: List monitored resource descriptors for GKE.
  • list_recommendations: List recommendations for GKE clusters.
  • get_k8s_changelog: Get Kubernetes changelog for upgrades.
  • get_gke_release_notes: Get GKE release notes.
  • generate_manifest: Generate a Kubernetes manifest using Vertex AI.
  • get_k8s_resource: Gets one or more Kubernetes resources from a cluster.
  • list_k8s_events: Retrieves events from a Kubernetes cluster.
  • get_k8s_version: Retrieves the Kubernetes server version for a given cluster.
  • apply_k8s_manifest: Applies a Kubernetes manifest to a cluster using server-side apply.
  • get_k8s_logs: Gets logs from a Kubernetes container in a pod.
  • delete_k8s_resource: Delete a Kubernetes resource from a cluster.

MCP Prompts

Prompts provide guided workflows and expert knowledge templates.

  • gke:cost: Answer natural language questions about GKE-related costs.
  • gke:deploy: Deploys a workload to a GKE cluster using a configuration file.
  • gke:upgrade-risk-report: GKE control plane upgrade risk report, analyzing the potential risks of upgrading from its current version to the target version. Performs pre-upgrade checks, API deprecations scans, and more.
  • gke:upgrades-best-practices-risk-report: GKE control plane upgrade best practices, applied for the specified cluster. Helps making upgrades uneventful.

MCP Context

In addition to the tools above, a lot of value is provided through the bundled context instructions.

  • Cost: The provided instructions allows the AI to answer many questions related to GKE costs, including queries related to clusters, namespaces, and Kubernetes workloads.

  • GKE Known Issues: The provided instructions allows the AI to fetch the latest GKE Known issues and check whether the cluster is affected by one of these known issues.

Supported MCP Transports

By default, gke-mcp uses the stdio transport. Additionally, the Streamable HTTP transport is supported as well.

You can set the transport mode using the following options:

--server-mode: transport to use for the server: stdio (default) or http

--server-host: server host to use when server-mode is http; defaults to 127.0.0.1

--server-port: server port to use when server-mode is http; defaults to 8080

sh
gke-mcp --server-mode http --server-host 127.0.0.1 --server-port 8080

[!WARNING] By default, the HTTP server binds to 127.0.0.1, which limits access to the local machine. If you explicitly set --server-host 0.0.0.0 or another non-loopback address, the server may become reachable from other machines on your network. Please ensure you have a firewall and/or other security measures in place if the server is not intended to be private.

Connecting Gemini CLI to the HTTP Server

To connect Gemini CLI to the gke-mcp HTTP server, you need to configure the CLI to point to the correct endpoint. You can do this by updating your ~/.gemini/settings.json file. For a basic setup without authentication, the file should look like this:

json
{
  "mcpServers": {
    "gke": {
      "httpUrl": "http://127.0.0.1:8080/mcp"
    }
  }
}

This configuration tells Gemini CLI how to reach the gke-mcp server running on your local machine at port 8080.

Development

To compile the binary and update the gemini-cli extension with your local changes, follow these steps:

  1. Remove the global gke-mcp configuration

    sh
    rm -rf ~/.gemini/extensions/gke-mcp
  2. Build the binary from the root of the project:

    sh
    go build -o gke-mcp .
  3. Run the installation command to update the extension manifest:

    sh
    ./gke-mcp install gemini-cli --developer

    This will make gemini-cli use your locally compiled binary.

Disclaimers

  • The Google Cloud Platform Terms of Service (available at https://cloud.google.com/terms/) and the Data Processing and Security Terms (available at https://cloud.google.com/terms/data-processing-terms) do not apply to any component of the GKE MCP Server software.
  • This tool is provided for education and experimentation, and is not an officially supported Google product. It is maintained on a best-effort basis, and may change without notice.
  • This project interacts with Large Language Models and comes with inherent risks.
    • Use at Your Own Risk: This software is experimental, non-deterministic, and provided "AS IS" with NO GUARANTEES or warranties.
    • NOT FOR PRODUCTION USE.
    • Data Sensitivity: Avoid using untrusted data. NEVER input secrets, API keys, or sensitive information.
    • Verify Outputs: LLM responses can be unpredictable and may be inaccurate. Always verify results.

Instalação

TypingMind
{
  "mcpServers": {
    "gke-mcp": {
      "command": "gke-mcp",
      "args": []
    }
  }
}

Use o MCP de GKE MCP Server and Gemini CLI Extension com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar GKE MCP Server and Gemini CLI Extension, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. É possível executar o MCP localmente no seu dispositivo ou se conectar à URL de um servidor MCP remoto.

Opção 1: use o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione GKE MCP Server and Gemini CLI Extension como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de GKE MCP Server and Gemini CLI Extension.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "gke-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de GKE MCP Server and Gemini CLI Extension, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de GKE MCP Server and Gemini CLI Extension.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar GKE MCP Server and Gemini CLI Extension para me ajudar nesta tarefa?
GKE MCP Server and Gemini CLI Extension
Claro. Já li.
Veja o que encontrei usando GKE MCP Server and Gemini CLI Extension.

Opção 2: Adicione a URL de um servidor MCP

Use esta opção quando GKE MCP Server and Gemini CLI Extension já estiver hospedado remotamente ou quando sua equipe quiser um conector compartilhado que vários usuários possam acessar.

1

Abra Conectores MCP

No TypingMind, vá até Plugins, abra Conectores MCP e selecione Adicionar URL.

  1. Abra o TypingMind no navegador.
  2. Acesse Plugins.
  3. Abra Conectores MCP.
  4. Clique em Adicionar URL.
Formulário do TypingMind para adicionar a URL de um servidor MCP personalizado
2

Cole a URL do servidor

Insira a URL do servidor MCP fornecida pelo provedor no campo URL do servidor. Adicione um nome para a conexão, uma descrição, um ícone, cabeçalhos HTTP personalizados ou configurações do cliente OAuth se o servidor exigir.

  1. Cole a URL do servidor MCP fornecida pelo provedor no campo URL do servidor.
  2. Digite um nome para a conexão de GKE MCP Server and Gemini CLI Extension.
  3. Adicione uma descrição e um ícone para facilitar a identificação.
  4. Adicione cabeçalhos HTTP personalizados ou dados do cliente OAuth se o servidor exigir autenticação.
3

Crie a conexão

Clique em Criar conexão, volte à lista de Plugins e confirme que a nova conexão MCP está ativa.

  1. Clique em Criar conexão.
  2. Volte à lista de conectores MCP.
  3. Confirme que a conexão de GKE MCP Server and Gemini CLI Extension aparece como ativa.
  4. Atualize a lista de plugins se a conexão não aparecer imediatamente.
4

Troque de modelo sem reconectar

Inicie um chat com seu modelo preferido, ative as ferramentas de GKE MCP Server and Gemini CLI Extension em Plugins e mude para outro modelo sempre que necessário. A conexão MCP continua disponível no espaço de trabalho do TypingMind.

  1. Inicie um novo chat no TypingMind.
  2. Selecione o modelo de IA que deseja usar.
  3. Ative as ferramentas de GKE MCP Server and Gemini CLI Extension em Plugins.
  4. Peça ao modelo para usar a ferramenta quando necessário.
  5. Mude para outro modelo de IA e reutilize a mesma conexão MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar GKE MCP Server and Gemini CLI Extension para me ajudar nesta tarefa?
GKE MCP Server and Gemini CLI Extension
Claro. Já li.
Veja o que encontrei usando GKE MCP Server and Gemini CLI Extension.

Perguntas frequentes

Para que serve o servidor MCP GKE MCP Server and Gemini CLI Extension?

GKE MCP Server and Gemini CLI Extension é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP GKE MCP Server and Gemini CLI Extension com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar GKE MCP Server and Gemini CLI Extension com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP GKE MCP Server and Gemini CLI Extension com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com GKE MCP Server and Gemini CLI Extension conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP GKE MCP Server and Gemini CLI Extension ao TypingMind?

É possível conectar GKE MCP Server and Gemini CLI Extension ao TypingMind com o conector MCP local ou adicionando a URL de um servidor MCP remoto. Use o conector local quando o servidor precisar acessar arquivos, apps ou recursos privados no seu dispositivo, e use uma URL de servidor quando o servidor MCP estiver hospedado remotamente.

Quais ferramentas o MCP GKE MCP Server and Gemini CLI Extension oferece no TypingMind?

GKE MCP Server and Gemini CLI Extension disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP GKE MCP Server and Gemini CLI Extension?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se GKE MCP Server and Gemini CLI Extension exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇