Skip to content
VS Code

mcp vmanomaly for VS Code

io.github.victoriametrics/mcp-vmanomaly

MCP Server for vmanomaly - VictoriaMetrics anomaly detection

client:VS Code transport:stdio runtime:oci

Install mcp vmanomaly in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "vmanomaly-endpoint",
      "description": "VMANOMALY_ENDPOINT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "vmanomaly-bearer-token",
      "description": "VMANOMALY_BEARER_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "vmanomaly-bearer-token-file",
      "description": "VMANOMALY_BEARER_TOKEN_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "vmanomaly-headers",
      "description": "VMANOMALY_HEADERS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-server-mode",
      "description": "MCP_SERVER_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-listen-addr",
      "description": "MCP_LISTEN_ADDR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-log-level",
      "description": "MCP_LOG_LEVEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-log-file",
      "description": "MCP_LOG_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-enabled-tools",
      "description": "MCP_ENABLED_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-disabled-tools",
      "description": "MCP_DISABLED_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-heartbeat-interval",
      "description": "MCP_HEARTBEAT_INTERVAL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-disable-resources",
      "description": "MCP_DISABLE_RESOURCES",
      "password": true
    }
  ],
  "servers": {
    "mcp-vmanomaly": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/victoriametrics/mcp-vmanomaly:0.4.2"
      ],
      "env": {
        "VMANOMALY_ENDPOINT": "${input:vmanomaly-endpoint}",
        "VMANOMALY_BEARER_TOKEN": "${input:vmanomaly-bearer-token}",
        "VMANOMALY_BEARER_TOKEN_FILE": "${input:vmanomaly-bearer-token-file}",
        "VMANOMALY_HEADERS": "${input:vmanomaly-headers}",
        "MCP_SERVER_MODE": "${input:mcp-server-mode}",
        "MCP_LISTEN_ADDR": "${input:mcp-listen-addr}",
        "MCP_LOG_LEVEL": "${input:mcp-log-level}",
        "MCP_LOG_FILE": "${input:mcp-log-file}",
        "MCP_ENABLED_TOOLS": "${input:mcp-enabled-tools}",
        "MCP_DISABLED_TOOLS": "${input:mcp-disabled-tools}",
        "MCP_HEARTBEAT_INTERVAL": "${input:mcp-heartbeat-interval}",
        "MCP_DISABLE_RESOURCES": "${input:mcp-disable-resources}"
      }
    }
  }
}

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

mcp vmanomaly in other clients