apiVersion
(string) (required) - apiVersion of the resources (examples of valid apiVersion are: v1, apps/v1, networking.k8s.io/v1)
How to use it
apiVersion is exposed by the Kubernetes MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the apiVersion tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Kubernetes MCP Server
npx kubernetes-mcp-server@latest --helpOther tools in Kubernetes MCP Server (39)
List all available context names and associated server urls from the kubeconfig file
Get the current Kubernetes configuration content as a kubeconfig YAML
List Kubernetes events (warnings, errors, state changes) for debugging and troubleshooting in the current cluster from all namespaces
(integer) - Optional duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used
Install (deploy) a Helm chart to create a release in the current or provided namespace
List all the Helm releases in the current or provided namespace (or in all namespaces if specified)
Uninstall a Helm release in the current or provided namespace
Get detailed information about a specific kcp workspace
List all available kcp workspaces in the current cluster
Retrieves the high-level health, topology, and environment details of the Istio service mesh. Returns multi-cluster control plane status (istiod), data plane namespace health (including ambient mesh status), observability stack health (Prometheus, Grafana...), and component connectivity. Use this to
Returns service-to-service traffic topology, dependencies, and network metrics (throughput, response time, mTLS) for the specified namespaces. Use this to diagnose routing issues, latency, or find upstream/downstream dependencies.
Returns a human-readable text summary with current Pod CPU/memory usage (from Prometheus) compared to Kubernetes requests/limits (from the Pod spec). Useful to answer questions like 'Is this workload using too much memory?'
Fetches a list of resources OR retrieves detailed data for a specific resource. If 'resourceName' is omitted, it returns a list. If 'resourceName' is provided, it returns details for that specific resource.
Fetches a single distributed trace by traceid and returns its call hierarchy (service tree with duration, status, and nested calls). Use this after listtraces to drill into a specific trace.
Returns the list of Istio mesh clusters that Kiali can access. Each entry includes its name and whether it is the home cluster (where Kiali is deployed). Call this tool before using meshCluster on other Kiali tools when the target cluster is unknown.
Lists distributed traces for a service in a namespace. Returns a summary (namespace, service, totalfound, avgdurationms) and a list of traces with id, durationms, spanscount, rootop, slowestservice, haserrors. Use gettracedetails with a trace id to get full hierarchy.
Create, patch, or delete Istio, Gateway API, and Inference API config. Supports Istio resources (networking.istio.io, security.istio.io), Gateway API resources (gateway.networking.k8s.io), and Inference API resources (inference.networking.k8s.io) when installed on the cluster. For list and get (read
Read Istio, Gateway API, and Inference API config. 'list' groups by namespace→'group/version/kind'→{valid:[...],invalid:[...]} where valid/invalid arrays contain resource names; omit group/kind to retrieve ALL config types in a single call. Supports Istio (networking.istio.io, security.istio.io), Ga
(string) (required) - kind of the resources (examples of valid kind are: Pod, Service, Deployment, Ingress)
List all the Kubernetes namespaces in the current cluster
Get logs from a Kubernetes node (kubelet, kube-proxy, or other system logs). This accesses node logs through the Kubernetes API proxy to the kubelet
Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Infor
List the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified Kubernetes Nodes or all nodes in the cluster
Delete a Kubernetes Pod in the current or provided namespace with the provided name
Execute a command in a Kubernetes Pod (shell access, run commands in container) in the current or provided namespace with the provided name and command
Get a Kubernetes Pod in the current or provided namespace with the provided name
List all the Kubernetes pods in the current cluster from all namespaces
List all the Kubernetes pods in the specified namespace in the current cluster
Get the logs of a Kubernetes Pod in the current or provided namespace with the provided name
Run a Kubernetes Pod in the current or provided namespace with the provided container image and optional name
List the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified Kubernetes Pods in the all namespaces, the provided namespace, or the current namespace
List all the OpenShift projects in the current cluster
(string) (required) - Complete YAML or JSON representation of the Kubernetes resource (full desired state, not a partial patch). Include apiVersion, kind, metadata, and the full spec.
Create or update a Kubernetes resource via Server-Side Apply. The manifest is the complete desired state: any field this tool previously set and the new manifest omits is removed. To edit an existing resource, fetch it with resourcesget, modify it, then re-apply the full resource.
Delete a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and its name
Get a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and its name
List Kubernetes resources and objects in the current cluster by providing their apiVersion and kind and optionally the namespace and label selector
Get or update the scale of a Kubernetes resource in the current cluster by providing its apiVersion, kind, name, and optionally the namespace. If the scale is set in the tool call, the scale will be updated to that value. Always returns the current scale of the resource
List all available targets