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 集成