Skip to Content
MCPTroubleshooting

Troubleshooting

Find your symptom. Each entry says what the cause actually is and what to do about it.

If a paid tool timed out, failed, or gave an ambiguous answer, do not call it again. generate_image_in_canvas, edit_image_in_canvas, generate_product_photoshoot_in_canvas, generate_video, run_canvas_workflow, recipe_run, and work_execute each start real provider work. Jump to Paid work looks stuck before doing anything else.

Start here: three checks that isolate the problem

Run them in order. Each one rules out a layer.

Is the transport up?

Ask the agent to call guide_get with no arguments.

That tool requires no scope at all. If it returns the guide index, transport and authentication are fine and your problem is permissions or usage. If it fails, nothing else will work: the problem is connection or auth.

Is the connection delegating the right account?

Call canvas_list.

If it returns canvases, the connection works and is attached to the account you expect. An empty list on an account that definitely has canvases means a different Gavana account approved the connection.

How many tools does the client show?

Check your client’s MCP panel.

CountMeans
17Hosted endpoint, no profile. The other 28 hosted tools are callable by name but not listed.
45Hosted endpoint with ?profile=advanced
7, all readsA read-only connection with no profile (up to 14 read-only tools with a profile)
60Local stdio server (65 with GAVANA_ENABLE_LEGACY_CAMPAIGN_TOOLS=true)
Fewer than expectedThe URL carries toolsets, excludeTools, or a profile; or locally, GAVANA_MCP_TOOLSETS, GAVANA_MCP_TOOLS, GAVANA_MCP_EXCLUDE_TOOLS, GAVANA_MCP_PROFILE, or GAVANA_MCP_READ_ONLY is set
0, or the server shows as failedConnection problem — see below

Listing does not check permissions: a listed tool whose permissions the connection does not hold is still shown, and calling it is refused with insufficient_scope.


Connection problems

The server will not connect at all

CheckDetail
The URLhttps://app.gavana.ai/mcp. No trailing slash. Copy it from Settings → Connect an agent if in doubt.
The transportStreamable HTTP. If your client asks for a type, it is HTTP or “remote”, never stdio.
Whether a browser openedThe hosted endpoint authenticates through browser OAuth. If no browser opened, the client did not start the flow — check for a blocked pop-up.
Workspace policySome ChatGPT and Claude workspaces require an administrator to allow custom connectors first.

400 before any tool runs: invalid_profile, invalid_toolset, or invalid_exclude_tool

The server URL carries a query parameter Gavana does not recognize: a profile other than creative or advanced, more than one profile, an unknown toolset name, an unknown tool in excludeTools, or one of them present but empty. The whole connection is refused rather than silently ignoring the typo. Fix the URL and reconnect.

405 method_not_allowed on a GET

Expected, not a fault. The hosted endpoint is stateless JSON-RPC over POST. A GET returns 405 with an Allow: POST, OPTIONS header. If your client only ever gets 405, it is probing rather than speaking MCP — confirm it is registered as a streamable-HTTP MCP server rather than a plain web hook.

403 access_denied mentioning Origin

Your browser-based client is sending an Origin header Gavana does not accept. The hosted endpoint allows https://chatgpt.com, https://claude.ai, and the Gavana origin itself, plus anything the deployment explicitly permits.

Non-browser clients send no Origin header and are unaffected, so if you see this from a terminal client, something in between is adding the header.

429 rate_limited

Too many requests or tool calls on this connection. The response says how many seconds to wait, and a request-level refusal also carries a Retry-After header. A refused call started nothing, so waiting and calling again is safe — for a paid tool, only with the same idempotency key.

The local stdio server will not start

SymptomCauseFix
npx cannot resolve @gavana.ai/mcpThe package is public (current version 0.5.1), so this usually means npm goes through a private registry that does not mirror itPoint npm at the public registry for this scope, or use the hosted endpoint.
Node version errorNode.js 20 or newer is requiredUpgrade Node.
Starts, then every call fails authNo credential reached the processSet GAVANA_BASE_URL and GAVANA_AGENT_TOKEN, or run gavana auth login to write ~/.config/gavana/agent.json.
Unknown Gavana MCP profile or Unknown Gavana MCP toolsetGAVANA_MCP_PROFILE or GAVANA_MCP_TOOLSETS names something that does not existProfiles are creative and advanced; toolsets are listed in the local tools reference.
Wrong package nameIt is @gavana.ai/mcp, with the .aiA name without .ai does not resolve.

Missing or unexpected tools

A tool the docs mention is not in my client’s list

You seeCauseDo
17 tools, and work_prepare or open_canvas is absentUnlisted by default, still callable by exact nameCall it by name, prefer the listed replacement (see Listed versus callable), or connect with ?profile=advanced to list everything.
node_create, action_run, or asset_upload absentThey exist only on the local stdio serverUse the local server.
toolset_not_enabled when calling a toolThe connection URL withheld it, or the request is a merged one whose original tool was withheldUse a connection whose URL includes it. Reconnecting the same URL does not help.
Fewer tools than expected locallyGAVANA_MCP_TOOLSETS, GAVANA_MCP_TOOLS, GAVANA_MCP_EXCLUDE_TOOLS, GAVANA_MCP_PROFILE, or GAVANA_MCP_READ_ONLY is setCheck the server’s environment.

model_list with a video capability returns insufficient_scope

A video capability is the same request as find_video_models and is authorized as that tool, so it needs video:generate rather than image:generate. A connection that holds video:generate but not image:generate keeps find_video_models listed for exactly this reason.

The tool list changed after I edited the URL

Some clients keep the original OAuth grant when you edit a server’s URL in place. Remove the server and add it again rather than editing:

claude mcp remove gavana && claude mcp add --transport http gavana https://app.gavana.ai/mcp

Authentication and scope errors

401 invalid_token

The token is missing, malformed, expired, or revoked.

  • Hosted: reconnect the client and complete OAuth again. A revoked connection (Settings → Connect an agent → Connected) stops working immediately.
  • Local: Agent Access tokens default to Never expiry. If this one was created with a custom 1–90 day expiry, create a replacement and update the client’s environment.
  • Check you are not passing a token in a URL or a custom header. Gavana accepts bearer tokens in the Authorization header only.

403 insufficient_scope

The connection is valid but lacks a permission the tool needs. The error message names the missing permissions, and the result carries an OAuth challenge repeating them.

The scope check happens before the tool runs, so nothing partial occurred and no paid work started.

ToolMissing permission, usually
save_image_to_canvas (single image)image:generate — it governs writing image bytes into Gavana, not just generating them. canvas:write alone is not enough.
generate_image_in_canvas with elementselement:read
generate_videocanvas:write, video:generate, or job:manage
get_image_run, list_image_runs, get_video_job, run_snapshotjob:manage — without it you can start work but cannot observe it
model_list with a video capabilityvideo:generate
run_snapshot with a work: handlecanvas:read, in addition to job:manage

A read-only connection holds only canvas:read and element:read, so every tool that writes, generates, or observes runs is refused there.

Token creation rejects my permission selection

Dependencies are enforced at creation, not silently added:

  • canvas:write requires canvas:read
  • element:write requires element:read
  • image:generate requires canvas:read, canvas:write, and asset:read
  • video:generate requires canvas:read and asset:read
  • reference:extract requires element:read, element:write, and asset:read

The error names exactly which are missing; the token form selects them for you. See Create an Agent Access Token.

It works, but touches the wrong account

A different Gavana account approved the connection. Revoke it in Settings → Connect an agent → Connected, then reconnect, watching which account the approval page names under Connecting as. A local token is bound to the account that created it — create one from the right account.


Canvas errors

“Agent Canvas is retired”

A call passed "agent-canvas" as its destination, or a script still relies on a shared default canvas. There is no shared canvas any more: create a task canvas with canvas_create (or gavana canvas create --title "Task name"), keep its handle, and pass that exact handle as the destination. Existing Agent Canvas links still open for reading.

409 on canvas_apply_batch or a canvas_validate dry-run

The canvas changed after you read the revision you passed. Someone else’s work is now in the graph.

Re-read

canvas_get for the current revision and graph.

Look at what changed

If they added a Section where yours was going, your coordinates now collide. If they deleted the node you meant to delete, that operation will fail.

Rebase, preserving their change

Move your nodes. Never move theirs.

Decide on the key

Byte-identical payload after rebasing? Reuse the key. Anything changed? New key.

Do not resolve a 409 by omitting baseRevision. That removes conflict detection, not the conflict — the write then lands on top of whatever is there.

Two 409s in a row means someone is actively working in that canvas. Say so and stop rather than racing them.

422 “The batch was not applied”

Your operations would create error-severity findings: new nodes overlapping each other or existing nodes, or a node whose frame escapes its Section. The batch was refused without writing, and details.blockingFindings lists the offending findings.

Fix the listed operations, confirm with canvas_validate using the same operations, then apply again. force: true applies anyway, and is only for when the person has seen those findings and explicitly accepts them. Findings that were already on the canvas before your batch never block it.

404 on a canvas or node

The handle is wrong. Get canvas handles from canvas_list and node handles from canvas_get. Do not reconstruct a handle from parts, and do not truncate one.

The batch was rejected and nothing happened

Correct behaviour. canvas_apply_batch is atomic — one invalid operation means no partial graph. The error names the failing operation.

Fix that operation. Do not resend the batch minus the failure unless dropping it is genuinely your intent.

malformed_section or section_content_overflow in the validation output

A Section is a text node with metadata.isSection: true, at least 200 × 160, and every node inside it must sit fully within its frame. Resize the Section or move your node inside it.

Rejected for writing metadata.content

Media is server-owned. You cannot write image or video bytes, storage keys, or media URLs into node metadata. Use save_image_to_canvas or a generation tool.

canvas_validate says summary.truncated

Findings hit the 50-per-code cap, or overlap analysis gave up. Overlap detection buckets nodes into a 2,048-unit grid, refuses any node spanning more than 64 cells, and stops after 100,000 comparisons.

Fix the findings you can see and run it again — the next pass surfaces what was cut. Meanwhile, say your report is incomplete.

summary.passed is true but the work is not done

passed only means zero errors. Read completionReview.doneClaimAllowed: it is false while a blocking finding remains or any generated output in scope is pending, failed, missing, or without a stored result. Pass nodeIds (and expectedOutputNodeIds) to scope the review to this task, so other sessions’ work on a shared board does not hold it.

canvas_get returns only part of the canvas

You asked for detail: "summary" or nodeIds, so readContext.graphComplete is false. That is a page, not the whole graph: read the nodes you need with detail: "full", and let canvas_validate judge spatial changes against the server’s complete copy.


This is the section where the wrong move costs money.

An image tool returned while still queued

This is normal and it is not a failure. generate_image_in_canvas returns queued progress immediately by default, with a run: handle, the target node IDs, and a nextAction.

Do not call the paid tool again. The original run is still going. A second call with a new key starts a second paid run.

Follow nextAction instead. To check on work:

Started withCheck withHandle shape
generate_image_in_canvas, edit_image_in_canvasget_image_runrun:
run_canvas_workflow, recipe_runget_canvas_workflow_runrun:
generate_videoget_video_jobjob: followed by a UUID
work_executework_get, or work_refresh (owner only)work:
Any of them, without side effectsrun_snapshotany of the above

Checking is free. The get_* tools reconcile and may write status; run_snapshot and work_get only read, so they can lag the provider.

Image runs and video jobs are checked by different tools; never use one kind’s status tool for the other. If a result says continuation: { "available": false }, this connection cannot call the status tool at all: keep the handle and check from a connection that can.

I lost the run handle

Call list_image_runs (status: "active" by default, or "all"). It lists this account’s image and Action runs newest first, with status and canvas, including the ones holding the concurrent-job limit. Find the existing run before you consider starting another.

A call with items stopped part way

Read the result’s uncertain and notAttempted lists.

  • An uncertain item’s submission failed in a way that does not prove no job was accepted. It may already be running and charged. Repeat the exact same call with the same idempotency key to observe it; never resubmit it under a new key.
  • notAttempted items were not submitted by this call.
  • A waitError means checking failed after submission. Read the returned runs; do not regenerate.

A paid run failed terminally

Report it and stop. Ask before any new attempt.

Do not automatically retry a terminal failure, a timeout, a disconnect, or an ambiguous provider response with a new key. The idempotency key protects against a duplicate request; it does not make a second deliberate attempt free.

400 “not an image generation”, “not a video generation”, or “not a reusable workflow run”

You passed the wrong kind of handle to a status tool. get_image_run takes an image run:; get_video_job takes the job: from generate_video; get_canvas_workflow_run takes the run: from a workflow or Recipe run. A handle starting import: names an imported picture, which has no run.

A run succeeded but I cannot find the image

A run reporting success is not the same as delivery. Check doneClaimAllowed on the result and run canvas_validate with the task’s node IDs:

{ "name": "canvas_validate", "arguments": { "canvasId": "canvas:abc123:product-shots", "nodeIds": ["node:out5y6"] } }

If unavailableOutputs is present, the run finished earlier and its image was not in this result: read the run with get_image_run.

I cannot find the finished video on the canvas

That is expected. A finished video is a protected Gavana link in the job’s result; it is not added to the canvas. Give the person that link.

The agent started generating without being asked

The server’s instructions tell the model that only a request in this conversation authorizes spending, but instructions are not enforcement. A full-access connection holds the permissions that can run paid tools.

If this happened, treat it as a contract break: tell the agent to stop, and require explicit approval before any further paid call. To make it impossible, use a read-only connection, add ?excludeTools= for the paid tools, or for unattended local work set GAVANA_MCP_READ_ONLY=true or issue a token without generation permissions.


Image errors

SymptomCauseFix
400 “not an image” from get_canvas_imageThe node is text, sticky, or videoRead the canvas and pick an image node.
409 “does not have a stored result”Empty placeholder — generation unfinished or never startedCheck the run. Do not start a new generation to work around it.
413Source over 50 MB, or the re-encoded preview still over 5 MBUse the full-resolution link instead of the inline preview.
415Stored bytes are not PNG, JPEG, WebP, or GIFReport it; there is no client-side fix.
image_preview_not_inlined noticeGavana could not bring the picture into the chatThe image is fine. Open its preview link; do not retry the generation.
save_image_to_canvas validation error “Name exactly one source”No source, or more than oneSend exactly one of image, imageUrl, assetId, productPageUrl.
review_required from a product-page importGavana could not prove the product or variant, so it wrote nothingPass the variantSelector or the exact imageUrls it asks for. Do not generate that product until an import succeeds.
generate_image_in_canvas refuses the promptIt describes several images, or contains a URLUse count or items for several outputs; save URLs with save_image_to_canvas and pass the node handle.

Getting help

When you report a problem, include:

  • The X-Request-ID from the failing response, or the requestId in a tool error. It identifies the exact request in Gavana’s logs.
  • The tool name and the error code or HTTP status.
  • Which server you are on — hosted /mcp, or local stdio — and any profile or filter in the URL.
  • The canvas handle, if the problem is canvas-specific.

Send the request ID and nothing else that is sensitive. Never include an Agent Access token, an OAuth token, a screenshot showing one, or canvas content you would not publish. The request ID is enough to find the failure.

Last updated on