Documentation
DevelopersMCP

MCP troubleshooting

Diagnose and fix Bobsled AI MCP connection, authorization, result size, Draft state, and tool errors.

This page explains how to diagnose and fix MCP failures. Find the symptom that you see:

Connection and authorization problems

The following table lists common problems, their causes, and fixes:

Symptom
Cause
Fix
The OAuth flow loops.The client doesn't support the redirect, the URL isn't your Bobsled AI URL, or the browser session belongs to another identity.Confirm the client's redirect support, your Bobsled AI URL, and the existing Bobsled AI session.
The consent page shows Authorization could not be completed.The consent decision failed.Try the decision again. If it keeps failing, close the tab and restart the connection from the client.
A tool is absent.The server publishes a different contract version, the consent didn't include the scope, or the identity isn't a member of the Account.Check the contract version, the consent scopes, and your Account membership. Then call tools/list again.
The request returns 401.The OAuth session expired or was revoked. A client with offline access can refresh for up to 30 days.Reauthorize the client.
The request returns 403.The identity can't reach the Account, Project, or operation.Correct the authorization boundary instead of retrying.
The response is too large.The complete result is over 40 KiB.Request a smaller page or file range, and follow the returned offset or cursor. For more information, see Read large results.
The Draft is stale.The live version or another change moved past your checkpoint.Call project_rebase_inspect before you synchronize or commit.

Tool errors

A failed tool returns an error envelope. Read its code, retryable, howToFix, currentState, and retryWith fields together. Don't retry a write only because retryable is true. Inspect the returned state first. When the request might have succeeded, keep the same idempotency key.

The following table lists each error code and the next action:

Error code
Next action
authentication_requiredReauthorize the MCP client.
invalid_requestCorrect the request shape against the published tool schema, and then call the tool again.
invalid_scopeReconnect with dogsled:read or dogsled:write, as required.
permission_deniedSelect a Project that the authenticated identity can access.
not_foundRediscover the Account, Project, Draft, pipeline, or run reference.
revision_conflictRead the affected file or operation again, and retry with current preconditions.
stale_stateInspect the current Project, Deployment, or run state before you retry.
validation_failedFix the reported files, and run project_check again.
source_deployment_invalidApply each returned replacement with project_sync. Then run project_check, project_commit, and publish_draft again. Use project_deploy only for a separate whole-version deployment.
timeoutMonitor the returned run reference from its last timestamp or cursor.
provider_failedInspect bounded provider evidence, and retry only when the operation is safe.
authorization_unavailable or service_unavailableKeep the request ID. Retry when appropriate, and inspect canonical state before you repeat a write.

Migrate from pre-stable tool names

The pre-stable contract has no silent aliases. After the contract version changes, the server rejects the previous tool names. To update a client, use the following mapping:

Previous shape
Current workflow
run_manage with retryrun_retry_preview, then run_retry
run_manage with cancel_runrun_cancel with action: "run"
run_manage with cancel_taskrun_cancel with action: "task"
data_query connection inspectionsource_inspect
data_query row samplingsource_probe
data_query connection testconnection_test

What's next

On this page