run_kubectl_command
Run a kubectl command against the cluster pointed to by the current kubeconfig
Run kubectl commands against a cluster from the conversation and get the output explained, with piping supported.
LABSCO SUMMARY
There is no shaped tool surface here — it runs the commands you would have run, which means the reach is whatever your kubeconfig grants, writes included. Piping support is what separates it from a one-command wrapper: the diagnostic commands people actually type usually have a pipe in them.
A server that runs kubectl on your behalf and interprets what comes back. It accepts a kubeconfig path, so you choose which cluster and context the commands land on, and it supports command-line piping rather than only single flat commands.
kubectl installed and on the path, and a kubeconfig for the cluster you want to reach. Node dependencies installed and the project built; the client points at build/index.js. No account or key beyond your existing cluster credentials. The package is k8s-interactive 0.1.0.
Build from source
USE CASES
Run the listing and describe commands and get the output interpreted, instead of scrolling through raw kubectl text looking for the line that matters.
Point the server at a specific kubeconfig path so commands run against the cluster and context you mean, not whatever your shell had selected last.
Chain the command as you would in a terminal — piping is supported, so filtering and reshaping output happens in one call.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
run_kubectl_commandRun a kubectl command against the cluster pointed to by the current kubeconfig
BEFORE YOU INSTALL
1 tool when we connected.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
You clone and build this one yourself.
git clone https://github.com/TaichiHo/k8s-interactive-mcp
cd k8s-interactive-mcp
npm install
npm run build{
"mcpServers": {
"k8s-interactive": {
"command": "<YOUR_PATH_TO_K8S_INTERACTIVE_MCP>/build/index.js"
}
}
}