mcp-server

v1.0.8
io.github.hostkey-cloud/mcp-server Checked 3 days ago Published 1 month ago

MCP server for Hostkey .com (InvAPI): servers, power, order, DNS, S3, billing

Values you need

VariableWhat it is
HOSTKEY_API_KEYrequired secret InvAPI API key for the .com portal (invapi.hostkey.com); per-server keys supported
HOSTKEY_TOKEN_TTLoptional Session token TTL in seconds (default 3600)
HOSTKEY_ALLOW_DESTRUCTIVEoptional Set to 1 to allow destructive operations (OS reinstall, PXE cycle, service cancellation)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-server -e 'HOSTKEY_API_KEY=<HOSTKEY_API_KEY>' -- npx -y hostkey-mcp-server@1.0.8
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "hostkey-mcp-server@1.0.8"
      ],
      "command": "npx",
      "env": {
        "HOSTKEY_API_KEY": "<HOSTKEY_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "hostkey-mcp-server@1.0.8"
      ],
      "command": "npx",
      "env": {
        "HOSTKEY_API_KEY": "<HOSTKEY_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "HOSTKEY_API_KEY",
      "id": "hostkey-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-server": {
      "args": [
        "-y",
        "hostkey-mcp-server@1.0.8"
      ],
      "command": "npx",
      "env": {
        "HOSTKEY_API_KEY": "${input:hostkey-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "hostkey-mcp-server@1.0.8"]
env = { "HOSTKEY_API_KEY" = "<HOSTKEY_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http mcp-server https://mcp.hostkey.com/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.hostkey.com/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.hostkey.com/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: HOSTKEY_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_servers, get_server, get_power_status, get_server_sensors, get_server_tags, search_servers_by_tag, list_presets, search_presets, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json