Skip to content
VS Code

HydraDNS for VS Code

io.github.hydradns/hydra-mcp

Manage a self-hosted DNS firewall: block domains, create policies, read query logs and metrics.

client:VS Code transport:stdio runtime:oci

Install HydraDNS in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "hydra-api-url",
      "description": "HYDRA_API_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hydra-token",
      "description": "HYDRA_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-role",
      "description": "MCP_ROLE",
      "password": true
    }
  ],
  "servers": {
    "hydra-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hydradns/hydra-cli:0.1.0"
      ],
      "env": {
        "HYDRA_API_URL": "${input:hydra-api-url}",
        "HYDRA_TOKEN": "${input:hydra-token}",
        "MCP_ROLE": "${input:mcp-role}"
      }
    }
  }
}

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

HydraDNS in other clients