Skip to content
VS Code

Server Ops MCP for VS Code

io.github.gt-dinuo/server-ops-mcp

Server ops MCP: logs, monitoring, code edit, Nginx & certs. Local + SSH, confirmations & redaction.

client:VS Code transport:stdio runtime:npm

Install Server Ops MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ops-project-root",
      "description": "OPS_PROJECT_ROOT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ops-ssh-host",
      "description": "OPS_SSH_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ops-ssh-port",
      "description": "OPS_SSH_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ops-ssh-user",
      "description": "OPS_SSH_USER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ops-ssh-key",
      "description": "OPS_SSH_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ops-ssh-password",
      "description": "OPS_SSH_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ops-ssh-passphrase",
      "description": "OPS_SSH_PASSPHRASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ops-config-path",
      "description": "OPS_CONFIG_PATH",
      "password": true
    }
  ],
  "servers": {
    "server-ops-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "server-ops-mcp"
      ],
      "env": {
        "OPS_PROJECT_ROOT": "${input:ops-project-root}",
        "OPS_SSH_HOST": "${input:ops-ssh-host}",
        "OPS_SSH_PORT": "${input:ops-ssh-port}",
        "OPS_SSH_USER": "${input:ops-ssh-user}",
        "OPS_SSH_KEY": "${input:ops-ssh-key}",
        "OPS_SSH_PASSWORD": "${input:ops-ssh-password}",
        "OPS_SSH_PASSPHRASE": "${input:ops-ssh-passphrase}",
        "OPS_CONFIG_PATH": "${input:ops-config-path}"
      }
    }
  }
}

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

Server Ops MCP in other clients