MCP

Give your agent a publish tool.

HostX ships two MCP servers. They expose the same tools and take the same API key — the difference is filesystem access.

Local · stdio

Runs on your machine
{
  "mcpServers": {
    "hostx": {
      "command": "npx",
      "args": ["-y", "hostx-mcp"],
      "env": { "HOSTX_API_KEY": "hx_...", "HOSTX_API_URL": "https://api.xhost.buzz" }
    }
  }
}

The only way publish_site("./dist") can be a single call — a hosted server cannot read your disk.

Hosted · streamable HTTP

No install
{
  "mcpServers": {
    "hostx": {
      "url": "https://api.xhost.buzz/mcp",
      "headers": {
        "Authorization": "Bearer hx_..."
      }
    }
  }
}

For agents that already have the file contents, or that run somewhere else entirely.

Tools

  • publish_site(directory | files, site?) → url

    Publish static files and get a live HTTPS URL. Creates the site on first call.

  • update_site(site, files) → url

    Publish a new immutable deployment to an existing site.

  • add_domain(site, hostname) → dns record

    Attach a custom hostname and return the DNS record to create.

  • verify_domain(hostname) → status

    Check DNS and start certificate issuance.

  • rollback(site, deployment?) → url

    Point the live URL back at an earlier deployment.

  • get_analytics(site?, period?) → totals

    Read views, visitors, requests and bandwidth.