Back to Home
MADARAKZ icon

MCP-Server

by MADARAKZ

Overview

Manages Kubernetes OPA Gatekeeper policies using natural language commands, powered by Google Gemini AI.

Installation

Run Command
export GEMINI_API_KEY="your-api-key" && ./mcp-client -server ./mcp-server

Environment Variables

  • GEMINI_API_KEY
  • KUBECONFIG

Security Notes

CRITICAL VULNERABILITY: The `mcp-client/ai.go` explicitly disables SSL/TLS certificate verification by setting `TLSClientConfig: &tls.Config{InsecureSkipVerify: true}` when connecting to the Google Gemini API. This makes the connection highly susceptible to Man-in-the-Middle (MITM) attacks, allowing an attacker to intercept, read, and modify communication (including the GEMINI_API_KEY) without detection. This is a severe security flaw. Additionally, the `mcp-server/k8s.go` executes `kubectl` commands based on input from the client (and implicitly, the AI). While `exec.CommandContext` mitigates simple shell injection, the server acts as a trusted executor for arbitrary YAML content (from files or AI-generated manifests). There is no inherent validation of the YAML content itself by the server before applying it, making the system vulnerable to malicious policy definitions or resource deployments if the AI hallucinates harmful content or the client is compromised.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens300
Stars0
Forks0
Last Update2026-01-18

Tags

KubernetesOPA GatekeeperPolicy ManagementAI AssistantJSON-RPC