Kube Core MCP

by Jess321995
1
  • Linux

Integrations

  • Exposes API endpoints for health checks, service discovery, natural language command processing, and direct command execution through a REST interface

  • Converts natural language requests into valid kubectl commands for Kubernetes cluster management, supporting operations like viewing pods, services, and other resources across namespaces with built-in security validation

Kube コア MCP

自然言語リクエストを有効な kubectl コマンドに変換する Kubernetes コマンド処理サービス。

特徴

  • 自然言語からkubectlコマンドへの変換
  • コマンドの検証とセキュリティチェック
  • 一般的な kubectl 操作のサポート
  • LLM 処理のための AWS Bedrock 統合

前提条件

  • Python 3.8以上
  • AWS認証情報が設定されている
  • kubectl がインストールおよび設定されている
  • Node.js と npm (フロントエンド用)

設定

  1. リポジトリをクローンします。
git clone <repository-url> cd kube-core-mcp
  1. 仮想環境を作成してアクティブ化します。
python3 -m venv venv source venv/bin/activate # On Windows: .\venv\Scripts\activate
  1. 依存関係をインストールします:
pip install -r requirements.txt
  1. AWS 認証情報を設定します。
export AWS_ACCESS_KEY_ID=your_access_key export AWS_SECRET_ACCESS_KEY=your_secret_key export AWS_REGION=your_region
  1. FastAPI サーバーを起動します。
python src/server.py

APIドキュメント

健康チェック

curl http://localhost:3000/health

サービス

curl http://localhost:3000/api/services

自然言語コマンド

curl -X POST http://localhost:3000/api/nl \ -H "Content-Type: application/json" \ -d '{"message": "show me the pods in default namespace"}'

直接コマンド

curl -X POST http://localhost:3000/api/command \ -H "Content-Type: application/json" \ -d '{"command": "kubectl get pods -n default"}'

安全

このサービスは、次の 2 つのセキュリティ モードで動作します。

  1. STRICT (デフォルト):
    • 定義済みのコマンドパターンのみを許可します
    • すべてのコマンドを許可されたパターンに対して検証します
    • 危険な操作を防止
  2. 許容:
    • より柔軟なコマンドパターンが可能
    • 基本的なセキュリティチェックは維持されている
    • 開発とテストに役立つ

発達

テストの実行

pytest tests/

コードスタイル

black src/ tests/ flake8 src/ tests/

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更を加える
  4. テストを実行する
  5. プルリクエストを送信する

ライセンス

[ライセンス情報の追加]

-
security - not tested
F
license - not found
-
quality - not tested

自然言語リクエストを有効な kubectl コマンドに変換し、コマンド検証とセキュリティ チェックを提供する Kubernetes コマンド処理サービス。

  1. 特徴
    1. 前提条件
      1. 設定
        1. APIドキュメント
          1. 健康チェック
          2. サービス
          3. 自然言語コマンド
          4. 直接コマンド
        2. 安全
          1. 発達
            1. テストの実行
            2. コードスタイル
            3. 貢献
          2. ライセンス

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              TypeScript implementation of Kubernetes cluster operations for pods, deployments, services.
              Last updated -
              9
              1,194
              560
              TypeScript
              MIT License
              • Linux
              • Apple
            • A
              security
              F
              license
              A
              quality
              A MCP server that can run Kubernetes commands with a given kubeconfig path and provide interpretation of the commands.
              Last updated -
              1
              2
              JavaScript
              • Apple
            • -
              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
              A
              license
              -
              quality
              An MCP server that enables interaction with Kubernetes/Minikube clusters through natural language, allowing AI agents like Codename Goose to manage Kubernetes resources via the Model Context Protocol.
              Last updated -
              Python
              MIT License

            View all related MCP servers

            ID: zcpd66bfu2