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 sendAuthorization: Bearer oat_...orX-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).
Recommended Agent Loop
- Call
list_designsto find the target design and its latest round. - Call
get_round(design_id: ...)— inspect both the JSON notes and the attached visual snapshot images. - For copy, color, spacing, or localized markup fixes, call
patch_round(optionally passingapply_note_idsto auto-apply reviewer suggestions). For structural layout rewrites, callcreate_roundwhile preservingdata-folio-screenanddata-folio-idattributes. - Optionally call
reply_to_noteto explain trade-offs orcreate_share_linkto hand off a client preview URL.