Skip to content
VS Code

openITCOCKPIT for VS Code

io.github.openitcockpit/mcp-server

openITCOCKPIT monitoring: host and service state, history, downtimes, acknowledgements, patches

client:VS Code transport:stdio runtime:oci

Install openITCOCKPIT in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "oitc-apikey",
      "description": "OITC_APIKEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oitc-baseurl",
      "description": "OITC_BASEURL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oitc-transport",
      "description": "OITC_TRANSPORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oitc-enable-write-tools",
      "description": "OITC_ENABLE_WRITE_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "oitc-verify-tls",
      "description": "OITC_VERIFY_TLS",
      "password": true
    }
  ],
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/openitcockpit/mcp-server:0.5.0"
      ],
      "env": {
        "OITC_APIKEY": "${input:oitc-apikey}",
        "OITC_BASEURL": "${input:oitc-baseurl}",
        "OITC_TRANSPORT": "${input:oitc-transport}",
        "OITC_ENABLE_WRITE_TOOLS": "${input:oitc-enable-write-tools}",
        "OITC_VERIFY_TLS": "${input:oitc-verify-tls}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

openITCOCKPIT in other clients