flux-operator
by controlplaneio-fluxcd
Overview
The Flux Operator MCP Server enables AI assistants to interact with Kubernetes clusters managed by the Flux Operator through natural language, allowing analysis, troubleshooting, and operations on GitOps pipelines.
Installation
./bin/flux-operator-mcp serve --transport sse --port 8080Environment Variables
- KUBECONFIG
- RUNTIME_NAMESPACE
- DEFAULT_SERVICE_ACCOUNT
- DEFAULT_WORKLOAD_IDENTITY_SERVICE_ACCOUNT
- REPORTING_INTERVAL
Security Notes
The MCP Server operates with high privileges, including `cluster-admin` role, which is necessary for its function as a Flux CD lifecycle manager. It handles sensitive data such as Kubernetes secrets (image pull secrets, Git/OCI credentials) and authentication tokens (OIDC, Bearer). While sensitive data is generally handled via Kubernetes Secrets and environment variables, reducing direct hardcoding, any misconfiguration or vulnerability in the operator itself could lead to exposure. The `ResourceSetInputProvider` integrates with external Git and OCI APIs, expanding the attack surface. The use of Go templates for resource generation in `ResourceSet` might introduce injection risks if not used carefully, though Go's templating is generally robust. License Key Management (LKM) uses standard cryptographic primitives but relies on environment variables for keys, which require secure handling.
Similar Servers
mcp-server-kubernetes
Manages Kubernetes clusters by executing kubectl and Helm commands, facilitating automation and interaction through the Model Context Protocol.
kubernetes-mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to interact with Kubernetes and OpenShift clusters, enabling AI-driven cluster management and diagnosis.
mcp-k8s-go
An MCP server enabling AI assistants and users to interact with and manage Kubernetes clusters by listing, getting, applying, and executing commands on Kubernetes resources.
mcp-for-argocd
Enables AI assistants to interact with Argo CD applications through natural language, streamlining DevOps tasks.