Publish a site
publish_siteUse this when the user wants something put online, shared as a link, or hosted. Publishes files to a live permanent URL at the chosen slug. Returns {url, slug, version, token?}. The token appears only on the first anonymous publish; store it to update later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spa | No | Serve index.html for unknown paths (single-page apps). | |
| slug | No | Lowercase letters, digits, hyphens (1-63). Omit for a random slug. | |
| files | Yes | Map of relative path to file contents. Text as a string, binary as {"base64":"..."}. Example: {"index.html":"<!doctype html><h1>Hi</h1>","img/logo.png":{"base64":"iVBOR..."}} | |
| merge | No | Add these files to the existing site instead of replacing it. | |
| token | No | Bearer token returned by your first publish (deed_tok_...). Optional if the MCP client sends Authorization: Bearer. | |
| ttl_seconds | No | Opt-in expiry in seconds. Omit for a permanent site. |