k8s-interactive-mcp

run_kubectl_command

Run a kubectl command against the cluster pointed to by the current kubeconfig

Input Schema

NameRequiredDescriptionDefault
commandYesThe kubectl command to run. It should also include the 'kubectl' prefix.
kubeconfigYesPath to the kubeconfig file

Input Schema (JSON Schema)

{ "properties": { "command": { "description": "The kubectl command to run. It should also include the 'kubectl' prefix.", "type": "string" }, "kubeconfig": { "description": "Path to the kubeconfig file", "type": "string" } }, "required": [ "kubeconfig", "command" ], "type": "object" }

You must be authenticated.

Other Tools