dochost

io.github.zyli5313由 GitHub 帳號 zyli5313 發布v1.1.0更新於 Oct 24, 2026

Publish, list, update and delete shareable Markdown/HTML pages from your AI assistant.

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

概覽

AI 產生的概覽

讓 AI 助理把 Markdown 或 HTML 發佈成可分享的託管網頁連結,並可列出、讀取、更新、調整選項與刪除這些頁面。

可以做什麼
  • 把 Markdown 或 HTML 發佈為託管頁面並取得可分享連結,可選擇公開列出、自訂路徑、密碼保護或移除品牌標示
  • 依最新優先分頁列出已發佈的頁面(不含正文)
  • 查看單一頁面的標題、格式、狀態、瀏覽與按讚數、到期時間、是否加密,並讀回目前的 Markdown 或 HTML 內容
  • 原地替換頁面內容,保留原連結、瀏覽數與到期時間
  • 在不重新發佈的情況下變更可見性、搜尋引擎索引或密碼
  • 永久刪除頁面並釋出其路徑
適用情境
適合助理產出報告、README、測驗、計算機或 HTML 作品,需要以一般網頁而非截圖或原始檔分享時;也適合連結之後還要修改維護,而不是每次重新產生的情況。
執行需求
使用 dochost.io 上的遠端 Streamable HTTP 端點,透過瀏覽器 OAuth 登入,互動式用戶端不需 API 金鑰。無介面執行或使用 stdio/Docker 橋接時,需要 Node.js 22 或更新版本,以及 DOCHOST_API_KEY 執行階段密鑰。方案限制由 dochost 帳號決定。
安裝前請注意
發佈的頁面是公開網頁內容,託管在獨立的内容網域上;HTML 中的 JavaScript 在沙箱中執行。免費連結 7 天後過期,永久連結、密碼、自訂路徑、子網域與移除品牌標示需付費方案。update_page 會整份替換內容,修改前應先讀取目前內容。delete_page 為永久刪除,連結立即失效。DOCHOST_API_KEY 應視為密鑰保管,外洩後請輪換。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 dochost,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "dochost": {
      "type": "http",
      "url": "https://dochost.io/api/mcp"
    }
  }
}

README

dochost MCP server

[dochost-mcp MCP server]

English | 简体中文

Publish Markdown or HTML to a clean, shareable link — straight from your AI assistant. The dochost MCP server gives Claude, ChatGPT, Cursor and any other MCP client eight tools — publish, update_page, get_page_content, set_page_options, list_my_pages, get_page, get_account, delete_page — so your assistant can hand back a public dochost link and then keep maintaining it. No copy-paste, no separate dashboard.

Why

Your LLM produced a report, a README, an HTML artifact. Sending it shouldn't mean a screenshot or a raw .md blob. dochost turns that output into a normal web page at its own URL, in one tool call. Markdown and HTML are rendered live.

Quick start

Claude Code (one line):

bash
claude mcp add --transport http dochost https://dochost.io/api/mcp

Then run /mcp inside Claude Code and approve in the browser. Add --scope user to use it in every project.

Gemini CLI (extension):

bash
gemini extensions install https://github.com/zyli5313/dochost-mcp

Or add a remote HTTP server in ~/.gemini/settings.json:

json
{  "mcpServers": {    "dochost": {      "httpUrl": "https://dochost.io/api/mcp"    }  }}

Claude Desktop / Cursor / VS Code / Windsurf — add a remote HTTP server:

json
{  "mcpServers": {    "dochost": {      "type": "http",      "url": "https://dochost.io/api/mcp"    }  }}

You authorize once via OAuth in the browser; the assistant then publishes as you, and output follows your dochost plan's entitlements.

Stdio / Docker bridge

For clients or directory evaluators that need a local stdio process, this repository includes a bridge to the same hosted MCP endpoint:

sh
npm ci --ignore-scriptsnode server/index.js

Or run it in Docker:

sh
docker build -t dochost-mcp .docker run --rm -i dochost-mcp

Node.js 22 or newer is required. The bridge forwards the live tools and schemas; it is not a self-hosted copy of the dochost application. Initialization and tool discovery are public. Interactive clients can use OAuth; headless tool execution needs an existing DOCHOST_API_KEY runtime secret (Docker: docker run --rm -i -e DOCHOST_API_KEY dochost-mcp).

Maintainers: see Glama claim, build and release instructions.

Which auth method?

ClientRecommended authWhy
OpenClaw, HermesAPI keyHeadless agents (e.g. a Telegram orchestrator). A static Bearer key works with the plain-HTTP skill and any MCP runner, with no browser step per session.
Claude, Cursor, ChatGPT, VS Code, Windsurf, and all other MCP clientsOAuthOne browser approval, nothing long-lived stored in config; the assistant publishes as you.

Keep the API key like any secret: store it as an environment variable / host secret (never commit it), and revoke or rotate it from Settings → API keys if it leaks.

Agents (OpenClaw, Hermes) — API key

OpenClaw and Hermes are headless, so they authenticate with an API key. Create one at dochost.io → Settings → API keys, export it as DOCHOST_API_KEY, and either:

  • Install the skill — a self-contained publish skill that works on any agent that can make an HTTP request: skills/dochost-publish/.
  • Wire the MCP — point the agent at https://dochost.io/api/mcp with the key as a Bearer header: examples/mcporter.config.json.

Per-host install guides:

One-shot from a shell: examples/publish.sh.

Tools

Eight tools. publish creates; the rest let the assistant keep working with what it already published, instead of stranding a link every time you revise something.

publish

Publish Markdown or HTML as a hosted page and get a shareable URL.

ParameterTypeNotes
bodystring (required)The Markdown or HTML content to publish.
format"markdown" | "html"Auto-detected when omitted.
publicbooleanList on Explore. Defaults to false (unlisted).
customSlugstring · ProChoose the link path instead of a random slug.
passwordstring · ProGate the page behind a password.
noBrandingboolean · ProHide the dochost footer badge.

Returns url, slug, expiresAt, and an editToken.

Example: "Publish my Q3 report as a private page with a password." → dochost.co/d/q3-report (password-gated, 7-day link on free).

update_page

Replace the content of a page in place. The URL, view/like counts and expiry all survive — only body, format and title change.

ParameterTypeNotes
slugstring (required)The page to update.
bodystring (required)The new Markdown or HTML content.
format"markdown" | "html"Auto-detected when omitted.
titlestringOverride the derived title.

Prefer this over publishing again whenever you are revising something already published — a second publish mints a second link and strands the one the reader already has. Resending identical content is a no-op.

get_page_content

Read back the current Markdown or HTML of one of your pages by slug. Call it before update_page whenever the assistant did not write the live content itself in the same conversation — update_page replaces the body wholesale, so editing from memory silently discards edits made elsewhere, including in the browser. Returns version and sha256; pass them to update_page as ifVersion / ifSha so the write is refused instead of overwriting a change it did not read. Expired pages are readable, and updating one republishes it on the same URL.

set_page_options

Change a published page's visibility, search-engine indexing or password without republishing it — the URL, view count and content stay the same. Parameters: slug (required), public, searchable, password, removePassword; send only the fields to change. Turning a paid capability off never needs an entitlement; turning one on is checked against the current plan. A password always forces the page private, so asking for both public: true and a password is refused. Branding is not settable here.

list_my_pages

List the pages you have published, newest first. Paginated (limit, offset); returns compact records without page bodies.

get_page

Look up one page by slug: title, format, status, view/like counts, expiry, and whether it is password-protected. Never returns the body or the password.

get_account

Your plan, page-quota usage and entitlement flags (size cap, custom slug, password, branding). Worth calling before publish so the assistant knows your limits up front instead of failing on them.

delete_page

Permanently delete a page by slug. The link stops working immediately and the slug is freed. Deleting an already-deleted page is a safe no-op.

Notes

  • Ownership and entitlements come from your authenticated account, never from tool input.
  • Published pages live on dochost.co, a separate cookieless content origin — never on the app origin dochost.io. That is what lets dochost serve author HTML under a hardened policy without it touching your session. dochost.io/d/… permanently redirects to dochost.co/d/…, so old links keep working.
  • Free links last 7 days; permanent links, password, custom slug, custom subdomain and branding removal are on the paid plans — see dochost.io.

Links

License

MIT — see LICENSE.

來源:README.md,提交 f52649d

工具

8

publish

Publish to dochost

Publish HTML or Markdown as a hosted web page and return a shareable URL. Use when the user asks to share an HTML quiz, calculator, report or Markdown document as a link. HTML JavaScript runs in a sandbox. Free links expire after seven days; paid link lifetime and options follow account entitlements. For revisions of an existing page, use update_page to keep the same link. Results report expiry and any ignored options; relay ignoredOptions/ignoredNote instead of claiming all requested settings were applied. New links use the account primary host; get_account reports it.

輸入參數body必填formatpublicpasswordcustomSlugnoBranding

list_my_pages

List my dochost pages

List the pages you have published to dochost, newest first. Paginated; returns compact records (no page bodies).

輸入參數limitoffset

get_account

Get my dochost account

Get your plan, page-quota usage, entitlement flags (size cap, custom slug, password, branding, subdomain, custom domain), and the primary host new links publish on. Call when you need plan limits, domain details or paid-option availability; a basic publish can use defaults without this extra call. The primary host is chosen in the dashboard (manageDomainsUrl), not through this API.

無需輸入參數。

get_page

Get one of my dochost pages

Get one of your pages by slug: title, format, status, view/like counts, expiry, whether it is password-protected, and its current visibility / indexing / branding state. Never returns the page body or the password — call get_page_content when you need the source itself, and set_page_options to change any of the settings it reports.

輸入參數slug必填

get_page_content

Read one of my dochost pages

Read back the CURRENT Markdown or HTML of one of your pages. Call this before update_page whenever you did not write the live content yourself in this same conversation — update_page replaces the body wholesale, so editing from memory silently discards anything you cannot see, including edits the user made in the browser. Returns `version` and `sha256`; pass them to update_page as ifVersion / ifSha so the write is refused instead of overwriting a change you did not read. Expired pages are readable, and updating one republishes it on the same URL.

輸入參數slug必填

update_page

Update a dochost page

Replace the content of one of your pages in place. The URL, view/like counts, and expiry stay the same; only the body, format, and title change. Resending identical content is a no-op. Prefer this over publishing again whenever the user is revising something you already published for them — a second publish creates a second link and strands the one they already shared. This replaces the WHOLE body, so unless you wrote the live content yourself in this conversation, call get_page_content first and pass its version/sha256 back as ifVersion/ifSha — the write is then refused with the current version instead of overwriting an edit you never saw.

輸入參數body必填slug必填ifShatitleformatifVersion

set_page_options

Change a published page’s settings

Change a published page's visibility, search-engine indexing or password WITHOUT republishing it — the URL, view count and content all stay the same. Use this instead of deleting and publishing again, which changes the link the user already shared. Send only the fields you want to change. Turning a paid capability off never needs an entitlement; turning one on is checked against the current plan. A password always forces the page private, so asking for both `public: true` and a password is refused rather than silently resolved. dochost branding is NOT settable here: it is resolved from the account's live plan at render time, so there is nothing per-page to flip — read `brandingHidden` from get_page for the rendered answer.

輸入參數slug必填publicpasswordsearchableremovePassword

delete_page

Delete a dochost page

Permanently delete one of your pages by slug. The link stops working immediately and the slug is freed. Deleting an already-deleted page is a safe no-op.

輸入參數slug必填

版本歷史

2
  1. v1.1.0最新Oct 20, 2026
  2. v1.0.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

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