Publish Site
neuron_sites_publishPublish a static site (HTML/CSS/JS/images/fonts/PDF/video) and get its link. Creates a new site when siteId is omitted, otherwise redeploys to the same URL — the link and access settings survive and the previous version stays available for rollback. Pass exactly one source: dir (local folder, e.g. the output of a build), zipPath (local .zip), html (a single page), or files ([{path, base64}]). New sites start Restricted (only you). Use neuron_sites_set_access to share. Only changed files are uploaded on redeploy. A new site is reviewed by Neuron once; until approved (reviewStatus), visitors can't open it. Its address (label) is fixed for life.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Local folder to publish (local MCP only). index.html at its root opens first. | |
| html | No | A single HTML page; becomes index.html. | |
| mode | No | 'replace' (default): the source IS the whole site. 'patch' (needs siteId): start from the live version; the source's files add/replace those paths, `delete` removes paths, everything else carries over. Use patch for a one-file change. | |
| name | No | Name for a new site (required when siteId is omitted). | |
| note | No | Version note, e.g. 'Added pack 41'. | |
| files | No | Files as base64 with relative paths. | |
| label | No | Business plans: the address for a new site (<label>.<sites domain>). Lowercase letters, numbers, hyphens. Can't be changed later. Omit to get one generated. | |
| delete | No | mode=patch only: site paths to remove, e.g. ['brand/old-logo.png']. | |
| siteId | No | Existing site to redeploy. Omit to create a new site. | |
| zipPath | No | Local .zip to publish (local MCP only). A single top-level folder is unwrapped. | |
| entryPath | No | Page that opens at / when there's no index.html. |