Skip to main content
Glama

Kube Core MCP

by Jess321995

Kube Core MCP

Ein Kubernetes-Befehlsverarbeitungsdienst, der Anfragen in natürlicher Sprache in gültige Kubectl-Befehle umwandelt.

Merkmale

  • Konvertierung von natürlicher Sprache in Kubectl-Befehle
  • Befehlsvalidierung und Sicherheitsüberprüfungen
  • Unterstützung für gängige Kubectl-Operationen
  • AWS Bedrock-Integration für die LLM-Verarbeitung

Voraussetzungen

  • Python 3.8+
  • AWS-Anmeldeinformationen konfiguriert
  • kubectl installiert und konfiguriert
  • Node.js und npm (für Frontend)

Aufstellen

  1. Klonen Sie das Repository:
git clone <repository-url> cd kube-core-mcp
  1. Erstellen und aktivieren Sie eine virtuelle Umgebung:
python3 -m venv venv source venv/bin/activate # On Windows: .\venv\Scripts\activate
  1. Installieren Sie Abhängigkeiten:
pip install -r requirements.txt
  1. Konfigurieren Sie die AWS-Anmeldeinformationen:
export AWS_ACCESS_KEY_ID=your_access_key export AWS_SECRET_ACCESS_KEY=your_secret_key export AWS_REGION=your_region
  1. Starten Sie den FastAPI-Server:
python src/server.py

API-Dokumentation

Gesundheitscheck

curl http://localhost:3000/health

Leistungen

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

Befehle in natürlicher Sprache

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

Direkte Befehle

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

Sicherheit

Der Dienst arbeitet in zwei Sicherheitsmodi:

  1. STRICT (Standard):
    • Erlaubt nur vordefinierte Befehlsmuster
    • Validiert alle Befehle anhand zulässiger Muster
    • Verhindert gefährliche Operationen
  2. PERMISSIV:
    • Ermöglicht flexiblere Befehlsmuster
    • Behält weiterhin grundlegende Sicherheitskontrollen bei
    • Nützlich für Entwicklung und Tests

Entwicklung

Ausführen von Tests

pytest tests/

Codestil

black src/ tests/ flake8 src/ tests/

Beitragen

  1. Forken Sie das Repository
  2. Erstellen eines Feature-Zweigs
  3. Nehmen Sie Ihre Änderungen vor
  4. Führen Sie Tests durch
  5. Senden einer Pull-Anfrage

Lizenz

[Lizenzinformationen hinzufügen]

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Ein Kubernetes-Befehlsverarbeitungsdienst, der Anfragen in natürlicher Sprache in gültige Kubectl-Befehle umwandelt und Befehlsvalidierung und Sicherheitsüberprüfungen bereitstellt.

  1. Merkmale
    1. Voraussetzungen
      1. Aufstellen
        1. API-Dokumentation
          1. Gesundheitscheck
          2. Leistungen
          3. Befehle in natürlicher Sprache
          4. Direkte Befehle
        2. Sicherheit
          1. Entwicklung
            1. Ausführen von Tests
            2. Codestil
            3. Beitragen
          2. Lizenz

            Related MCP Servers

            • 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
              4
              • Apple
            • -
              security
              F
              license
              -
              quality
              A modular command processor server that enables interaction with GitHub's REST API to fetch user details, repository information, and authenticated user data through natural language commands in Claude.
              Last updated -
            • A
              security
              F
              license
              A
              quality
              A server that enables LLMs to manage Kubernetes clusters through natural language commands, wrapping kubectl operations to provide a simplified interface for common Kubernetes tasks.
              Last updated -
              25
              9
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants to interact with Kubernetes clusters through natural language, supporting core Kubernetes operations, monitoring, security, and diagnostics.
              Last updated -
              716
              MIT License
              • Linux
              • Apple

            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/Jess321995/kube-core-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server