Skip to content
VS Code

HestiaCP MCP for VS Code

io.github.webxtekstudio/hestiacp-mcp

Fail-closed TypeScript MCP server for HestiaCP and Linux host administration.

client:VS Code transport:stdio runtime:npm

Install HestiaCP MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "hestiacp-transport",
      "description": "HESTIACP_TRANSPORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-ssh-host",
      "description": "HESTIACP_SSH_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-ssh-user",
      "description": "HESTIACP_SSH_USER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-ssh-exec-mode",
      "description": "HESTIACP_SSH_EXEC_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-ssh-private-key-path",
      "description": "HESTIACP_SSH_PRIVATE_KEY_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-ssh-known-hosts-path",
      "description": "HESTIACP_SSH_KNOWN_HOSTS_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-api-url",
      "description": "HESTIACP_API_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-access-key",
      "description": "HESTIACP_ACCESS_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-secret-key",
      "description": "HESTIACP_SECRET_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-servers-file",
      "description": "HESTIACP_SERVERS_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-toolsets",
      "description": "HESTIACP_TOOLSETS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-dynamic-toolsets",
      "description": "HESTIACP_DYNAMIC_TOOLSETS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-audit-log",
      "description": "HESTIACP_AUDIT_LOG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-allow-write",
      "description": "HESTIACP_ALLOW_WRITE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-allow-destructive",
      "description": "HESTIACP_ALLOW_DESTRUCTIVE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hestiacp-allow-system",
      "description": "HESTIACP_ALLOW_SYSTEM",
      "password": true
    }
  ],
  "servers": {
    "hestiacp-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@webxtekstudio/hestiacp-mcp"
      ],
      "env": {
        "HESTIACP_TRANSPORT": "${input:hestiacp-transport}",
        "HESTIACP_SSH_HOST": "${input:hestiacp-ssh-host}",
        "HESTIACP_SSH_USER": "${input:hestiacp-ssh-user}",
        "HESTIACP_SSH_EXEC_MODE": "${input:hestiacp-ssh-exec-mode}",
        "HESTIACP_SSH_PRIVATE_KEY_PATH": "${input:hestiacp-ssh-private-key-path}",
        "HESTIACP_SSH_KNOWN_HOSTS_PATH": "${input:hestiacp-ssh-known-hosts-path}",
        "HESTIACP_API_URL": "${input:hestiacp-api-url}",
        "HESTIACP_ACCESS_KEY": "${input:hestiacp-access-key}",
        "HESTIACP_SECRET_KEY": "${input:hestiacp-secret-key}",
        "HESTIACP_SERVERS_FILE": "${input:hestiacp-servers-file}",
        "HESTIACP_TOOLSETS": "${input:hestiacp-toolsets}",
        "HESTIACP_DYNAMIC_TOOLSETS": "${input:hestiacp-dynamic-toolsets}",
        "HESTIACP_AUDIT_LOG": "${input:hestiacp-audit-log}",
        "HESTIACP_ALLOW_WRITE": "${input:hestiacp-allow-write}",
        "HESTIACP_ALLOW_DESTRUCTIVE": "${input:hestiacp-allow-destructive}",
        "HESTIACP_ALLOW_SYSTEM": "${input:hestiacp-allow-system}"
      }
    }
  }
}

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

HestiaCP MCP in other clients