Skip to content

Why did my MCP connection or tool call fail?

What you see What to check
Browser sign-in never starts Use the API’s remote HTTP /mcp URL. Hosted clients must reach it from their own service. A GET in a browser is not a tool call.
Unauthorized request A first unauthenticated POST returns a bearer challenge pointing to resource metadata. Let the client discover the issuer, then check account approval, AI Connections and revocation.
Registration rejected Use public-client dynamic registration with token authentication method none. Every supplied redirect must be accepted. Loopback port changes are supported for the same literal host and suffix.
Callback or issuer mismatch Use the same API origin throughout discovery, authorization and exchange. The authorization response includes iss. Check the client build and its actual redirect shape.
Invalid scope Request supported read scopes. GoodBrief issues refresh tokens through its supported flow. offline_access is not in the scope list.
A tool is absent or denied Inspect this connection’s grants. Reconnect or refresh discovery after a grant change. Some calls require two grants.
HTTP succeeded but the action failed Inspect the JSON-RPC result for isError and any bounded diagnostic. A successful transport response alone does not confirm a write or paid job.
A broad search times out Narrow the collection, query or time range. Report incomplete results when a page fails.
Generation response lost Read status before retrying. Recover a recap or replay an identical delivery.

Source files api/src/routes/mcp.ts, api/src/lib/mcpAuth.ts, api/src/lib/mcpTools.ts.