rohitg00/kubectl-mcp-server/k8s-multicluster

Claude Code and agent skill by rohitg00/kubectl-mcp-server

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Manage multiple Kubernetes clusters, switch contexts, and perform cross-cluster operations. Use when working with multiple clusters, comparing environments, or managing cluster lifecycle.

Install

npx vskill@latest install rohitg00/kubectl-mcp-server/k8s-multicluster

SKILL.md

Multi-Cluster Kubernetes Management

Cross-cluster operations and context management using kubectl-mcp-server's multi-cluster support.

Requires the capi, cilium, diagnostics, gitops, istio, multicluster toolsets: start kubectl-mcp-server with --toolsets default,capi,cilium,diagnostics,gitops,istio,multicluster (or MCP_TOOLSETS=default,capi,cilium,diagnostics,gitops,istio,multicluster). For deep work, the project-maintained MCP servers may fit better: Argo CD: https://github.com/argoproj-labs/mcp-for-argocd; Flux: https://fluxoperator.dev/mcp-server/.

When to Apply

Use this skill when:

  • User mentions: "cluster", "context", "multi-cluster", "cross-cluster"
  • Operations: switching contexts, comparing clusters, federated deployments
  • Keywords: "different environment", "production vs staging", "all clusters"

Priority Rules

PriorityRuleImpactTools
1Always specify context for prodCRITICALcontext parameter
2List contexts before switchingHIGHlist_contexts
3Compare before promotingMEDIUMcompare_namespaces
4Use naming conventionsLOWprod-*, staging-*

Quick Reference

TaskToolExample
List contextslist_contextslist_contexts()
View kubeconfigkubeconfig_viewkubeconfig_view()
List CAPI clusterscapi_list_clusterscapi_list_clusters(namespace)
Get CAPI kubeconfigcapi_get_cluster_kubeconfigcapi_get_cluster_kubeconfig(name, namespace)

Context Management

List Available Contexts
python
list_contexts()
View Current Context
python
kubeconfig_view()
Switch Context

CLI: kubectl-mcp-server context <context-name>

Cross-Cluster Operations

All kubectl-mcp-server tools support the context parameter:

python
kubectl_get(resource_type="pods", namespace="default", context="production-cluster")
kubectl_get(resource_type="pods", namespace="default", context="staging-cluster")

Common Multi-Cluster Patterns

Compare Environments
python
compare_namespaces(
namespace1="production",
namespace2="staging",
resource_type="deployment",
context="production-cluster"
)
Parallel Queries

Query multiple clusters simultaneously:

python
kubectl_get(resource_type="pods", namespace="app", context="prod-us-east")
kubectl_get(resource_type="pods", namespace="app", context="prod-eu-west")
kubectl_get(resource_type="pods", namespace="app", context="development")
Cross-Cluster Health Check
python
for context in ["prod-1", "prod-2", "staging"]:
kubectl_get(resource_type="nodes", context=context)
kubectl_get(resource_type="pods", namespace="kube-system", context=context)

Cluster API (CAPI) Management

For managing cluster lifecycle:

List Managed Clusters
python
capi_list_clusters(namespace="capi-system")
Get Cluster Details
python
capi_get_cluster(name="prod-cluster", namespace="capi-system")
Get Workload Cluster Kubeconfig
python
capi_get_cluster_kubeconfig(name="prod-cluster", namespace="capi-system")
Machine Management
python
capi_list_machines(namespace="capi-system")
capi_list_machinedeployments(namespace="capi-system")
Scale Cluster
python
capi_scale_machinedeployment(
name="prod-cluster-md-0",
namespace="capi-system",
replicas=5
)

See CONTEXT-SWITCHING.md for detailed patterns.

Multi-Cluster Helm

Deploy charts to specific clusters:

python
install_helm_chart(
name="nginx",
chart="bitnami/nginx",
namespace="web",
context="production-cluster"
)
helm_list(
namespace="web",
context="staging-cluster"
)

Multi-Cluster GitOps

Flux Across Clusters
python
gitops_apps_list(
namespace="flux-system",
context="cluster-1"
)
gitops_app_sync(
kind="kustomization",
name="apps",
namespace="flux-system",
context="cluster-2"
)
ArgoCD Across Clusters
python
gitops_apps_list(namespace="argocd", context="management-cluster")

Federation Patterns

Secret Synchronization
python
kubectl_get(resource_type="secrets", namespace="app", context="source-cluster")
kubectl_apply(secret_manifest, namespace="app", context="target-cluster")
Cross-Cluster Service Discovery

With Cilium ClusterMesh or Istio multi-cluster:

python
cilium_list_nodes(context="cluster-1")
istio_proxy_status(context="cluster-2")

Best Practices

  1. Naming Convention: Use descriptive context names (prod-us-east-1, staging-eu-west-1)
  2. Access Control: Different kubeconfigs per environment
  3. Always Specify Context: Avoid accidental cross-cluster operations
  4. Cluster Groups: Organize by purpose (prod-*, staging-*, dev-*)

Related Skills

Security

  • Security scanPassed, 96 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
853
Repository forks
166
Repository npm downloads, 7 days
360
7-day trend score
48

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rohitg00/kubectl-mcp-server/k8s-multicluster/badge)](https://verified-skill.com/skills/rohitg00/kubectl-mcp-server/k8s-multicluster)

Something wrong with this skill or its page? Tell us.