k8s-cli
Skill by rohitg00
Explains how to use the kubectl-mcp-server command line to discover, search and call Kubernetes tools, and to check server health. Aimed at people who work with the server from a terminal.
Install k8s-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rohitg00/kubectl-mcp-server /tmp/kubectl-mcp-server && mkdir -p ~/.claude/skills && cp -r /tmp/kubectl-mcp-server/kubernetes-skills/claude/k8s-cli ~/.claude/skills/k8s-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/rohitg00/kubectl-mcp-server /tmp/kubectl-mcp-server && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kubectl-mcp-server/kubernetes-skills/claude/k8s-cli ~/.gemini/antigravity-cli/skills/k8s-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents the kubectl-mcp-server command line interface. It covers checking dependencies with doctor, listing tools with tools -d, searching them with grep, and calling a tool directly with JSON arguments through call. It also lists commands for starting the server, switching context, viewing server info, and listing resources and prompts.
The commands cover stdio and streamable-http transports, plus environment variables for debug logging, log files, read-only and other safety modes, and secret masking. The skill is meant for people who want to explore available tools, call them from the command line, or check server health. It links to two related skills, k8s-core and k8s-diagnostics.
Written from the project's SKILL.md and checked against it.
What it can do
- doctorChecks kubectl, helm, kubeconfig validity and cluster connection.
- toolsLists all tools, with descriptions when -d is used, or JSON output.
- grepSearches tool names by pattern, such as *pod* or *helm*.
- callInvokes a tool directly with JSON arguments from the command line or stdin.
- contextShows the current Kubernetes context or switches to another one.
- infoShows server version, tool count, resource count and prompt count.
- resources and promptsLists the MCP resources and prompts the server exposes.
What you need
- kubectl-mcp-server installed
- kubectl
- helm
- Valid kubeconfig
- Connected Kubernetes cluster
Try asking
- Run the doctor check to confirm kubectl and helm are available
- Search kubectl-mcp-server tools matching *pod* and show descriptions
- Call kubectl_get to list pods in the default namespace
Good to know
- Safety mode can be set to read-only, disable-destructive, confirm or normal.
- Secret values are redacted in tool output by default.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: kubernetes-skills/claude/k8s-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to k8s-cli
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
k8s-cli: common questions
What does the kubectl-mcp-server doctor command check?
It checks that kubectl and helm are found, that the kubeconfig is valid, and that the cluster is connected. The source shows these as example checks.
How do I call a Kubernetes tool from the command line?
Use the call command with the tool name and a JSON argument object, for example kubectl_get with a namespace. Arguments can also be piped in through stdin.
Does kubectl-mcp-server mask secrets?
Yes. The MCP_MASK_SECRETS variable redacts Secret values in tool output and is set to true by default.
How do I install k8s-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is k8s-cli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is k8s-cli safe to use?
It scores 70 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to k8s-cli?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
