# Docs

How Publidock works. Publish a static file to a live URL. The HTTP API, CLI, MCP, and CI all use the same POST.

Source: https://publidock.com/docs

## How do I publish without a browser?

POST /api/v1/sites/{slug}/versions with a zip and a bearer token. The CLI, the CI action, and the MCP server use that same call.

## What can a publish token do?

Scope it to one site and it can only publish that site. It cannot read another site, change a share rule, or reshare anything.

## How do I connect MCP?

Paste https://{your app}/mcp into Claude or Cursor and OAuth into the workspace — nothing to install. Agents with files on disk can run publidock mcp over stdio instead.

## What files can I publish?

HTML, PDF, markdown, CSV, images, or a folder or zip of those. We find the entry point — index.html, then home.html, then a README for markdown folders — and keep every relative path.

