mcp k8s ro for VS Code
io.github.your-ko/mcp-k8s-ro
Read-only Kubernetes MCP server: inspect resources, logs, events, and metrics. Secrets are masked.
client:VS Code
transport:stdio
runtime:oci
Install mcp k8s ro in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "kubeconfig",
"description": "KUBECONFIG",
"password": true
}
],
"servers": {
"mcp-k8s-ro": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.1"
],
"env": {
"KUBECONFIG": "${input:kubeconfig}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs