Menu

MCP & AI Agents

Connect Claude, Cursor, or Codex over Streamable HTTP MCP to read visual feedback and ship Round N+1 live

Connecting an Agent

Folio exposes an authenticated Streamable HTTP MCP server at /mcp.

  • OAuth 2.1 (recommended): Point Claude, Cursor, or any MCP client with OAuth discovery at https://your-folio-host/mcp. You'll sign in and choose which organization to authorize.
  • Org API Key: Create an oat_… key in Settings → API keys and send Authorization: Bearer oat_... or X-API-Key: oat_.... Keys are permanently bound to the organization they were minted in.

Available MCP Tools

Tool Purpose
list_designs List every design and round in the org with open note counts and approval counts.
get_round Read a round's HTML, open notes, CopyEdit / StyleEdit payloads, element computed-style context, approvals, assets, and annotated PNG snapshot images (returned as MCP image content blocks).
patch_round Preferred for targeted updates. Apply find/replace HTML patches, CSS selector overrides, and/or auto-apply reviewer CopyEdit + StyleEdit notes to publish Round N+1 without resending the full HTML.
create_design Publish a brand-new standalone HTML design (Round 1).
create_round Publish a full-HTML rewrite as Round N+1, resolving specified resolve_note_ids and carrying remaining open threads forward.
reply_to_note Reply in a reviewer's note thread (notifies the reviewer via email and updates live browsers).
update_note_status Set a note's status to open, resolved, or wontfix.
upload_asset Upload an image, SVG, font, or CSS file (base64) and get its /review-assets/{design_id}/{path} URL.
create_share_link Mint a guest /share/{token} review link for external stakeholders.

Live Agent Presence

Whenever an agent calls get_round, reply_to_note, patch_round, or create_round, Folio broadcasts live agent status to everyone in the workspace header (e.g. Ada (MCP) · Reading Round 2 feedback → Published Round 3).

  1. Call list_designs to find the target design and its latest round.
  2. Call get_round(design_id: ...) — inspect both the JSON notes and the attached visual snapshot images.
  3. For copy, color, spacing, or localized markup fixes, call patch_round (optionally passing apply_note_ids to auto-apply reviewer suggestions). For structural layout rewrites, call create_round while preserving data-folio-screen and data-folio-id attributes.
  4. Optionally call reply_to_note to explain trade-offs or create_share_link to hand off a client preview URL.