Skip to Content
AgentsConnection overview

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.

TabWhat it is for
Connect an appSet 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.
DeveloperThe 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 example https://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 MCPLocal MCPCLI
Endpoint or commandhttps://app.gavana.ai/mcpnpx -y @gavana.ai/mcp@0.5.1gavana
AuthenticationBrowser OAuthYour CLI login, or a Personal Access TokenBrowser OAuth or a token
ToolsLists 17 core tools; every hosted tool stays callable by nameThe full local catalogEvery command group in the CLI Reference
Runs onGavana’s serversYour machineYour machine
WebhooksNot available by designNot available by designAvailable
Best forChat clients and coding agents — ChatGPT, Claude, Cursor, Codex, any OAuth-capable MCP clientAgents that need the widest tool surface or work with local filesScripting, 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/mcp

The 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 toolSide effect
guide_getReads Gavana’s agent guide — no scope needed
canvas_list, canvas_get, canvas_validateRead canvases; validation never writes
canvas_createCreates one task canvas — free
canvas_apply_batchWrites canvas state — free
get_canvas_imageReads an image on a canvas
save_image_to_canvasImports an image, or a product page’s photos, as durable nodes — free
generate_image_in_canvasMay incur provider cost — also edits an image with operation: "edit"
generate_videoMay incur provider cost
get_video_job, get_image_run, list_image_runsRead Run and Job state
model_listReads the image and video models your connections can run
element_list, element_get, element_createRead 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.1

It 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 local

CLI

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.ai

See Install the CLI and the CLI Reference.

What each path can spend

This is the question worth answering before you connect anything.

ConnectionCan readCan write canvasCan spend credits
Hosted MCP, normalYesYesYes
Hosted MCP, Read-only accessCanvases and ElementsNoNo
Local MCP or CLI with a full login or tokenYesYesYes
Local MCP, CLI, or API with a narrower tokenWhatever 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.

Last updated on