quick-html-share-mcp

v0.2.3
io.github.desper/quick-html-share-mcp Checked 3 days ago Published 6 months ago

Share AI-generated HTML from your coding agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

qhs_share

Upload an HTML document (or self-contained snippet) and get back a public, unguessable shareable URL plus a private edit URL. Use this whenever the user wants to share, preview, demo, publish, or 'send a link for' some HTML they wrote/generated. Typical triggers: 'share this HTML', 'give me a link to send', 'put this online', 'publish this page', 'preview in browser', 'send to a friend'. The share URL is unguessable (~62 bits of entropy) and acts as a soft secret — only people with the link can view. No login required for viewers. IMPORTANT: After calling this, tell the user the editUrl is…

ParameterTypeDescription
html *stringThe full HTML document or self-contained snippet to publish.
titlestringOptional local-only label to help the user identify this share later. Not sent to server.

qhs_edit

Replace the HTML at a previously shared slug. Use when the user wants to update a share they already created — e.g. 'fix the typo on the page I shared', 'update that demo with the new code'. The shareUrl stays the same; viewers who already loaded the page need to refresh. Requires an edit token in ~/.qhs/shares.json (populated when qhs_share or the companion Claude Code skill created the share). If the slug is unknown, ask the user to paste their edit URL — the part after #edit= is the token.

ParameterTypeDescription
html *string
slug *string
editTokenstringOverride the locally-stored edit token. Pass this if the user supplied a fresh edit URL.

qhs_delete

Permanently delete a previously shared HTML. After this, the share URL returns 404. Use when the user says 'delete my share', 'take that page down', 'remove the demo I posted'. Requires an edit token (same as qhs_edit). Idempotent: re-deleting an already-deleted slug returns ok.

ParameterTypeDescription
slug *string
editTokenstring

qhs_stats

Get view statistics for a share: total view count, last viewed time, created time, and whether the share is deleted. Use when the user asks 'did anyone see my share', 'how many views', 'check who looked at it', 'is the demo getting traffic'. No edit token required — anyone with the slug can read stats (matches the product’s "link is the secret" model).

ParameterTypeDescription
slug *string

qhs_list

List shares this machine has created via qhs_share or the companion skill. Use when the user asks 'what have I shared', 'list my shares', 'show recent links'. Returns slug + shareUrl + createdAt + optional title from local storage only (~/.qhs/shares.json). Does NOT include shares created from other machines.