ocm mcp server for VS Code
io.github.sandeepbazar/ocm-mcp-server
Guardrailed fleet ops for AI agents: multi-cluster Kubernetes via OCM with policy, approval, audit.
client:VS Code
transport:stdio
runtime:pypi
Install ocm mcp server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "kubeconfig",
"description": "KUBECONFIG",
"password": true
},
{
"type": "promptString",
"id": "ocm-mcp-hub-context",
"description": "OCM_MCP_HUB_CONTEXT",
"password": true
},
{
"type": "promptString",
"id": "ocm-mcp-read-only",
"description": "OCM_MCP_READ_ONLY",
"password": true
}
],
"servers": {
"ocm-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"ocm-mcp-server"
],
"env": {
"KUBECONFIG": "${input:kubeconfig}",
"OCM_MCP_HUB_CONTEXT": "${input:ocm-mcp-hub-context}",
"OCM_MCP_READ_ONLY": "${input:ocm-mcp-read-only}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs