host-html

io.github.phanosh由 GitHub 帳號 phanosh 發布v0.2.1更新於 Nov 11, 2026

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

發布方自己的服務:Host.al: .al domains and servers in Albania

已驗證Streamable HTTP可網頁執行效率與工作流檔案與儲存

概覽

AI 產生的概覽

把 AI 產生的 HTML 發布成公開連結,並在同一連結上原地更新,方便分享報告、儀表板或簡報。

可以做什麼
  • 發布自包含的 HTML 文件並取得公開網址
  • 替換已發布頁面的 HTML,同時維持同一個連結
  • 取得頁面資訊,例如網址、頁面 ID 與到期時間
適用情境
當助理產出 HTML 報告、儀表板、簡報、原型或單頁網站,而使用者想要一個能直接開啟與分享的連結、而不是本機檔案時適用。也適合在不破壞已送出連結的前提下反覆修改已發布頁面。
執行需求
需要免費且已完成電子郵件驗證的 host-html 帳號,以及個人 API 金鑰(hh_...),透過環境變數 HOSTHTML_API_KEY 設定,或作為 Authorization Bearer 權杖用於遠端端點。可以本機 npm 套件經 npx 執行,也可連線遠端 streamable HTTP 端點;需要網路存取。
安裝前請注意
API 金鑰屬於機密且只顯示一次,請勿寫進共用設定。發布後的頁面預設公開,HTML 中的任何內容都會暴露給取得連結的人。免費方案頁面 3 天後失效;永久託管、自訂路徑與密碼保護需付費方案。只能更新同一帳號擁有的頁面。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 host-html,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.phanosh%2Fhost-html/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "host-html": {
      "type": "http",
      "url": "https://suifgsvtcbrawzdhyuhk.supabase.co/functions/v1/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

host-html

[host-html.com]

Publish any HTML file as a live link — instantly. Free account required. No deploy pipeline, no server to manage. → host-html.com

Heads up — breaking change in v2.0.0: Anonymous publishing has been retired. Publishing now requires a free, email-verified host-html account and a personal API key set as HOSTHTML_API_KEY. See Setup: get an API key. Older releases that relied on the built-in shared key will stop publishing.


Install

Claude Code

/plugin marketplace add phanosh/host-html/plugin install host-html@host-html

The official Claude Code marketplace listing is in the works — until it lands, install directly from this repo with the two commands above.

Claude Desktop, Cursor, Codex (MCP server)

jsonc
// claude_desktop_config.json / .cursor/mcp.json / .mcp.json{  "mcpServers": {    "host-html": {      "command": "npx",      "args": ["-y", "host-html-mcp"],      "env": { "HOSTHTML_API_KEY": "hh_your_key_here" }    }  }}

Two tools: publish_html (HTML in, link out) and update_page (new HTML, same link). Source and docs: mcp-server/ · npm: host-html-mcp

Other AI Agents (Skills)

bash
npx skills add phanosh/host-html -g -y

Then use the skills:

/host-html          # publish HTML as a live link/host-pdf           # export HTML slides to PDF

/host-html finds the HTML, publishes it, and hands you a live URL in seconds. /host-pdf captures each slide at retina quality and assembles a PDF.

Works with Claude Code, Cursor, Codex, Copilot, and 40+ more agents.


Setup: get an API key

Publishing now requires a free host-html account:

  1. Sign in (free) at host-html.com

  2. Confirm your email

  3. Go to Account → API keys → Create key

  4. Copy the generated key (starts with hh_… — shown once)

  5. Set it as an environment variable:

    bash
    export HOSTHTML_API_KEY=hh_your_key_here

The skill reads HOSTHTML_API_KEY automatically. Custom slugs (see the Direct API table below) still require a Pro/Team plan; publishing itself does not.


Update

When a new version is released here, pull it into your local Claude Code with:

/plugin marketplace update phanosh/host-html

That single command refreshes the marketplace catalog and installs any version bumps in marketplace.json, plugin.json, or the skill frontmatter. To check what you're on:

/plugin

To stay current automatically, open /plugin, go to the Marketplaces tab, select phanosh/host-html, and toggle auto-update on — Claude Code will then pull updates on startup.

For the standalone skills install (npx skills add ...), re-run the same command to upgrade:

bash
npx skills add phanosh/host-html -g -y

Direct API

The publish edge function requires a personal host-html API key (format hh_…) as the bearer token — see Setup to generate one. Pass it via the Authorization header (no apikey header is needed):

bash
curl -X POST https://suifgsvtcbrawzdhyuhk.supabase.co/functions/v1/publish \  -H "Authorization: Bearer $HOSTHTML_API_KEY" \  -H "Content-Type: application/json" \  -d '{"html": "<h1>Hello</h1>", "title": "my page"}'

Request

FieldTypeRequiredDescription
htmlstring✓HTML content (max 1MB)
titlestringPage title
slugstringCustom URL path matching ^[a-z0-9-]{2,64}$ (paid plans)
passwordstringPassword-protect the page (4–72 chars, paid plans, JSON body only)

Response 201

json
{  "url": "https://host-html.com/p/abc123",  "slug": "abc123",  "edit_token": "...",  "page_id": "...",  "has_password": false,  "expires_at": "2026-03-16T..."}

has_password is true when the request set a password (the page is locked and served from private storage); false otherwise.

expires_at is string | null. On a free plan it is the ISO timestamp when the page goes dark; on a paid plan the page never expires and the field is null. It is the authoritative expiry — read it from the response rather than assuming a fixed duration, and handle the null rather than formatting it as a date.


License

MIT

來源:README.md,提交 121b8cc

工具

2

publish_html

Publish HTML as a hosted link

Publish a self-contained HTML document and get back a public URL. Use this whenever the user wants to share, send, or host HTML you produced — a report, dashboard, deck, prototype or one-page site — instead of leaving it as a file they cannot open. The HTML must be self-contained: inline the CSS and JS, or reference them by absolute URL.

輸入參數html必填slugtitlepassword

update_page

Update a published page in place

Replace the HTML of a page you already published, keeping the SAME link. Use this for every revision — a fix, a new draft, refreshed numbers — instead of publishing a new page, so a link the user already shared keeps working. Only pages owned by the same account can be updated.

輸入參數html必填slug必填

版本歷史

1
  1. v0.2.1最新Nov 11, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Host 整合