Connect Gavana to OpenClaw
OpenClaw reaches Gavana over streamable HTTP with browser OAuth. It runs as a local gateway process rather than a browser tab, so no token is pasted into a chat and nothing depends on Gavana’s browser-origin allowlist.
Connect with full access
https://app.gavana.ai/mcp
This is the default Gavana connection. Its consent screen asks for eight permissions — every permission except reference:extract, which no MCP tool uses — and the connection stays active until you revoke it.
Add the server
OpenClaw’s configuration lives at ~/.openclaw/openclaw.json, in JSON5 — comments and trailing commas are allowed. MCP servers go under mcp.servers.
Normal connection:
{
"mcp": {
"servers": {
"gavana": {
"url": "https://app.gavana.ai/mcp",
"transport": "streamable-http",
"auth": "oauth"
}
}
}
}transport is required for a remote server — "streamable-http" for Gavana. Leave it out and OpenClaw has no way to know the entry is remote rather than a local command. The other accepted value, "sse", is the legacy transport; do not use it here.
You do not need an oauth block. That key exists only to override the scope, redirect URL, or client metadata URL, and Gavana supports dynamic client registration — so auth: "oauth" on its own is the whole authentication configuration.
If you prefer not to hand-edit the file, the same block is managed by openclaw mcp set; openclaw mcp list and openclaw mcp show read it back, and openclaw mcp unset removes an entry.
Sign in
openclaw mcp login gavanaThat runs the OAuth flow and stores the tokens in OpenClaw’s own state. Approve the scopes on Gavana’s consent screen when the browser opens.
Verify
openclaw mcp listThen ask for something read-only:
Using Gavana, list my canvases and read the most recently updated one. Report its
handle, revision, node count, and connection count. Do not change anything.openclaw doctor runs OpenClaw’s own diagnostics, including sandbox gate checks, if a server connects but tools do not behave.
Tuning the connection
Four optional fields on the server entry are worth knowing:
| Field | What it does |
|---|---|
requestTimeoutMs | Per-request timeout. Raise it if generation calls are cut short. |
connectionTimeoutMs | Connection timeout at startup. |
toolFilter | include and exclude lists, to narrow what OpenClaw sees. |
enabled | Set false to switch the server off without deleting the entry. |
toolFilter is ergonomics, not a security boundary. The connection you approved is the boundary.
Resulting permission surface
Normal connection
The consent screen groups the request under Canvases and images, Elements and saved references, and Image and video generation. It asks for eight permissions: canvas:read, canvas:write, asset:read, element:read, element:write, image:generate, video:generate, and job:manage. There is no partial approval on this path.
OpenClaw lists 17 core tools — canvas reads and writes, task canvas creation, image import and generation, video, Elements, model discovery, and Run status — and can call every other hosted tool by exact name. generate_image_in_canvas and generate_video can charge among the listed tools; edit_image_in_canvas, generate_product_photoshoot_in_canvas, run_canvas_workflow, recipe_run, and work_execute can charge when called by name. Full table: hosted MCP tools.
Cost exposure: real.
Read-only connection
In Gavana, open Settings → Connect an agent, choose Other, and turn on Read-only access before you copy the address. Use that address in place of the one above, under the server name gavana-readonly. Its consent screen asks only for canvas:read and element:read.
| Can | Cannot |
|---|---|
| List and read canvases and Elements | Create, update, move, or delete anything |
| Validate a canvas graph | View image assets, or save an image |
| Read stored Work and Recipe details | Create or run a workflow, a Recipe, or Work |
| Read Gavana’s own agent guidance | Generate an image or a video, or observe a Run |
| Spend a single credit |
It serves the tools marked read-only in the hosted tools reference. Cost exposure: none.
The local stdio server
OpenClaw can also launch Gavana’s local server as a child process, which exposes the full local tool catalog and signs in with your Gavana CLI login or a Personal Access Token rather than OAuth. Use command and args in place of url and transport:
{
"mcp": {
"servers": {
"gavana": {
"command": "npx",
"args": ["-y", "@gavana.ai/mcp@0.5.1"],
"env": {
"GAVANA_BASE_URL": "https://app.gavana.ai",
"GAVANA_AGENT_TOKEN": "PASTE_YOUR_TOKEN_HERE"
}
}
}
}
}Needs Node.js 20 or newer. With a Gavana CLI login on this machine (gavana auth login) you can leave the token out: the server reads that login. The real permission surface here is the credential’s scopes, not the tool list — a tool called outside them fails with a permission error. Add "GAVANA_MCP_READ_ONLY": "true" for a hard read-only server, or "GAVANA_MCP_TOOLSETS" to narrow the catalog; scoping the token is still the stronger control.
openclaw.json now contains a live credential. Keep it out of backups you share and out of any repository. If it leaks, revoke that token immediately and create a new one — see the safety contract.
Disconnect
Remove the entry with openclaw mcp unset, or set "enabled": false to keep it but switch it off. Then revoke the connection in Gavana under Settings → Connect an agent → Connected — revocation takes effect immediately. If you used the local stdio path with a token, revoke that token in the same list.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Server never connects | transport missing on a remote entry | Add "transport": "streamable-http" |
| Every call is unauthorized | OAuth not completed | Run openclaw mcp login gavana |
| Connection drops on long calls | Default request timeout too short | Raise requestTimeoutMs |
| Generation is refused | A read-only connection, or a grant without the generation scopes | Reconnect with the normal address and approve the eight permissions |
| Fewer tools than expected | toolFilter is narrowing the list | Check include and exclude on the entry |
| Config edit seems ignored | JSON5 parse error earlier in the file | Run openclaw doctor |
More: MCP troubleshooting.
Security notes
- The hosted server accepts OAuth bearer tokens only. Do not attempt to use a
cba_…Personal Access Token there — that is the local MCP and API path. - Webhooks are not available through MCP by design: a signing secret must never enter model-visible tool arguments or tool logs. Use the CLI or the API when you need callbacks.
- Generation is billed through your Gavana account — your own saved provider key, a key your workspace owner shares, or Gavana credit — never through OpenClaw.