host-html

v0.2.1
io.github.phanosh/host-html Checked 2 days ago Published 23 days ago

Publish AI-generated HTML as a shareable link, and update it in place at the same URL.

Values you need

VariableWhat it is
HOSTHTML_API_KEYrequired secret Personal API key (hh_...) from host-html.com → Account → API keys

npm (npx) discovery passed

Requires Node.js 18+

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

Remote (hosted)

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

For AI agents

  1. Ask the user for: HOSTHTML_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: publish_html, update_page.
  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