rohitg00/kubectl-mcp-server/k8s-capi

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.

Tainted

Author "rohitg00" has blocked skill(s)

Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations.

Install

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

SKILL.md

The same SKILL.md was published earlier as rohitg00/kubectl-mcp-server/k8s-capi.

Cluster API Lifecycle Management

Manage Kubernetes clusters using kubectl-mcp-server's Cluster API tools (11 tools).

Requires the capi toolset: start kubectl-mcp-server with --toolsets default,capi (or MCP_TOOLSETS=default,capi).

When to Apply

Use this skill when:

  • User mentions: "Cluster API", "CAPI", "cluster lifecycle", "machine", "workload cluster"
  • Operations: provisioning clusters, scaling nodes, upgrading Kubernetes versions
  • Keywords: "provision cluster", "scale workers", "machine deployment", "cluster class"

Priority Rules

PriorityRuleImpactTools
1Detect CAPI installation firstCRITICALdetect_ecosystem
2Check cluster phase before operationsHIGHcapi_get_cluster
3Monitor machines during scalingHIGHcapi_list_machines
4Get kubeconfig after provisioningMEDIUMcapi_get_cluster_kubeconfig

Quick Reference

TaskToolExample
Detect CAPIdetect_ecosystemdetect_ecosystem()
List clusterscapi_list_clusterscapi_list_clusters(namespace)
Get cluster kubeconfigcapi_get_cluster_kubeconfigcapi_get_cluster_kubeconfig(name, namespace)
Scale workerscapi_scale_machinedeploymentcapi_scale_machinedeployment(name, namespace, replicas)

Check Installation

python
detect_ecosystem()

List Clusters

python
# List all CAPI clusters
capi_list_clusters(namespace="default")
# Shows:
# - Cluster name
# - Phase (Provisioning, Provisioned, Deleting)
# - Infrastructure ready
# - Control plane ready

Get Cluster Details

python
capi_get_cluster(name="my-cluster", namespace="default")
# Shows:
# - Spec (control plane, infrastructure)
# - Status (phase, conditions)
# - Network configuration

Get Cluster Kubeconfig

python
# Get kubeconfig for workload cluster
capi_get_cluster_kubeconfig(name="my-cluster", namespace="default")
# Returns kubeconfig to access the cluster

Machines

List Machines
python
capi_list_machines(namespace="default")
# Shows:
# - Machine name
# - Cluster
# - Phase (Running, Provisioning, Failed)
# - Provider ID
# - Version
Get Machine Details
python
capi_get_machine(name="my-cluster-md-0-xxx", namespace="default")

Machine Deployments

List Machine Deployments
python
capi_list_machinedeployments(namespace="default")
# Shows:
# - Deployment name
# - Cluster
# - Replicas (ready/total)
# - Version
Scale Machine Deployment
python
# Scale worker nodes
capi_scale_machinedeployment(
name="my-cluster-md-0",
namespace="default",
replicas=5
)

Machine Sets

python
capi_list_machinesets(namespace="default")

Machine Health Checks

python
capi_list_machinehealthchecks(namespace="default")
# Health checks automatically remediate unhealthy machines

Cluster Classes

python
# List cluster templates
capi_list_clusterclasses(namespace="default")
# ClusterClasses define reusable cluster configurations

Create Cluster

python
kubectl_apply(manifest="""
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: my-cluster
namespace: default
spec:
clusterNetwork:
pods:
cidrBlocks:
- 192.168.0.0/16
services:
cidrBlocks:
- 10.96.0.0/12
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: KubeadmControlPlane
name: my-cluster-control-plane
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AWSCluster
name: my-cluster
""")

Create Machine Deployment

python
kubectl_apply(manifest="""
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
name: my-cluster-md-0
namespace: default
spec:
clusterName: my-cluster
replicas: 3
selector:
matchLabels:
cluster.x-k8s.io/cluster-name: my-cluster
template:
spec:
clusterName: my-cluster
version: v1.28.0
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
name: my-cluster-md-0
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AWSMachineTemplate
name: my-cluster-md-0
""")

Cluster Lifecycle Workflows

Provision New Cluster
python
1. kubectl_apply(cluster_manifest)
2. capi_list_clusters(namespace) # Wait for Provisioned
3. capi_get_cluster_kubeconfig(name, namespace) # Get access
Scale Workers
python
1. capi_list_machinedeployments(namespace)
2. capi_scale_machinedeployment(name, namespace, replicas)
3. capi_list_machines(namespace) # Monitor
Upgrade Cluster
python
1. # Update control plane version
2. # Update machine deployment version
3. capi_list_machines(namespace) # Monitor rollout

Troubleshooting

Cluster Stuck Provisioning
python
1. capi_get_cluster(name, namespace) # Check conditions
2. capi_list_machines(namespace) # Check machine status
3. kubectl_get(resource_type="events", namespace) # Check events
4. # Check infrastructure provider logs
Machine Failed
python
1. capi_get_machine(name, namespace)
2. kubectl_get(resource_type="events", namespace)
3. # Common issues:
# - Cloud provider quota
# - Invalid machine template
# - Network issues

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-capi/badge)](https://verified-skill.com/skills/rohitg00/kubectl-mcp-server/k8s-capi)

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