Zipped.devDocs

MCP

Connect an AI assistant to Zipped.dev over MCP with an API key to publish sites and read review comments. Supports MCP 2025-03-26 to 2026-07-28.

Model Context Protocol (MCP) clients can manage sites over JSON-RPC without multipart uploads. Auth matches the REST API: a paid-plan Bearer key with sites:read and sites:write.

Endpoint and auth

Item Value
URL POST https://app.zipped.dev/api/mcp
Header Authorization: Bearer zp_live_xxxx
Body One JSON-RPC 2.0 request or notification per POST
Transport Plain JSON responses. No streaming, no sessions. GET returns 405

Local dev uses https://zipped.test/api/mcp with zp_test_ keys. Create keys under Settings → API keys (see API keys).

Sign-in is by API key only. OAuth sign-in is not available yet, so a client that can only connect through OAuth cannot use this server. Browser pages on other sites are refused (403); requests with no Origin header, such as curl, SDKs and desktop apps, are fine.

Supported MCP versions

Version Style Supported
2026-07-28 Stateless: no initialize, every request names its version Yes
2025-11-25 initialize handshake Yes
2025-06-18 initialize handshake Yes
2025-03-26 initialize handshake Yes
2024-11-05 Older HTTP + SSE transport No

Both styles work on the same URL, so you do not need to pick one. A request that names no version is treated as 2025-03-26, which is why the plain curl examples below work.

Handshake clients (2025-*) send initialize with their protocolVersion. If we support it, we reply with the same version. If not, we reply with our newest, 2026-07-28, and the client decides whether to continue. Then the client sends notifications/initialized and we answer 202 with no body. ping works for these versions.

Stateless clients (2026-07-28) skip initialize. Every POST must carry all of these, and they must agree with the body:

Where Field Value
Header MCP-Protocol-Version 2026-07-28
Header Mcp-Method The JSON-RPC method, for example tools/call
Header Mcp-Name For tools/call, the tool name, for example list_sites
Body params._meta["io.modelcontextprotocol/protocolVersion"] 2026-07-28

A missing or mismatched value returns 400 with error code -32020. A version we do not support returns 400 with code -32022, and error.data.supported lists the versions we do support. ping is not part of this version.

Connect from an MCP client

Add the URL and your key as a header. For Claude Code:

claude mcp add --transport http zipped https://app.zipped.dev/api/mcp \
  --header "Authorization: Bearer zp_live_xxxx"

Clients that read a JSON config use the same two values:

{
  "mcpServers": {
    "zipped": {
      "type": "http",
      "url": "https://app.zipped.dev/api/mcp",
      "headers": { "Authorization": "Bearer zp_live_xxxx" }
    }
  }
}

The exact config keys differ between clients. Check your client’s remote-server settings if this does not match.

Discover tools

Send tools/list:

curl -s -X POST "https://app.zipped.dev/api/mcp" \
  -H "Authorization: Bearer zp_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

The result includes list_sites, create_site, update_site, start_upload, finish_upload, cancel_upload, update_site_settings, list_review_rounds, list_review_comments, get_review_comment_context, and resolve_review_comment. Each tool has a title, a JSON Schema inputSchema, and annotations that say whether it only reads (readOnlyHint) or overwrites files (destructiveHint). Results also carry resultType, ttlMs and cacheScope so clients can cache the list.

Some script clients, such as Python’s default urllib, are blocked by our network firewall before they reach the server, even with a valid key (HTTP 403, error code: 1010). If you hit this, set your own User-Agent header (for example my-tool/1.0) or use curl or an official MCP SDK.

The same call in the 2026-07-28 style:

curl -s -X POST "https://app.zipped.dev/api/mcp" \
  -H "Authorization: Bearer zp_live_xxxx" \
  -H "Content-Type: application/json" \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -H "Mcp-Method: tools/list" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}'

To see which versions the server supports, send server/discover. It returns supportedVersions, capabilities, and short instructions for the assistant.

Call a tool

Use tools/call with params.name and params.arguments:

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "list_sites",
    "arguments": {}
  }
}

Successful calls return MCP content with a text part containing JSON from Zipped.dev.

list_sites

Scope: sites:read. Optional argument clientId (string) filters to one client folder. The text payload is a JSON array with the same fields as REST GET /sites: id, slug, displayName, publicUrl, status, sizeBytes, role, createdAt, expiresAt.

create_site

Scope: sites:write. Required arguments: slug, fileName, contentBase64 (standard base64 file bytes). Optional: name, clientId.

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "create_site",
    "arguments": {
      "slug": "demo-mcp",
      "fileName": "dist.zip",
      "contentBase64": "UEsDBBQAAAAI...",
      "name": "Demo MCP site"
    }
  }
}

The text payload matches REST create output: id, slug, publicUrl, skipped and findings.

update_site

Results from create_site and update_site include findings (see the REST docs for the codes), so an assistant can fix a bad build and try again. If two folders in the ZIP could be the site, the call fails with site_root_ambiguous and error.data.candidates lists them. Call again with root set to one of them.

Scope: sites:write. Required: siteId, fileName, contentBase64. Republishes files on an existing site (same behavior as POST /api/v1/sites/:id/deploy). The text payload matches REST: id, sizeBytes, skipped and findings.

start_upload, finish_upload, cancel_upload

Scope: sites:write. Use these for sites too big for base64: more than 50 files, over 10 MB, or any file over 500 KB. Limits are the dashboard’s: up to 2,000 files, 100 MB per file, and your plan’s storage.

  1. Call start_upload with slug (new site) or siteId (replace a site’s files), and files: a list of { "path": "index.html", "size": 1204 } with sizes in bytes. Optional: name, clientId, root. The result has a sessionId and an upload block with the URL.
  2. Send each file in files with its own PUT to upload.url, with ?path=<file path>, your API key in the Authorization header, and the raw bytes as the body. This step uses an HTTP client, not MCP, so your assistant needs a shell or code tool that can read the files. The size must match what you listed.
  3. Call finish_upload with the sessionId. If it returns done: false, call it again until done is true. The final result has id, slug, publicUrl, fileCount, sizeBytes, skipped and findings.

cancel_upload discards a session. An account can have 3 uploads open at once; a fourth start_upload fails with upload_sessions_limit until one finishes or is cancelled. An upload with no file sent and no finish_upload call for 30 minutes stops counting toward the 3. Another account’s key cannot use your sessionId. The same steps are available over REST; see API keys.

update_site_settings

Scope: sites:write. Required: siteId, plus spaFallback and/or hideFromSearch (booleans). Turns on app-style page routing for React or Vue sites, or asks search engines not to list the site. Same as the Settings switches in the dashboard. Owner keys only.

list_review_rounds

Scope: sites:read. Required: siteId. Returns rounds for that site (same fields as REST).

list_review_comments

Scope: sites:read. Required: roundId. Optional: status (open | resolved | all), format (json | markdown). Markdown matches the viewer Copy for dev handoff.

get_review_comment_context

Scope: sites:read. Required: commentId. Returns comment DTO plus screenshotUrl when present.

resolve_review_comment

Scope: sites:write. Required: commentId, resolved (boolean). Same ownership rules as the dashboard owner.

Errors

Errors are JSON-RPC errors that keep the request id. The HTTP status is the HTTP status of the problem, and it is repeated in error.data.status. error.message carries the same code strings as REST.

Problem HTTP error.code error.message
Missing, wrong, expired or revoked key 401 -32000 Unauthorized
Free plan, or a key without the scope 403 -32000 api_not_available or Forbidden
Browser page from another site 403 -32000 Forbidden
Missing or wrong argument 400 -32602 invalid_params: siteId is required
contentBase64 is not valid base64 400 -32602 invalid_base64: ...
Unknown tool 400 -32602 unknown_tool
Unknown method 404 -32601 Method not found
Not valid JSON 400 -32700 Parse error
A batch (array) or a reply sent as a request 400 -32600 Batch requests are not supported: ...
Version header and body disagree 400 -32020 Header mismatch: ...
Unsupported protocol version 400 -32022 Unsupported protocol version
Too many publishes 429 -32000 publish_rate_limited
Upload or slug problems from publish 4xx -32000 The code from REST, for example site_root_ambiguous

Extra facts, such as the folders to choose from after site_root_ambiguous, are in error.data. Send one request per POST: batches are not supported.

REST vs MCP

Use REST when curl or CI already sends multipart/form-data. Use MCP when your client speaks JSON-RPC and base64 payloads. Base64 makes a file about a third bigger, and the whole file travels inside the request. create_site and update_site therefore suit small sites: at most 50 files, 10 MB packed and unpacked, and no single file over 500 KB. For larger sites use start_upload and finish_upload, REST, or the GitHub Action. File-type rules are identical to the dashboard; see upload files.