# Build a Sitio page with an AI assistant

Sitio is a page builder for a personal corner of the internet: a link-in-bio page, a personal homepage or a small business page at its own address, address.sitio.page. An AI assistant can build one for a person through Sitio's MCP server, or over plain HTTP when it can't add a connector. Building is free, there is no API key to create, and the person only has to give their email and read out a 6-digit code.

This guide is written for the assistant doing the work, and for the person setting it up.

## 1. Choose how to connect

Pick the first that works where you are, and don't pretend about the others:

1. **Sitio's MCP tools are already available to you** (you can see `start_sign_in`):
   use them. Section 2 below.
2. **No MCP tools, but you can send HTTP requests**, a POST with a JSON body and your
   own headers, for example by running code that can reach the internet: use plain HTTP.
   Nothing for the person to install. See "No connector: plain HTTP" below.
3. **Neither**: tell the person honestly, and give them the steps to add Sitio as a
   connector (just below). Opening web pages is not enough: reading this guide doesn't
   mean you can build.

### Add Sitio as a connector

Sitio is a remote MCP server. Add it wherever your assistant lets you add a custom MCP
server or connector:

- **Address:** `https://app.sitio.page/api/mcp`
- **Transport:** Streamable HTTP
- **Authentication:** none to configure. Leave API key and OAuth fields empty; signing in
  happens inside the conversation (step 2).

Common setups:

```bash
# Claude Code
claude mcp add --transport http sitio https://app.sitio.page/api/mcp
```

```json
// Cursor (.cursor/mcp.json), Claude Desktop and others that use "mcpServers"
{ "mcpServers": { "sitio": { "url": "https://app.sitio.page/api/mcp" } } }
```

```json
// VS Code (.vscode/mcp.json)
{ "servers": { "sitio": { "type": "http", "url": "https://app.sitio.page/api/mcp" } } }
```

In Claude and ChatGPT on the web or phone, open the connectors (or "apps") settings,
choose to add a custom connector, and paste the address above. The exact menu names
change over time; look for "custom connector" or "MCP server".

Nothing to install, and no account is needed beforehand.

### No connector: plain HTTP

The same flow works with ordinary HTTP requests to `https://app.sitio.page`. Every body is JSON; every
answer is JSON. No API key and no cookies.

```bash
# 1. Email the person a 6-digit code
curl -X POST https://app.sitio.page/api/agent/sign-in -H 'Content-Type: application/json'   -d '{"email": "person@example.com"}'

# 2. Sign in with the code they read out to you; keep the session_token it returns
curl -X POST https://app.sitio.page/api/agent/sign-in/finish -H 'Content-Type: application/json'   -d '{"email": "person@example.com", "code": "123456", "assistant": "Your name"}'

# 3. From now on, send the token on every call
AUTH='Authorization: Bearer <session_token>'
curl https://app.sitio.page/api/agent -H "$AUTH"                         # the tools and every endpoint
curl "https://app.sitio.page/api/handles/check?handle=ana-lima" -H "$AUTH"
curl -X POST https://app.sitio.page/api/pages -H "$AUTH" -H 'Content-Type: application/json'   -d '{"handle": "ana-lima"}'                             # returns the page's id
curl -X POST https://app.sitio.page/api/pages/<page_id>/operations -H "$AUTH"   -H 'Content-Type: application/json'   -d '{"operations": [{"tool": "add_text", "input": {"text": "Hi, I am Ana"}}]}'
curl -X POST https://app.sitio.page/api/pages/<page_id>/elements -H "$AUTH"   -H 'Content-Type: application/json'   -d '{"type": "map", "place": "Livraria Lello, Porto", "caption": "Find us"}'
curl "https://app.sitio.page/api/pages/<page_id>/screenshot?device=phone" -H "$AUTH" -o page.jpg
```

Every tool in section 5 runs through `operations`, with the same names and inputs as over
MCP; send several in one call and they apply together. `GET https://app.sitio.page/api/agent` lists them
with their input schemas, readable before signing in. Upload an image with
`POST /api/pages/<page_id>/assets` (multipart, field `file`). The steps, rules and limits
below are the same either way.

## 2. The flow, from email to a live page

1. **Ask the person for their email address.** Call `start_sign_in` with it. Sitio emails
   them a 6-digit code. The email says an AI assistant asked for it.
2. **Ask them to read out the code.** Call `finish_sign_in` with the email and the code.
   A new address gets an account at this moment; an existing one is signed in. The
   connection stays signed in for 8 hours.
3. **Choose the page.** `list_pages` shows their pages. For a new one: agree an address
   with them (it becomes part of their link), check it with `check_address`, optionally
   pick a starting design from `list_templates`, then call `create_page`.
4. **Build.** Add text, links, shapes, stickers, images and forms with the `add_` tools.
   `get_page` shows what is on the page. Use the person's real name, words and links:
   never invent a link or a fact about them. **Make the whole design fit one desktop
   screen (1200 by 600)**: compose across the width, in columns, and keep it compact. Go
   below the first screen only when the content can't fit or the person asks for a longer
   page. `get_page` and the result of every change say how many `screens` the page is.
5. **Show them the page.** Call `screenshot_page` after each meaningful round of changes
   (phone first: most visitors are on phones), show the picture, ask what to change, and
   repeat until they are happy.
6. **Hand over for publishing.** An assistant can't publish a page for the first time.
   Tell the person: open https://app.sitio.page, sign in with the same email, and press **Publish**.
   They can also keep editing there by hand. Once a page is live, `publish_page`
   publishes later changes when they ask.

## 3. What it costs

Building is free. Publishing a page costs $19 once (no subscription), paid by the owner in the app when they press Publish, or is free once 3 friends the owner invited have joined Sitio (the page then always shows the Sitio badge). An unbought page is kept for 30 days.

## 4. Staying signed in

- Most assistants keep the connection's session by themselves (`Mcp-Session-Id`).
- If a call answers "Nobody is signed in on this connection", pass the `session_token`
  that `finish_sign_in` returned as an argument to that call.
- After 8 hours, or after `sign_out`, sign in again with a new code.
- The same `session_token` works as `Authorization: Bearer <token>` on the REST API, and
  over plain HTTP it is how every call after sign-in is signed in.
- The person can see every assistant signed in to their account, and sign any of them
  out at once, in the app under "AI assistants".

## 5. Tools

| Tool | Needs sign-in | What it does |
|---|---|---|
| `start_sign_in` | no | Step 1 of signing in. |
| `finish_sign_in` | no | Step 2 of signing in. |
| `list_pages` | yes | List the owner's pages with their ids, addresses and whether they are live. |
| `get_guide` | no | How to build a good Sitio page: coordinates, defaults, fonts, colours and stickers. |
| `check_address` | no | Whether an address is free. |
| `list_templates` | no | The starter templates: id, name, category and what each is for. |
| `create_page` | yes | Create a new page at an address, blank or from a template. |
| `upload_image` | yes | Upload a picture to a page, then place it with add_image using the returned asset key. |
| `invite_progress` | yes | How many friends the owner has invited who joined, towards publishing a page for free (3 friends per page), and their invite link to share. |
| `get_brief` | yes | Read the page's brief: what the owner told Sitio about the page they want (name, a line about them, links, style, colours, looks they like, pictures, notes) and what Sitio found on their link page or website. |
| `update_brief` | yes | Save what the owner tells you about the page they want into its brief, so it is there next time. |
| `import_links` | yes | Bring every link from the person's current link-in-bio page into the brief: paste its address. |
| `read_website` | yes | Read the person's business or personal website (one page) into the brief: its name, description, colours, social profiles and contact email. |
| `build_from_brief` | yes | Replace the whole page with one built from its brief (the same builder as quick start: their name, words, links, pictures, style and colours). |
| `get_page` | yes | Read the page: settings, background and every element with its id, type, content, style and position (desktop and mobile). |
| `add_text` | yes | Add a block of text: a heading, a bio, a caption. |
| `add_link` | yes | Add a link button that takes visitors to another address (a website, a social profile, an email). |
| `find_link_picture` | yes | Look for the preview picture of the page a link goes to and put it on the link. |
| `set_link_picture` | yes | Put one of the page's images (list_images) on a link as its picture. |
| `remove_link_picture` | yes | Take the picture off a link. |
| `add_shape` | yes | Add a rectangle or ellipse: colour blocks, backdrops behind text, frames, dots. |
| `add_sticker` | yes | Add one of Sitio's hand-drawn stickers. |
| `add_image` | yes | Place an image the owner already uploaded to this page (keys from list_images). |
| `add_drawing` | yes | Draw freehand lines, like a pencil: underlines, arrows, doodles, circles around things. |
| `add_embed` | yes | Add embed code the owner pasted from another service (a newsletter form, a player). |
| `add_player` | yes | Add a video or music player from a link the owner gave you: YouTube, Vimeo, Spotify, SoundCloud, Bandcamp or Twitch. |
| `add_map` | yes | Add a Google map with a pin: a shop, a venue, a meeting point, a city. |
| `add_form` | yes | Add a form visitors fill in: contact, RSVP, bookings, sign-ups, questions. |
| `update_element` | yes | Change an existing element: move or resize it (desktop units), change its content (text, label, url, alt…), its style (colours, font, size…), where it links to, or lock it. |
| `delete_elements` | yes | Remove elements from the page. |
| `arrange_element` | yes | Change what's on top: bring an element to the front, send it to the back, or move it one step. |
| `duplicate_element` | yes | Copy an element, shifted by dx/dy desktop units (default 24, 24). |
| `set_background` | yes | Set the page background: one colour, or a gradient between two colours. |
| `search_gifs` | yes | Search GIFs or stickers from KLIPY (an empty query lists what's trending). |
| `add_gif` | yes | Place a GIF or sticker found with search_gifs: pass its kind, ref and path as returned, and its width and height as sourceWidth and sourceHeight to keep its shape. |
| `list_stickers` | yes | List Sitio's stickers with their names. |
| `list_images` | yes | List the images the owner uploaded to this page, with their keys and sizes. |
| `apply_template` | yes | Replace the whole page with a starter template. |
| `update_page_settings` | yes | Change the page title (browser tab and link previews), its description, or whether search engines should skip it. |
| `screenshot_page` | yes | A picture of the page's current draft, as a visitor would see it. |
| `watch_page` | yes | Make a watch link: an address where the person watches their page being built, live and read-only, without signing in. |
| `publish_page` | yes | Publish the draft's changes to a page that is ALREADY live. |
| `unpublish_page` | yes | Take the page down. |
| `sign_out` | yes | End this connection's sign-in now. |

## 6. Limits

- Sign-in codes: 3 an hour per email address, 5 an hour per network address. A code works once and expires in 10 minutes.
- Changes: 600 tool calls an hour per account.
- Screenshots: 60 an hour per account.
- Pages: up to 3 unbought pages at a time per account.
- Images must be uploaded (`upload_image`); they are never fetched from a web address.

## 7. If something goes wrong

| What you see | What to do |
|---|---|
| "Nobody is signed in on this connection" | Sign in (step 2), or pass `session_token` to the call. |
| "That code didn't work" | Ask the person to check it; codes expire after 10 minutes. Call `start_sign_in` again for a new one. |
| "Too many sign-in codes were asked for" | Wait an hour, or the person can sign in at https://app.sitio.page and create an access key under "AI assistants". |
| "An AI assistant can't publish a page for the first time" | Expected. The person publishes at https://app.sitio.page with the same email. |
| "Screenshots aren't available right now" | Describe the page instead; `get_page` lists what is on it. |
| There is no `add_map` tool | Your tool list was read before maps existed: reconnect to Sitio to refresh it. Meanwhile `add_player` with the place's address as `url` adds a map. |
| The map shows the wrong place | `add_map` answers with where the pin is and `otherMatches`. Move it with `update_element` and `content.latitude` and `content.longitude`, or a fuller `content.place` (street, number and town). |
| "That address is taken" | Suggest two or three alternatives and check them with `check_address`. |
| "That address isn't allowed" | It contains a word the Acceptable Use Policy rules out. Tell the person plainly and suggest a different address; don't try other spellings of the same word. |

## 8. Rules of the road

- Work only on this person's own pages, and only do what they asked.
- Never ask for a password: Sitio has none. Give the emailed code to nobody.
- An assistant builds pages. It can't buy or refund a page, change a page's address, or
  change where a page's form messages go: those belong to the owner, in the app.
- Nothing is public until the owner publishes. What is published is public to everyone,
  so don't add anything they wouldn't want seen: it is their name on the address.
- Published pages follow Sitio's [acceptable use policy](https://sitio.page/acceptable-use).

More: [everything in one file](https://sitio.page/llms-full.txt) · [for people](https://sitio.page/ai)
