Gavana MCP
Gavana speaks the Model Context Protocol, so an MCP-capable client — ChatGPT, Claude, Codex, Cursor, or your own agent — can read your canvases, change them, and, when you ask for it, generate images and video into them.
Two things make this surface different from a generic tool API:
- Everything an agent touches stays visible. A change lands as a durable node on a real canvas you can open in a browser. There is no hidden side channel.
- Every write is revision-bound and idempotency-keyed. An agent that guesses gets a
409, not a silent overwrite of your work.
The hosted endpoint
There is one hosted MCP URL:
https://app.gavana.ai/mcpIt uses browser OAuth with PKCE, so you never paste a token into a chat window. A full-access connection is granted eight permissions: canvas:read, canvas:write, asset:read, element:read, element:write, image:generate, video:generate, and job:manage. See Authentication.
Settings → Connect an agent also offers a Read-only access switch for each app. A read-only connection is granted only canvas:read and element:read, and can call only the 14 tools the hosted tools reference marks read-only: it reads canvases and Elements and cannot change, generate, or cancel anything.
Listed versus callable
The hosted server can call 45 tools. A connection that names no profile lists 17 of them when the client asks what tools exist: the generic building blocks that cover almost every request.
| Job | Listed tools |
|---|---|
| Read the optional guide | guide_get |
| Find and read canvases | canvas_list, canvas_get, get_canvas_image |
| Start a task canvas | canvas_create |
| Change the graph safely | canvas_validate, canvas_apply_batch |
| Bring an image or a product page in | save_image_to_canvas |
| Generate and edit images | model_list, generate_image_in_canvas |
| Follow image runs | get_image_run, list_image_runs |
| Generate video | generate_video, get_video_job |
| Reuse visual identity | element_list, element_get, element_create |
The other 28 are unlisted but callable by their exact name, so a cached tool list or a handle returned by an earlier call keeps working. Several of them are now requests that a listed tool also accepts:
| Older tool | Listed tool that takes the same request |
|---|---|
guide_search | guide_get with query |
open_canvas | canvas_get or canvas_create, which return url |
find_video_models | model_list with a video capability |
edit_image_in_canvas | generate_image_in_canvas with operation: "edit" |
import_product_reference_pack | save_image_to_canvas with productPageUrl |
generate_product_photoshoot_in_canvas | save_image_to_canvas with productPageUrl, then generate_image_in_canvas with items |
The rest are specialist tools left off the default list on purpose: campaign planning (work_*), reusable workflows and Recipes, side-effect-free status reads (run_snapshot), request revisions (revise_image_request), and Element housekeeping. A merged request is authorized as the tool it replaces, so a connection that withheld find_video_models also refuses model_list with a video capability.
Profiles and narrowing
A connection can change what it lists, and narrow what it can call, with query parameters on the server URL:
| Parameter | Effect |
|---|---|
?profile=creative | Lists every tool the creative profile allows: canvas reads and task canvases, image and product-page import, model discovery, image generation and editing, request revisions, Recipe discovery and runs, workflow runs, and run snapshots. It leaves out graph batches, validation, Elements, Work, and video. Workflow runs default to keeping earlier outputs. |
?profile=advanced | Lists all 45 tools, and gives canvas_apply_batch a fully typed operation schema. |
?toolsets=canvas,images | Only tools in these toolsets can be called. |
?excludeTools=generate_video | These tools cannot be called. |
A profile or a filter only narrows: scopes, read-only access, and exclusions still apply, and none of them grants a permission or authorizes spending. An unknown value refuses the connection with invalid_profile, invalid_toolset, or invalid_exclude_tool rather than being ignored. Calling a tool the URL withheld returns toolset_not_enabled.
The server’s own MCP instructions name only the tools the connection lists, so a client is never steered toward something it cannot see.
Hosted or local?
Hosted (/mcp) | Local stdio (@gavana.ai/mcp) | |
|---|---|---|
| Transport | Streamable HTTP | stdio, on your machine |
| Auth | Browser OAuth (PKCE) | Agent Access token or saved CLI profile |
| Tools | 17 listed, 45 callable | 60, plus 5 deprecated campaign tools when enabled |
| Node.js required | No | Yes, 20 or newer |
| Best for | ChatGPT, Claude, Codex, Cursor, day-to-day work | Developer automation, node-level graph surgery, Actions, local files |
The hosted catalog is goal-focused. generate_image_in_canvas prepares targets, places them, and queues the run in one call, which is the right trade for a conversational client.
Reach for the local server when you need something the hosted server has no equivalent for: individual node_* and connection_* operations, deterministic image action_* tools, image_variations, recipe_fork, asset_list and asset_upload for files on your machine, canvas_render, or provider_list. See the local tools reference and Other clients for running it.
Seven tools can spend money
generate_image_in_canvas, edit_image_in_canvas, generate_product_photoshoot_in_canvas, generate_video, run_canvas_workflow, recipe_run, and work_execute reach your connected provider and can incur cost. Nothing else on the hosted surface starts paid work.
A direct request to make, generate, or edit images authorizes that one job. A repeated request is never new authorization, even right after the agent offered a retry. Spending again — a new idempotency key, or redoing an output that looks wrong — needs an explicit yes to regenerating. Never retry a failed paid call automatically. “Build me a workflow” authorizes create_canvas_workflow; it does not authorize run_canvas_workflow.
One canvas per task
There is no shared fallback canvas. The Agent Canvas is retired, and every tool that saves, imports, or generates needs an explicit canvas handle as its destination or canvasId; "agent-canvas" is refused with a message saying so.
- Continuing existing work: use the canvas the person points at, or find it with
canvas_list. - New work: call
canvas_createonce with atitleand a stableidempotencyKey, keep the returned handle, and reuse it for every later read, save, and generation in the task. A repeated create with the same key returns the same canvas. - Campaign planning:
work_preparecan create the task canvas itself; keep the handle it returns.
Existing Agent Canvas links still open for reading.
Handles, not guesses
Every durable thing Gavana returns has a stable, prefixed handle. Tools accept the handles the service returned; they do not accept identifiers an agent assembled from context.
| Prefix | Example shape | Returned by |
|---|---|---|
canvas: | canvas:<ownerUid>:<canvasId> | canvas_list, canvas_create, canvas_get, and every write |
node: | node:<nodeId> | canvas_get, save_image_to_canvas, generation results |
asset: | asset:<assetId> | image results, get_canvas_image, gavana asset upload |
run: | run:<id> | image generation, list_image_runs, workflow runs |
job: | job:<uuid> | generate_video |
model: | model:<key> | model_list |
element: | element:<id>@v<n> | element_list, element_get, element_history |
element-collection: | element-collection:<id> | element_collection_list, element_collection_create |
work: | work:<id> | work_prepare |
A plain canvas ID works for a canvas you own, and a plain node ID works too. The image run tools also accept the bare generationRunId an image node carries. Everything else must be the exact handle you were given.
Some handles are shape-checked before the request runs: get_video_job rejects anything that is not job: followed by a UUID, and generate_video rejects a firstFrame that is not a node: handle, an asset: handle, or an HTTPS URL. generate_video accepts any non-empty string as model, so a guessed model name reaches the provider layer instead of failing validation. Call model_list and use what it returns.
The safety contract
These rules are enforced by the server where enforcement is possible, and stated in the server’s own MCP instructions where it is not.
- Keep the person’s words. Their count, references and roles, composition, aspect ratio, language, and exclusions win over any guide default. If one cannot be met, say so; never substitute.
- Read before you write. Call
canvas_getbefore changing an existing canvas. For spatial, multi-node, or destructive work, dry-run withcanvas_validatefirst. - Preparation is not execution. “Build”, “prepare”, “set up”, and “draft” authorize graph edits only.
- Generation returns queued progress. Report it, then follow the returned
nextActionto check on it. Never start another generation to find out how the first one is doing. - Never auto-retry a paid request. One stable idempotency key per intended paid operation. A terminal failure is reported, not retried.
- Claim done only on evidence. Work is done when
canvas_validatereportscompletionReview.doneClaimAllowed: trueand the outputs exist. - Smallest possible delta. “Add” never means “reorganise”. Group your own new nodes in one Section of your own.
- Credentials never appear in chat, URLs, or logs. Webhook signing secrets are deliberately absent from MCP tool arguments.
- Share only the
X-Request-IDvalue with support. It identifies a failing request without exposing a token or canvas content.
The full contract, including the human-side responsibilities, is on The safety contract.
The Canvas Agent Guide
The application ships an optional, versioned how-to guide — guide version 1.9.0 — that an agent can read at runtime. Sixteen topics cover the basics (work-in-gavana), editing existing canvases, layout and Sections, connections, prompt lists, generated assets, video, product imports, paid-action safety, validation and recovery, creative and campaign work, reusable workflows, untrusted content, and common mistakes.
The guide is help, not a gate: a simple read, save, or single image needs none, and the person’s request always wins over a guide default.
Resource-capable clients see it as MCP resources under gavana://guides/canvas/v1/. Tool-only clients get the same content through guide_get: no arguments for the index, a topic ID for one topic, or query to search. Each connection receives the guide trimmed to the tools it can call. See the hosted tool guide.