Connect an Agent
Gavana offers three ways to connect an AI client. They differ in how the client signs in, how many tools it sees, and how much it can spend.
The quickest path: Connect an agent
Open Gavana and go to Settings → Connect an agent, or open app.gavana.ai/settings/access-tokens directly. The page has three tabs.
| Tab | What it is for |
|---|---|
| Connect an app | Set up a client. Either copy one message into an agent on your computer, or pick your app and follow its numbered steps. |
| Connected (n) | Every connection in one list — browser sign-ins and Personal Access Tokens together — with its permissions, when it connected, and when it was last used. Revoke any of them here. |
| Developer | The Gavana CLI install commands, and Personal Access Tokens for scripts and apps that cannot sign in through a browser. |
Under Connect an app:
- Let your agent set it up. For Claude Code, Codex, Cursor, Hermes, or another agent running on your computer. Click Copy message, paste it into the agent, and it adds Gavana the way that app expects, then asks you to click Connect in your browser. The message names only the server address and the server name — no CLI, no token. The page shows Waiting for your agent to connect… and updates itself.
- Or set up an app yourself. Pick Claude, ChatGPT, or Hermes, or one of Claude Code, Codex, Cursor, VS Code, and Other. The page shows that app’s steps under a heading such as Connect Cursor, ending with one last step: Click Connect on the Gavana page. Add
?client=to the address to open one app directly, for examplehttps://app.gavana.ai/settings/access-tokens?client=cursor.
The page switches to a message such as Cursor connected on the client’s first real request, not when you approve the consent screen. If it keeps waiting after you approved, start a new chat or session in the app and ask it to list your canvases.
Older links to app.gavana.ai/connect still work: that address now redirects to Settings → Connect an agent and keeps its ?client= choice.
Pick your client
The three transports
| Hosted MCP | Local MCP | CLI | |
|---|---|---|---|
| Endpoint or command | https://app.gavana.ai/mcp | npx -y @gavana.ai/mcp@0.5.1 | gavana |
| Authentication | Browser OAuth | Your CLI login, or a Personal Access Token | Browser OAuth or a token |
| Tools | Lists 17 core tools; every hosted tool stays callable by name | The full local catalog | Every command group in the CLI Reference |
| Runs on | Gavana’s servers | Your machine | Your machine |
| Webhooks | Not available by design | Not available by design | Available |
| Best for | Chat clients and coding agents — ChatGPT, Claude, Cursor, Codex, any OAuth-capable MCP client | Agents that need the widest tool surface or work with local files | Scripting, CI, and shell composition |
Hosted MCP
A remote MCP server that Gavana runs. Your client connects over HTTP and signs in through a browser — no token is ever pasted into the client.
https://app.gavana.ai/mcpThe production server name is gavana. Gavana keeps that name stable on purpose; if your client already has an entry called gavana, remove it before connecting again.
What a connection lists
A connection lists 17 generic building blocks when the client asks for its tools. Every other hosted tool is left off the list but still answers to its exact name, so a cached catalog or a continuation returned by an earlier call keeps working.
| Listed tool | Side effect |
|---|---|
guide_get | Reads Gavana’s agent guide — no scope needed |
canvas_list, canvas_get, canvas_validate | Read canvases; validation never writes |
canvas_create | Creates one task canvas — free |
canvas_apply_batch | Writes canvas state — free |
get_canvas_image | Reads an image on a canvas |
save_image_to_canvas | Imports an image, or a product page’s photos, as durable nodes — free |
generate_image_in_canvas | May incur provider cost — also edits an image with operation: "edit" |
generate_video | May incur provider cost |
get_video_job, get_image_run, list_image_runs | Read Run and Job state |
model_list | Reads the image and video models your connections can run |
element_list, element_get, element_create | Read and add reusable Elements |
Tools that carry one job’s steps — chat-first Work, workflows, Recipes, Element administration — are callable by name but not listed. Five of them can also start paid work: edit_image_in_canvas, generate_product_photoshoot_in_canvas, run_canvas_workflow, recipe_run, and work_execute. The full table, with scopes and flags for every tool: hosted MCP tools.
Permissions
The consent screen groups what the client asks for under Canvases and images, Elements and saved references, and Image and video generation. A normal connection asks for eight permissions — canvas:read, canvas:write, asset:read, element:read, element:write, image:generate, video:generate, and job:manage — and stays active until you revoke it.
Turn on Read-only access on an app’s setup steps before you copy anything, and the page gives you a separate read-only address and server name instead. That connection asks for canvas:read and element:read only: the agent can read canvases and Elements, but cannot view image assets, make changes, or generate images and videos.
Local MCP
A stdio MCP server that runs on your machine and talks to the Canvas API. It exposes the widest tool surface — node-level edits, deterministic Image Actions, Recipe forking, asset upload from local files, and Run control. See the local tools reference.
npx -y @gavana.ai/mcp@0.5.1It signs in one of two ways:
- Your CLI login. After
gavana auth login, the server reads the active CLI profile (including a token the CLI stored in macOS Keychain), so you configure no secret at all. - A Personal Access Token, in the client’s private configuration:
GAVANA_BASE_URL=https://app.gavana.ai
GAVANA_AGENT_TOKEN=<your Personal Access Token>The CLI prints a ready-made definition:
gavana mcp config localCLI
A JSON-first command-line client. Best when you want deterministic, scriptable behaviour, or when you need webhooks — which MCP deliberately does not offer, because a signing secret must never enter model-visible tool arguments.
npm install -g @gavana.ai/cli
gavana auth login --base-url https://app.gavana.aiSee Install the CLI and the CLI Reference.
What each path can spend
This is the question worth answering before you connect anything.
| Connection | Can read | Can write canvas | Can spend credits |
|---|---|---|---|
| Hosted MCP, normal | Yes | Yes | Yes |
| Hosted MCP, Read-only access | Canvases and Elements | No | No |
| Local MCP or CLI with a full login or token | Yes | Yes | Yes |
| Local MCP, CLI, or API with a narrower token | Whatever the token’s scopes allow |
Generation is billed through your Gavana account — your own saved provider key, a key your workspace owner shares, or Gavana credit — never through the AI client. Deterministic Image Actions are the useful middle ground: they write to the canvas and transform images without spending AI credits.
A sensible order
Connect the normal workspace
Follow the steps in Settings → Connect an agent, or create a Personal Access Token with its eight default permissions and Never expiry. The agent can then use the full Gavana workflow.
Inspect first, then write
Let the agent read canvases before it changes them. See Inspect a canvas read-only. To enforce that boundary, connect with Read-only access, use a narrower token, or set GAVANA_MCP_READ_ONLY=true on a local server.
One canvas per task
There is no shared Agent Canvas any more. The agent creates or selects one canvas per task — canvas_create, or gavana canvas create --title "…" — and passes that exact handle to every later read, write, import, and generation.
Approve paid work in the current request
Generation remains a separate decision: the agent must have explicit current-turn approval before it spends provider credit.
Compatibility
CRAFTBOARD_BASE_URL and CRAFTBOARD_AGENT_TOKEN still work as aliases for the GAVANA_* variables, and the craftboard and craftboard-canvas commands remain available alongside gavana.

