Kubernetes MCP Server is a Model Context Protocol server that lets an AI client interact with Kubernetes and OpenShift clusters. It is used to inspect and manage cluster resources, pods, namespaces, events, Helm releases, and Tekton-related objects.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/containers/kubernetes-mcp-server/toolset-designnpx skills add containers/kubernetes-mcp-server --skill toolset-designgit clone --depth 1 https://github.com/containers/kubernetes-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/containers/kubernetes-mcp-server/toolset-design)<a href="https://agentmods.dev/skills/containers/kubernetes-mcp-server/toolset-design"><img src="https://agentmods.dev/badge/skills/containers/kubernetes-mcp-server/toolset-design.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.03181 |
| Opus 5 | $0.00034 | $0.01590 |
| Sonnet 5 | $0.00014 | $0.00636 |
| Haiku 4.5 | $0.00007 | $0.00318 |
Grade B, and why
toolset-design scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
The core toolset provides `pods_exec` which can run arbitrary commands in pods. How it starts
The opening of the file, as written. The whole thing — 292 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Toolset Design Guide
This skill codifies the methodology for designing MCP tools and toolsets in this repository. The core principle is eval-first, tools-second: prove the need before writing the code.
Phase 1: Validate the need with evals
Before writing any toolset code, write eval tasks that represent what a user would actually ask an LLM to do in the target domain. This serves two purposes:
-
Baseline: Run the evals with only the existing toolsets enabled (core, config, etc.). If the LLM can already accomplish the tasks using
pods_exec,resources_list, or other generic tools, you may not need dedicated tools at all. -
Gap identification: The tasks where the baseline fails (or produces poor results) reveal the actual gaps that new tools should fill.
How to write eval tasks
Create tasks under evals/tasks/<domain>/ using the mcpchecker/v1alpha2 format.
See existing tasks in evals/tasks/ for examples at different difficulty levels.
Design tasks that represent real user workflows, not tool-shaped requests:
# BAD: This is testing a tool, not a workflow
prompt:
inline: Run helm list --all-namespaces
# GOOD: This is testing what a user would actually ask
prompt:
inline: What Helm releases are deployed across the cluster?
# BETTER: This tests whether the LLM can solve a real problem
prompt:
inline: >
The application in namespace "payments" was working yesterday but
is failing after a recent Helm upgrade. Investigate what changed
in the latest release and identify the issue.
Task difficulty should span the range:
- Easy: Simple queries (list resources, show config)
- Medium: Filtered/analyzed output (find specific entries matching a pattern, correlate data across sources)
- Hard: Multi-step diagnosis (investigate root cause, identify misconfiguration, suggest fix)
Running the baseline
# Run evals with only core+config toolsets to establish baseline
mcpchecker check evals/core-eval-testing/<agent>/eval-core.yaml --label-selector suite=<your-domain>
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 292 lines · 69 tokens per session scan B adaa834ce8e4
toolset-design is a skill published in the GitHub repository containers/kubernetes-mcp-server (2,057 stars, last pushed today), licensed Apache-2.0. It adds 69 tokens to every session and 3,181 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
timoni
Use when deploying applications to Kubernetes with Timoni. Covers installing and upgrading module instances from OCI registries, composing multi-app deployments with bundles, injecting values from clusters or CI with runtimes, targeting multiple clusters, and authoring, testing, signing and publishing modules with CUE.
startup-chain-change
Modifies the local startup chain including image build, container serve/bootstrap logic, and canonical smoke test behavior. Use when changing vllm-sr serve behavior, image selection or pull policy, container startup sequences, local Docker/Make bootstrap, or canonical smoke config.
mariadb-operator-pr-review
Perform a structured maintainer-style PR review for the mariadb-operator repository. Gathers PR context, triages the change, and evaluates correctness, safety, pitfalls, backwards compatibility and code quality against the project conventions documented in AGENTS.md. Use whenever the user mentions a mariadb-operator…
mariadb-operator-comment
Post a comment (or a formal PR review) to a GitHub issue or pull request in mariadb-operator/mariadb-operator. Use whenever the user wants to publish something to GitHub for this repo — "comment on issue #123", "post this as a PR comment", "leave a note on #456", "reply on the PR" — and especially when they want the…
detecting-privilege-escalation-in-kubernetes-pods
Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.
implementing-opa-gatekeeper-for-policy-enforcement
Enforce Kubernetes admission policies using OPA Gatekeeper with ConstraintTemplates, Rego rules, and the Gatekeeper policy library.