Skip to content

MCP ​

prevju has an MCP server at <APP_URL>/mcp. With it, Claude Code or Codex can create sites, upload drafts and give you the client link.

Connect ​

Create a token in the admin under MCP. The page generates the command with your token filled in, for Claude Code or Codex, for all projects or just the current one.

Claude Code (--scope user for all projects, --scope local for the current one):

bash
claude mcp add --transport http --scope user prevju https://preview.example.com/mcp --header "Authorization: Bearer <token>"

Codex: add this to ~/.codex/config.toml (all projects) or .codex/config.toml in a trusted project. Keep the project file out of git, it contains the token.

toml
[mcp_servers.prevju]
url = "https://preview.example.com/mcp"
http_headers = { "Authorization" = "Bearer <token>" }

A token has the same rights as the admin login. Create one per device so you can revoke them one by one.

Tools ​

ToolWhat it does
get-compatibilityReturns What works. Agents call it before uploading
list-sites, get-siteSites with link, password status and files
create-siteNew site, optionally with a password
update-siteRename, set or remove the password
write-filesWrite generated text files (HTML, CSS, JS) directly
get-upload-urlSigned 15-minute URL to upload a zip or binary file with curl
delete-file, clear-files, delete-siteDestructive, no undo

For a new version of a draft, agents upload with replace: the live site switches over in one step and is never empty in between. A failed upload changes nothing.

Limits ​

  • Zips and other binary files are uploaded with curl to a signed URL, so they need a client with a shell (Claude Code, Codex).
  • Connectors in claude.ai and Claude Desktop need OAuth, which prevju doesn't support yet.