CK

containers/kubernetes-mcp-server

Deployment & DevOps

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

2210 stars 474 forks 品質 93 トレンド 52Apache-2.0

KubernetesおよびOpenShift向けのモデルコンテキストプロトコル(MCP)サーバー

概要

https://github.com/user-attachments/assets/be2b67b3-fc1c-4d11-ae46-93deba8ed98e および をサポートする強力で柔軟なKubernetesモデルコンテキストプロトコル(MCP)サーバー実装です。 - : - Kubernetes構成の変更を自動的に検出し、MCPサーバーを更新します。- 現在のKubernetes .kube/configまたはクラスタ内設定を管理します。- : KubernetesまたはOpenShiftリソースに対して操作を実行します。- 任意のCRUD操作(作成または更新、取得、リスト、削除)。- : ポッド固有の操作を実行します。- すべての名前空間または特定の名前空間内のポッド。- 指定された名前空間のポッド。- 指定された名前空間のポッド。- 指定された名前空間のポッドの名称。- 指定された名前空間内のポッドまたは特定のポッドのリソース使用指標を取得する。- ポッドに入力しコマンドを実行する。- ポッド内のコンテナイメージを作成し、任意で公開する。- : Kubernetesの名前空間を一覧表示。- : すべての名前空間または特定の名前空間でKubernetesイベントを閲覧。

概要(AI 翻訳)

特徴 |🚀はじめ |🎥デモ |⚙️設定 |🛠️ツール |💬コミュニティ |🧑 💻開発 ✨

https://github.com/user-attachments/assets/be2b67b3-fc1c-4d11-ae46-93deba8ed98e

✨ 特徴

KubernetesとOpenShiftをサポートした、強力で柔軟なKubernetesモデルコンテキストプロトコル(MCP)サーバー実装です。

  • ** ✅ 構成**:
  • Kubernetesの設定変更を自動的に検出し、MCPサーバーを更新します。
  • **現在のKubernetes.kube/configまたはクラスタ内構成を閲覧・管理。
  • ** ✅ 汎用Kubernetesリソース**:任意のKubernetesまたはOpenShiftリソースに対して操作を行います。
  • 任意のCRUD操作(作成または更新、取得、リスト、削除)。
  • ** ✅ ポッド**:ポッド固有の操作を行います。
  • **すべての名前空間または特定の名前空間にポッドをリスト。
  • **指定された名前空間から名前でポッドを取得する。
  • **指定された名前空間からポッドを名前で削除。
  • **指定された名前空間からポッドの名前でログを表示します。
  • Top は指定された名前空間内のすべてのポッドまたは特定のポッドのリソース使用指標を取得します。
  • エグゼックをポッドに突入し、コマンドを実行してください。

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

README

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

Kubernetes MCP Server

✨ Features | 🚀 Getting Started | 🎥 Demos | ⚙️ Configuration | 🛠️ Tools | 💬 Community | 🧑‍💻 Development

https://github.com/user-attachments/assets/be2b67b3-fc1c-4d11-ae46-93deba8ed98e

✨ Features

A powerful and flexible Kubernetes Model Context Protocol (MCP) server implementation with support for Kubernetes and OpenShift.

  • ✅ Configuration:
    • Automatically detect changes in the Kubernetes configuration and update the MCP server.
    • View and manage the current Kubernetes .kube/config or in-cluster configuration.
  • ✅ Generic Kubernetes Resources: Perform operations on any Kubernetes or OpenShift resource.
    • Any CRUD operation (Create or Update, Get, List, Delete).
  • ✅ Pods: Perform Pod-specific operations.
    • List pods in all namespaces or in a specific namespace.
    • Get a pod by name from the specified namespace.
    • Delete a pod by name from the specified namespace.
    • Show logs for a pod by name from the specified namespace.
    • Top gets resource usage metrics for all pods or a specific pod in the specified namespace.
    • Exec into a pod and run a command.
    • Run a container image in a pod and optionally expose it.
  • ✅ Namespaces: List Kubernetes Namespaces.
  • ✅ Events: View Kubernetes events in all namespaces or in a specific namespace.
  • ✅ Projects: List OpenShift Projects.
  • ☸️ Helm:
    • Install a Helm chart in the current or provided namespace.
    • List Helm releases in all namespaces or in a specific namespace.
    • Uninstall a Helm release in the current or provided namespace.
  • 🔧 Tekton: Tekton-specific operations that complement generic Kubernetes resource management.
    • Pipeline: Start a Tekton Pipeline by creating a PipelineRun.
    • PipelineRun: Restart, cancel, troubleshoot, and retrieve PipelineRun logs.
GitHub で README 全文を見る

インストール

npx -y kubernetes-mcp-server@latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "kubernetes": { "command": "npx", "args": ["-y", "kubernetes-mcp-server@latest"] } } }