GitOps toolkit for Kubernetes deployments.
## Flux CD MCP Server: GitOps for Kubernetes The **Flux CD MCP Server** integrates the CNCF GitOps toolkit into Google Antigravity, enabling developers to manage Kubernetes deployments through Git-based workflows with automated reconciliation. ### Why Flux CD MCP? - **GitOps native** - Git as the source of truth - **Automated sync** - Continuous reconciliation - **Multi-tenancy** - Support for multiple teams - **Helm support** - Native Helm chart management - **Kustomize** - Built-in Kustomize support ### Key Features #### 1. Source Management ```python # Create Git source source = await mcp.call("fluxcd", "create_git_repository", { "namespace": "flux-system", "name": "app-manifests", "url": "https://github.com/org/manifests", "branch": "main", "interval": "1m" }) # List sources sources = await mcp.call("fluxcd", "list_sources", { "namespace": "flux-system" }) ``` #### 2. Kustomization ```python # Create kustomization await mcp.call("fluxcd", "create_kustomization", { "namespace": "flux-system", "name": "app-production", "source": "app-manifests", "path": "./clusters/production", "prune": True, "interval": "5m" }) # Reconcile kustomization await mcp.call("fluxcd", "reconcile_kustomization", { "namespace": "flux-system", "name": "app-production" }) ``` #### 3. Helm Releases ```python # Create Helm release await mcp.call("fluxcd", "create_helm_release", { "namespace": "default", "name": "nginx", "chart": "nginx", "repository": "bitnami", "version": "15.0.0", "values": {"replicaCount": 3} }) # List Helm releases releases = await mcp.call("fluxcd", "list_helm_releases", { "namespace": "default" }) ``` #### 4. Image Automation ```python # Create image repository await mcp.call("fluxcd", "create_image_repository", { "namespace": "flux-system", "name": "app-image", "image": "registry.example.com/app" }) # Create image policy await mcp.call("fluxcd", "create_image_policy", { "namespace": "flux-system", "name": "app-policy", "repository": "app-image", "policy": {"semver": {"range": ">=1.0.0"}} }) ``` ### Configuration ```json { "mcpServers": { "fluxcd": { "command": "npx", "args": ["-y", "@anthropic/mcp-fluxcd"], "env": { "KUBECONFIG": "~/.kube/config" } } } } ``` ### Use Cases **GitOps Deployment**: Deploy by pushing to Git. **Helm Management**: Manage Helm charts declaratively. **Image Updates**: Automate image version updates. **Multi-Cluster**: Manage multiple clusters from Git. The Flux CD MCP Server enables GitOps for Kubernetes.
{
"mcpServers": {
"fluxcd": {}
}
}