brewpage-mcp

Publish HTML, Markdown, KV, JSON, files to brewpage.app from AI assistants.

Documentation

brewpage-mcp

npm version License: MIT Brewpage MCP server

MCP server for BrewPage -- publish and manage HTML, KV, JSON, and file content directly from AI assistants.

What is BrewPage

BrewPage is a free instant hosting platform designed for AI agents and developers. One POST request publishes HTML, Markdown, a multi-file site, a JSON document, or a binary file and returns its primary HTTPS link -- no account needed, no API keys, no infrastructure setup. Every resource carries an owner token returned at creation time: use it to update content in place, delete the resource, or authenticate list operations across sessions. brewpage-mcp exposes this API as twenty typed MCP tools so any compatible agent -- Claude, Codex, Gemini, Cursor, Cline -- can publish, update, fetch, and manage BrewPage HTML, JSON, KV, and file content without leaving the conversation.

Optional: sign in free (Google or any email) at https://account.brewpage.app to never lose your pages or tokens and to mint tokens that never expire. Not needed to publish.

Choosing a host? See how BrewPage compares with GitHub Pages, Netlify Drop, Tiiny Host and other tools: brewpage.app/compare.

Quick Start

npx -y brewpage-mcp@1.16.10

Requires Node.js 20 or newer. This starts the stdio server for an MCP client.

Remote (no install)

Add https://brewpage.app/mcp as a custom connector / remote MCP server by URL in Claude.ai, ChatGPT or any Streamable HTTP client. No auth; same 20 tools.

Claude Code: claude mcp add --transport http brewpage https://brewpage.app/mcp, or in .mcp.json:

{
  "mcpServers": {
    "brewpage": {
      "type": "http",
      "url": "https://brewpage.app/mcp"
    }
  }
}

Installation

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "brewpage": {
      "command": "npx",
      "args": ["-y", "brewpage-mcp@1.16.10"]
    }
  }
}

Claude Code

Register a project-scoped stdio server:

claude mcp add --transport stdio --scope project brewpage -- npx -y brewpage-mcp@1.16.10

This writes .mcp.json in the project root. Use --scope user for user-scoped registration. See the official Claude Code MCP guide.

Cursor

Open Settings > MCP and add:

{
  "mcpServers": {
    "brewpage": {
      "command": "npx",
      "args": ["-y", "brewpage-mcp@1.16.10"]
    }
  }
}

Cline (VS Code extension)

Open the Cline MCP settings panel and add:

{
  "brewpage": {
    "command": "npx",
    "args": ["-y", "brewpage-mcp@1.16.10"]
  }
}

Global Install

npm install -g brewpage-mcp@1.16.10
brewpage-mcp

Tools

Twenty tools are available. Creation returns an owner token; keep it to modify or delete the resource later. Owner tools take ownerToken, else BREWPAGE_OWNER_TOKEN (local server only). Supported password inputs use X-Password. Secrets allowed; likely ones are flagged in notices. For a secret: private namespace + password.

ToolPurpose
publish_htmlPublish HTML, Markdown, code or JSON
update_htmlReplace page content; omitted format preserves stored format, except a whole HTML document makes a Markdown page an HTML page
get_pageFetch raw page content
publish_fileFetch a source URL and upload the file; HTML and Markdown become pages
publish_sitePublish a single page or complete multi-file site bundle
republish_siteReplace the complete site bundle at the same ID/link
publish_jsonPublish a JSON object, array, or JSON-encoded string
get_jsonRead a JSON document
update_jsonReplace a JSON document
publish_kvCreate a KV store with an initial entry
set_kvSet or replace a key in an owned KV store
get_kvRead a KV value
update_hostingChange eligible delivery mode with owner token and hosting version
delete_resourceDelete an HTML page, site, JSON document, KV store or file
set_visibilityHide or show a public publication in the gallery and sitemap; link unchanged
bind_tokenAdd an owner token to your profile (admin token)
mint_tokenMint a profile token, shown once (admin token)
search_galleryBrowse public content or list owned resources
get_statsRead platform-wide statistics
get_limitsRead the current upload limits (GET /api/limits)

All five publish tools accept optional deliveryMode: "path" | "subdomain", sent only as X-Delivery-Mode; authored JSON and multipart bodies keep their existing format. Visibility and password protection are separate choices. Omitted namespace is private (a generated priv-<random> namespace): unlisted and not indexed; anyone with the link can still open it. public lists HTML, sites and files in the gallery and sitemap, so Google, Bing and AI search can find and index them; public pages are served on the brewpage.app domain for the strongest reach (a site always gets its own subdomain). Never put secrets in a public publication. Password-protected publications, JSON and KV are never listed.

The MCP server wraps a subset of the backend-generated public REST contract. TTL inputs take days or a string such as 2w/36h (default 15); the server rounds to whole days and clamps to 1–30 (owner-specific caps and eligible automatic extensions can differ). Use returned expiresAt. Every tolerated-input adjustment (TTL clamp, format alias, skipped site member, normalised namespace) comes back in the response notices array and is printed as Notice (code): message; secret-detected prints as WARNING (code): message: relay it to the user. A live BrewPage token or manage link in public content (credential-published) prints first as SECURITY ALERT (credential-published): …: tell the user to remove and reset it; that result is hidden from the gallery, so it prints no VISIBILITY line. A minted manageUrl prints as MANAGE LINK (private): …: give it to the user privately, never publish it. A listed public result prints VISIBILITY: public, listed. Hide: set_visibility listed=false. get_page reads stored rendered HTML or format-specific code/text from the API; it does not call the owner-only original-source endpoint or a browser viewer. publish_file uploads from a source URL and does not expose password or TTL inputs.

For a fresh publication, sites and HTML pages of format HTML outside public (including the generated unlisted namespace) always use Dedicated subdomain (subdomain); omit deliveryMode there. An explicit path there is not rejected: the publication is created on its subdomain and the result reports deliveryModeMatched: false, deliveryModeReason: "policy:subdomain-required" and a Delivery notice: line. Everything else in any namespace (Markdown, code/text, files, JSON, KV, public HTML) defaults to Promotion (path) and may choose Dedicated subdomain, including password-protected content. Promotion uses a BrewPage path with stricter active-document restrictions. Each NEW site gets one publication-specific host for its complete bundle, preserving relative/root-relative paths; missing assets return 404, with no SPA fallback. Third-party widgets may still need provider configuration.

Responses use the server's primary link verbatim, including the root slash, and expose routingCohort, actual/requested/effective modes, deliveryModeMatched, modeLocked, hostingVersion, access and the trusted-apex managementLink when present. Never reconstruct a host from namespace or ID. NEW password links are clean URLs: do not add ?p=; browser readers unlock through the trusted gateway. Owner tokens and API calls stay on the configured apex API origin.

When deliveryMode is omitted for a public HTML or Markdown page, the server may publish it on its own subdomain if the page needs browser features a BrewPage link does not provide. publish_html then prints deliveryModeReason: "auto:<codes>" and a Delivery notice: line with the server's explanation; pass deliveryMode: "path" to keep a BrewPage link, or change it later with update_hosting. advisory:<codes> (from publish_html or update_html) means the address was not changed but such features were found. Codes are comma-separated, drawn from storage, cookies, history, downloads, top-navigation, media-capture, pointer-lock, embeds, fullscreen. Neither line appears when nothing applies.

When creation returns an existing publication, it keeps its actual URL, cohort and mode, even when another mode was requested. OLD publications display Existing link, with null mode metadata; their legacy links and behavior remain unchanged. Ordinary content updates and site republishing preserve hosting. An eligible NEW publication (not a site, not a non-public html-format HTML page) may change mode separately with update_hosting.

Hosting

update_hosting

Change an eligible NEW publication (not a site, not a non-public html-format HTML page) between Promotion and Dedicated subdomain. Parameters: type (html | file | json | kv), namespace, id, ownerToken, deliveryMode (path | subdomain), and optional expectedVersion (current server hostingVersion, integer ≥1; pass it when known).

The tool sends owner-only PATCH /api/{html|files|json|kv}/{namespace}/{id}/hosting with {deliveryMode} plus expectedVersion when given, and X-Owner-Token. Mismatches are reported, not rejected: a stale or omitted version still applies the choice (a stale one adds deliveryModeReason: "policy:version-stale"); sites and non-public html-format HTML pages stay on their subdomain (policy:mode-locked) and OLD links stay unchanged (policy:classic-link), each answered 200 with deliveryModeMatched: false and a Delivery notice: line. Wrong owner returns 403, a malformed version (not a positive integer) 400, and a paused real change 503. Selecting the current mode returns 200 without incrementing the version. Always use the returned primary link; the publication host identity is retained through both directions.

update_hosting(type="html", namespace="public", id="aBcDeFgHiJ", ownerToken="tok_...", deliveryMode="subdomain", expectedVersion=1)

HTML

publish_html

Publish HTML, Markdown, code or JSON content to BrewPage; with format omitted the server detects it. Returns a public URL and owner token. Markdown raw HTML is rendered through an allowlist: scripts, styles, event handlers, forms, frames/embeds and meta/base/link are removed; links allow http, https, mailto, tel and relative URLs, images also data:; a lone unknown tag such as <author> shows as text.

Parameters: content (string), format (optional; omit to let the server detect HTML, Markdown, code or JSON; html keeps code/JSON as HTML; also markdown/md or a code language), namespace (optional -- omit for private, unlisted content; public lists the page in the gallery and sitemap for Google, Bing and AI search, served on the brewpage.app domain; never put secrets there), password (optional), ttlDays (days or a string such as 2w; default 15; the server clamps to 1--30, up to 90 with an owner token in a profile), filename (optional, used as title fallback), showTopBar (optional boolean -- adds a toolbar with filename, Download button, and theme toggle), deliveryMode (optional).

The result includes deliveryModeReason and a Delivery notice: line when the server returns them (see above).

Example prompt that invokes this tool:

"Save this HTML report so I can share the link with my team."

publish_html(content="<h1>Report</h1>...", format="HTML", ttlDays=15)

update_html

Update an existing HTML or Markdown page in place, preserving its short URL. Requires the original ownerToken returned at creation.

Parameters: namespace (string), id (string), content (string, the new body), ownerToken (string), format (optional HTML/Markdown alias or supported code language such as json, yaml, or typescript; omitted preserves the stored format, except that a whole HTML document makes a Markdown page an HTML page), tags (optional; replace the stored tags, [] clears, omitted keeps them).

An update never changes the link or delivery mode; an advisory deliveryModeReason and Delivery notice: line are printed when the server returns them.

Example prompt:

"Fix the typo in the report I published earlier -- same link."

update_html(namespace="public", id="aBcDeFgHiJ", content="<h1>Updated</h1>...", ownerToken="tok_...")

get_page

Fetch the content of a published BrewPage HTML page by namespace and ID.

Returns the actual response body as text, including authored HTML or JSON code. Hosting metadata and the primary link come only from server response headers; JSON fields inside the publication are never treated as platform metadata. The existing apex HTML API route is retained.

Parameters: namespace (string), id (string), password (optional, if the page is password-protected).

Example prompt:

"Retrieve the content of my published page so I can continue editing it."

get_page(namespace="public", id="aBcDeFgHiJ")

Files

publish_file

Upload a file to BrewPage by fetching it from a URL. Returns a public URL and owner token. Supports images, PDFs, video, audio, code files, and archives.

Parameters: url (string, the source URL to fetch), namespace (optional -- omit to keep the file private: unlisted and not indexed, anyone with the link can open it; public lists the file in the gallery and sitemap for Google, Bing and AI search), filename (optional custom filename), deliveryMode (optional). This tool does not expose base64, password, or TTL inputs.

An HTML or Markdown file becomes a page in any namespace and the returned link opens the page (notice html-file-as-page or markdown-file-as-page). A known file name extension decides, then the source's Content-Type, then the content; .txt and anything unclear stay files. An HTML file over the page limit or in no readable encoding stays a file shown as source (notice html-file-as-source). A file read in a guessed encoding is saved as UTF-8 (notice charset-guessed).

Example prompt:

"Upload this PNG and give me a shareable link."

publish_file(url="https://example.com/diagram.png")

Sites

publish_site

Publish a single-page or multi-file HTML site. Pass entryContent for a single page or files (array of {path, content}) for a multi-file site. Supports password protection, TTL, and owner token grouping. The result prints Title: (entry page title) after ID: when the server derives one.

Limits (current values from get_limits): a request is at most 25 MiB; a site at most 200 files, 5 MiB per file and 20 MiB in total; each path at most 380 characters. System files such as .DS_Store and __MACOSX/ are skipped and never count; files with an unsupported extension or a too-long path are skipped and reported in notices. Entry: entry, else root index.html, else the shallowest HTML file. A site limit hit answers 400 with a message naming the limit, as does a PDF/Office file that is unreadable or password-protected; 413 means the request is over 25 MiB, has too many files and form fields, or a file name/path is too long; 422 means no servable file is left; 503 means busy: retry after Retry-After seconds (failed publish tools print it).

Parameters: exactly one of entryContent (string) or non-empty files (array of {path, content}), entry (optional entry file path, default index.html), namespace (optional -- omit for private, unlisted content; public lists the site in the gallery and sitemap for Google, Bing and AI search; a site always gets its own subdomain), password (optional), ttlDays (days or a string such as 2w; default 15; the server clamps to 1--30, up to 90 with an owner token in a profile), ownerToken (optional, groups site under an existing owner), deliveryMode (optional; fresh sites require subdomain).

Example prompt:

"Deploy this static site with index.html and style.css."

publish_site(files=[{"path": "index.html", "content": "..."}, {"path": "style.css", "content": "..."}])

republish_site

Replace an owned site's complete file set at the same ID and primary link. Files absent from the new bundle are removed; matching files are overwritten and new files added. Hosting stays unchanged. The publish_site limits and status codes apply.

Parameters: namespace, id, ownerToken, exactly one of entryContent or a non-empty files array of {path, content}, optional entry (default index.html), ttlDays (ignored; existing expiry is preserved and a ttl-ignored notice is returned), and tags (optional; replace the stored tags, [] clears, omitted keeps them).

republish_site(namespace="public", id="aBcDeFgHiJ", ownerToken="tok_...", files=[{"path":"index.html","content":"<h1>Updated site</h1>"}])

JSON

publish_json

Publish a JSON document to BrewPage. Returns a public URL and owner token. The body may be passed as a JSON string or as a structured object.

Parameters: json (string, object, or array), namespace (optional -- omit for private content; public is the shared public namespace; JSON is never listed or indexed, anyone with the link can open it), password (optional), ttlDays (days or a string such as 2w; default 15; the server clamps to 1--30, up to 90 with an owner token in a profile), tags (optional string[]), ownerToken (optional existing owner), deliveryMode (optional).

Example prompt:

"Save this config blob as a JSON document I can fetch later."

publish_json(json={"mode": "dark", "version": 3}, ttlDays=15)

get_json

Fetch a published JSON document by namespace and ID.

Parameters: namespace (string), id (string), password (optional, sent as X-Password if set).

Example prompt:

"Read back the JSON document I just stored."

get_json(namespace="public", id="aBcDeFgHiJ")

update_json

Update an existing JSON document in place, preserving its short URL. Requires the original ownerToken.

Parameters: namespace (string), id (string), json (string, object, or array), ownerToken (string).

Example prompt:

"Bump the version field in that JSON doc to 4."

update_json(namespace="public", id="aBcDeFgHiJ", json={"mode": "dark", "version": 4}, ownerToken="tok_...")

KV

publish_kv

Create a new KV (key/value) entry. Returns a public URL and owner token. The KV entry is addressed by (namespace, id, key); this tool creates the entry and emits the generated id along with the owner token.

Parameters: key (string), value (string), namespace (optional -- omit for private content; public is the shared public namespace; KV is never listed or indexed, anyone with the link can open it), password (optional), ttlDays (days or a string such as 2w; default 15; the server clamps to 1--30, up to 90 with an owner token in a profile), tags (optional string[]), ownerToken (optional existing owner), deliveryMode (optional).

Example prompt:

"Store the selected theme so I can reuse it next session."

publish_kv(key="theme", value="dark")

set_kv

Set or replace the value at an existing (namespace, id, key) slot. Requires the original ownerToken.

Parameters: namespace (string), id (string), key (string), value (string), ownerToken (string).

Example prompt:

"Change the selected theme to light."

set_kv(namespace="public", id="aBcDeFgHiJ", key="theme", value="light", ownerToken="tok_...")

get_kv

Fetch the value stored at (namespace, id, key).

Parameters: namespace (string), id (string), key (string), password (optional, sent as X-Password if set).

Example prompt:

"What theme did I store?"

get_kv(namespace="public", id="aBcDeFgHiJ", key="theme")

Discovery

search_gallery

Browse the public gallery of BrewPage pages, or list resources you own. Returns a paged result with metadata (id, title, view count, created date). All parameters are optional; with no parameters this returns the most recent public pages.

Parameters: q (optional search query), page (optional, 1-based), size (optional page size), sort (optional date | views), mine (optional boolean -- list only resources owned by ownerToken), ownerToken (required only when mine=true).

Example prompt:

"What did I publish last week?"

search_gallery(mine=true, ownerToken="tok_...", sort="date")

Management

delete_resource

Delete a BrewPage resource (HTML page, site, KV store, JSON document, or file) using the owner token received at creation.

Parameters: type (html | site | kv | json | file), namespace (string), id (string), ownerToken (optional; default BREWPAGE_OWNER_TOKEN, local server only). Path segments are URL-encoded.

Example prompt:

"Delete the page I just published -- namespace public, id aBcDeFgHiJ."

delete_resource(type="html", namespace="public", id="aBcDeFgHiJ", ownerToken="tok_...")

set_visibility

Hide or show a public publication in the gallery and sitemap; the link stays the same. Only public, password-free HTML, sites and files can be listed; others answer with a visibility-not-listable notice.

Parameters: type (html | site | file | json | kv), namespace, id, listed (boolean), ownerToken (optional).

set_visibility(type="html", namespace="public", id="aBcDeFgHiJ", listed=false)

Output: LISTED: false · link unchanged.


bind_token

Add an owner token to your BrewPage profile (as publish) with an admin token of that profile (POST /api/owner-token/bind). Output: BOUND …ab12 · 3/20 active; tokens are never printed in full.

Parameters: token, ownerToken (admin token; optional, default BREWPAGE_OWNER_TOKEN, local server only).


mint_token

Mint a new profile token with an admin token (POST /api/owner-token/mint). The new token is shown once; the admin token is never printed.

Parameters: label (optional), scope (publish default | admin), expiresIn (30d | 90d | 1y | never; default admin 90d, publish never), ownerToken (admin token; optional).


get_stats

Get platform-wide BrewPage usage statistics (page count, file count, storage, daily totals). Supports an optional IANA timezone for the "today" boundary.

Parameters: tz (optional IANA timezone string, e.g. Europe/Lisbon, defaults to UTC).

Example prompt:

"How many pages are currently hosted on BrewPage?"

get_stats()

get_limits

Read the current limits from GET /api/limits (no auth needed; an owner token goes as X-Owner-Token). Always returns reach: profile only when the owner token is active in a profile, else token (also with no token); with a usable owner token also ownerMaxTtlDays. Sizes are bytes, TTLs days: requestMaxBytes; html, json, kv and files max size, counts and TTL default/maximum; profileMaxTtlDays (TTL cap for a token in a profile); sites.maxFiles, maxFileBytes, maxTotalBytes (uncompressed), maxArchiveExpansionBytes, maxPathChars, maxPathBytes, maxNameBytes, defaultTtlDays, maxTtlDays, allowedExtensions, skippedFileNames and skippedRootFolders. Call it before publishing a large or multi-file site.

Parameters: ownerToken (optional; default BREWPAGE_OWNER_TOKEN, local server only).

Example prompt:

"How many files can a BrewPage site have?"

get_limits()

Common LLM Query to BrewPage Tool Mapping

LLM query / intentToolNotes
"Publish this HTML so I can share it"publish_htmlformat=HTML; save ownerToken
"Share these meeting notes as a link"publish_htmlformat=MARKDOWN; readable rendered output
"Host this AI-generated artifact"publish_htmlnamespace optional; private/unlisted by default; public lists it in the gallery and sitemap
"Upload this image / PDF / video"publish_fileFetches from URL; inline preview on short URL
"Deploy this static site"publish_sitePass files array or entryContent
"Replace the site I published"republish_siteOwner token; complete bundle replaces all existing files
"Give my public page a dedicated address"update_hostingNEW publication, not a site or non-public HTML-format page; owner token + current hosting version
"Fix a typo in the page I shared -- same link"update_htmlRequires ownerToken; URL stays the same
"Remove the page I published"delete_resourceRequires ownerToken from creation
"Read back the page I published"get_pageReturns raw content for editing
"How many pages are on BrewPage?"get_statsReturns platform totals
"How big can my site be?"get_limitsCurrent request and per-type limits (bytes, TTL days)
"Store JSON state between turns"publish_jsonReturns short URL + owner token
"Read that JSON document back"get_jsonBy namespace + id
"Update the JSON I stored"update_jsonRequires ownerToken; preserves URL
"Save a value under a label / key"publish_kvCreate a new KV slot
"Change the KV value I stored"set_kvRequires ownerToken
"What did I store under that key?"get_kvBy namespace + id + key
"List my published pages" / "What did I publish?"search_gallerySet mine=true + ownerToken
"Browse the public BrewPage gallery"search_galleryOptional q, sort=date|views

Owner Token

Every publish response includes an owner token -- the only credential that allows updating or deleting your content. Save it. It cannot be recovered.

  • Reuse it with any publish tool (ownerToken) to group new resources under one owner; REST creates accept X-Owner-Token.
  • Set BREWPAGE_OWNER_TOKEN to use one token for every call; the output then names it instead of printing it.
  • Pass it to delete_resource to remove content.
  • Pass it to search_gallery with mine=true to list owned resources. get_page has no owner-token input; protected reads use password.

Configuration

VariableDefaultDescription
BREWPAGE_URLhttps://brewpage.appAuthorized apex API base URL; never a publication host
BREWPAGE_OWNER_TOKENunsetOptional default owner token (32 letters/digits) for every call; unset = new token per create

Remote HTTP mode

node dist/http.js serves stateless MCP Streamable HTTP for a deployment behind a reverse proxy (BrewPage runs it at https://brewpage.app/mcp). Docker: the image default is stdio; run docker run ... <image> node dist/http.js.

  • POST /mcp only, JSON responses, no Mcp-Session-Id; GET/DELETE /mcp -> 405. GET /healthz for the container healthcheck.
  • Requests with an Origin header -> 403 (no browser access). Only peers in BREWPAGE_TRUSTED_PROXY_CIDRS are served (others -> 403); the last X-Forwarded-For IP goes to the API with X-Forwarded-Proto/X-Forwarded-Host of the public origin.
  • publish_file downloads only from public addresses (every redirect re-checked, at most 3, 20 MiB).
  • Request body up to 32 MiB (413 above), sent at least ~250 KiB/s after the first 2 s (408 below). Light calls (handshake, tools/list, small reads), writes and large calls (over 1 MiB, publish_file) have separate slot pools; a full pool queues a request up to 30 s before 503. A body without Content-Length that grows past 1 MiB gets 503 at once when the large-call slot is busy. A slot is held until the tool finishes; a client disconnect cancels its backend calls. Per-IP caps and the publish_file download budget skip shared platform egress (BREWPAGE_SHARED_EGRESS_CIDRS plus the published lists).
  • Memory: run with --max-old-space-size=192 and a 512 MiB container limit.
  • Never reads BREWPAGE_OWNER_TOKEN; refuses to start when it is set. Pass ownerToken per call.
  • One JSON log line per request on stdout (method, tool, status, outcome, ms); no arguments, tokens or IPs. SIGTERM drains for up to 30 s.
VariableDefaultDescription
BREWPAGE_TRUSTED_PROXY_CIDRSrequiredComma list of reverse-proxy CIDRs or IPs
BREWPAGE_SHARED_EGRESS_CIDRSemptyComma list of platform egress CIDRs (one IP, many users): global limits only, no per-IP caps
BREWPAGE_SHARED_EGRESS_LIST_URLSemptyComma list of https URLs of published egress lists ({"prefixes":[{"ipv4Prefix"}]}, at least 100 prefixes, at most 1 MiB, no redirects); fetched at startup and daily, last good list kept
BREWPAGE_BACKEND_URLhttp://brewpage-backend-mcp:8080API base URL (internal address)
BREWPAGE_PUBLIC_ORIGINhttps://brewpage.appOrigin for returned links and forwarded proto/host
BREWPAGE_MCP_PORT8787Listen port
BREWPAGE_MCP_HOST0.0.0.0Listen address

Links

Changelog

1.16.10 -- 2026-11-05

  • publish_html, publish_file and update_html texts state the format order: format, known file name extension, then for files the source's Content-Type, then the content. publish_file: HTML and Markdown become pages in any namespace. update_html: a whole HTML document makes a Markdown page an HTML page. Contract 2.10.2. User-Agent: brewpage-mcp/1.16.10.

1.16.9 -- 2026-11-05

  • A publish result without an owner token (result.extras.isOwner false) prints a neutral line instead of naming another owner. Contract 2.9.6. User-Agent: brewpage-mcp/1.16.10.

1.16.8 -- 2026-11-02

  • Local (stdio) publish_file source downloads send User-Agent: brewpage-mcp/1.16.8, like every BrewPage call.

1.16.7 -- 2026-11-01

  • Owner tools answer a 404 WRONG_RESOURCE_TYPE (this id lives under another type) with the server body plus the resourceUrl to repeat the write at, instead of the publish-anew hint. Contract 2.8.58.

1.16.6 -- 2026-10-31

  • publish_html, publish_file and publish_site descriptions lead with namespace=public to be found (gallery + Google, Bing & AI search; omitted: private); the namespace input names what to publish publicly (docs, guides, demos, portfolios, reports, landing pages) and the generated priv-* default; the private result line says how to be found. Shorter texts, no new facts.

1.16.5 -- 2026-10-30

  • update_html takes optional tags (sent as ?tags=a,b); update_html and republish_site tags replace the stored tags, [] clears them, omitted keeps them. A 429 on any write prints the server's Retry-After beside the verbatim body (retryAfterSeconds).

1.16.4 -- 2026-10-30

  • Owner update tools (update_html, republish_site, update_json, set_kv) answer a 404 with the server body plus which publish tool makes a new copy; delete_resource relays the 404 unchanged.

1.16.3 -- 2026-10-30

  • Create ownerToken description: the token from the first create keeps publications under one owner; the owner-token banner adds that it goes as ownerToken on later publishes and updates; publish_site says static HTML, CSS and JS (incl. built bundles) run in the browser, PHP and other server code never run. Gemini context: save ownerToken privately, never in chat.

1.16.2 -- 2026-10-30

  • ttlDays description names the 90-day cap with an owner token in a profile.

1.16.1 -- 2026-10-30

  • Update tools (update_html, update_json, set_kv, republish_site) state that tokens and manage links never go in public content.

1.16.0 -- 2026-10-29

  • get_limits accepts ownerToken (remote /mcp gets reach/ownerMaxTtlDays). Results open with SECURITY ALERT (credential-published) when public content holds a live BrewPage token or manage link. Wording: limits reach, local-only env token, MiB.

1.15.5 -- 2026-10-29

  • publish_html prints the page title (Title:) when the server reports one; tool texts state plain size limits; get_limits names the per-type limits and the profile TTL cap.

1.15.4 -- 2026-10-29

  • publish_html and update_html texts name HTML, Markdown, code or JSON; format omitted -> server detects it.

1.15.3 -- 2026-10-29

  • publish_html sends format only when given, so the server detects code or JSON (contract 2.8.27); pass html to keep HTML.

1.15.2 -- 2026-10-29

  • publish_site and republish_site print the site's entry page title (Title:) when the server reports one.

1.15.1 -- 2026-10-27

  • Tool texts match contract 2.8.5 PDF/Office errors: a 400 means the file is unreadable or password-protected.

1.15.0 -- 2026-10-27

  • Supports MCP protocol 2026-07-28 (SDK v2).

1.14.5 -- 2026-10-27

  • Site publish hints add 400 for an unreadable, password-protected or too complex PDF/Office file and 503 when busy; a failed publish on 503 prints Retry-After.

1.14.4 -- 2026-10-26

  • Remote mode: a request keeps its slot until the tool finishes, and a client disconnect cancels its backend calls and source download; backend calls time out after 60 s. Separate pools for light, write and large calls queue briefly instead of refusing; request body up to 32 MiB. BREWPAGE_SHARED_EGRESS_CIDRS and BREWPAGE_SHARED_EGRESS_LIST_URLS exempt platform egress from per-IP caps. Tools are unchanged.

1.14.3 -- 2026-10-26

  • Old publications (made before 5 October 2026): the 409 hint says to POST the content to createUrl (sent for every type) with the matching publish tool in that namespace; republishUrl is browser-only. Update tool descriptions mention createUrl.

1.14.2 -- 2026-10-26

  • MCP Registry entry lists the remote endpoint https://brewpage.app/mcp (Streamable HTTP, no auth) beside the npm package. Tools are unchanged.

1.14.1 -- 2026-10-26

  • Security fix: namespace, id and key are encoded as single path segments; empty, . and .. are refused before any request, so calls stay under /api/<type>/. Valid inputs are unchanged.

1.14.0 -- 2026-10-26

  • Remote mode: node dist/http.js serves stateless Streamable HTTP (see Remote HTTP mode); stdio is unchanged. User-Agent: brewpage-mcp/1.14.0 ((remote) in HTTP mode).

1.13.2 -- 2026-10-25

  • namespace guidance matches BrewPage 2.1.5: public lists HTML, sites and files in the gallery and sitemap for Google, Bing and AI search (pages on the brewpage.app domain, a site on its own subdomain); omitted stays private; JSON and KV are never listed. Private publish_json/publish_kv results no longer suggest public for listing.
  • Old publications (made before 5 October 2026): the 409 hint mentions republishUrl only when the server sends it (HTML pages).

1.13.1 -- 2026-10-25

  • Old publications (made before 5 October 2026): update tools say they answer 409 OLD_PUBLICATION_READ_ONLY; that failure adds a hint to publish the content anew and give the user the new URL and owner token.

1.13.0 -- 2026-10-25

  • Identifying User-Agent: brewpage-mcp/1.13.0 on every BrewPage call.
  • Optional BREWPAGE_OWNER_TOKEN default; ownerToken on publish_html and publish_file; owner tools fail before HTTP without a token.
  • New tools: set_visibility, bind_token, mint_token (twenty tools).
  • delete_resource deletes sites and URL-encodes path segments.
  • Prints MANAGE LINK (private), VISIBILITY and WARNING (code) lines; a wrong-token 403 adds a hint.

1.12.1 -- 2026-10-22

1.12.0 -- 2026-10-22

  • New get_limits tool reads GET /api/limits: request size, site file count, per-file and total size, ZIP expansion, path and name lengths, TTL default/maximum, allowed extensions and skipped system files.
  • publish_site and republish_site describe the backend 1.123.0 site rules: 200 files (was 100), 5 MB per file, 20 MB total, 25 MB per request; 400 for a site limit hit, 413 for an oversized request, too many parts or an overlong file name/path, 422 when no servable file is left; entry resolution and skipped system files. Seventeen tools.

1.11.0 -- 2026-10-21

  • Every publish/update tool prints server notices as Notice (code): message lines. ttlDays takes a positive number or a string such as 2w; the server rounds and clamps instead of the client rejecting values above 30. publish_html format accepts any string; the server maps aliases. republish_site TTL is ignored with a ttl-ignored notice. Same sixteen tools.

1.10.0 -- 2026-10-21

  • update_hosting: expectedVersion is optional; a stale version, a locked mode or an OLD link answers with a successful result plus deliveryModeReason and a Delivery notice: line instead of an error. A publish request for path where subdomain is required succeeds on the subdomain and prints the notice. Same sixteen tools.

1.9.5 -- 2026-10-21

  • deliveryMode, publish_html and update_hosting describe the backend 1.117.0 delivery rule: sites and non-public HTML-format pages require subdomain; Markdown, code/text, files, JSON and KV default to path in any namespace. publish_html notes that Markdown raw HTML is allowlist-sanitized.
  • Keep sixteen tools, all input defaults and HTTP behavior unchanged. Independently versioned from backend API contract 1.117.0.

1.9.4 -- 2026-10-20

  • Tool descriptions and responses describe a create that returns an existing publication in plain terms; its link and delivery mode are kept as returned.
  • Keep sixteen tools, all input defaults and HTTP behavior unchanged. Independently versioned from backend API contract 1.113.0.

1.9.3 -- 2026-10-11

  • Correct tool/discovery descriptions for unlisted access, conditional native indexing, exact share links, current limits, owner/extension TTL exceptions, retained site-republish expiry and API content representations.
  • Keep sixteen tools, all input defaults and HTTP behavior unchanged. This metadata package patch is independently versioned from backend API contract 1.107.2.

1.9.2 -- 2026-10-06

  • Dependencies are declared as exact versions, so an installed server uses the same SDK and zod versions it is built and tested with. No functional change.

1.9.1 -- 2026-10-06

  • Dependency maintenance: refreshed the locked dependency versions used to build and test the server. No functional change.

1.9.0 -- 2026-10-06

  • publish_html and update_html print deliveryModeReason and a Delivery notice: line when the server returns them. No input changes.

1.8.0 -- 2026-10-05

  • Add update_hosting and the optional deliveryMode input on publish tools; responses show the server's hosting metadata. Tool count: 15 -> 16.

1.7.0 -- 2026-06-08

  • Add republish_site -- replace a published site's files at the same URL. Tool count: 14 -> 15.

1.6.0 -- 2026-06-05

  • Private-by-default publishing. When namespace is omitted, all five publish tools (publish_html, publish_file, publish_site, publish_json, publish_kv) now send an explicit unlisted namespace (priv-<random>) instead of letting the backend default to public. Omitted namespace = unlisted (reachable only by its link, not gallery-listed, not search-indexed); pass namespace: "public" explicitly to list + index. Non-breaking: namespace stays optional.
  • Publish responses for non-public namespaces now append an "Unlisted link" notice explaining how to make content public.
  • Tool descriptions and README rewritten to reflect the private-by-default model.

1.5.0 -- 2026-05-21

  • Add 8 new MCP tools: update_html, publish_json, get_json, update_json, publish_kv, set_kv, get_kv, search_gallery.
  • Tool count: 6 -> 14. Full coverage of HTML update, JSON CRUD, KV CRUD, and gallery discovery (incl. owner-scoped listing via mine=true).
  • Update operations (update_html, update_json, set_kv) require the original ownerToken; password (when set) is forwarded as X-Password.

1.4.0 -- 2026-05-12

  • Sync to spec 1.31.0 -- adds raw text/* and application/octet-stream variants on POST /api/html; PUT mirror; 422 with supportedTypes.

License

MIT