Troubleshooting

Symptoms, causes, and fixes for Oz Factory.

The first move, always
Ask Claude to call system_status with action: "auth". It reports which token it is holding, which account that maps to, the granted scopes, when the session actually expires, and whether every OAuth discovery endpoint is healthy.

No Oz tools appear in Claude

Symptom: the connector is present but the tool list is empty or missing.

  1. Confirm the OAuth flow finished. Closing the popup early leaves the connector registered but unauthorized.
  2. Start a fresh conversation. Tool lists are attached when a conversation begins, so an existing chat may not pick up a newly connected server.
  3. Remove the connector and add it again, at Settings → Connectors. This forces re-registration and a new grant.
  4. Check the endpoint is exactly https://opzero.sh/mcp: no trailing slash, no /api prefix.

Authorization fails or expires

Symptom: constant reauthorization prompts, or calls failing with an auth error. Access tokens live one hour and refresh silently.

  • Run system_status with action: "auth" and read the reported expiry. It is the real expiry from the token record.
  • Confirm you are signed in to the Oz account you expect. The diagnostic reports the identity behind the token. Connecting while signed in to a second account is a common mistake.
  • Recently signed up: verify your email. Accounts are checked at signup and an unverified one cannot deploy.
  • Revoking a grant from the dashboard invalidates that client immediately. Reconnect to get a new one.

A deploy fails

  • Run deployment_inspect with action: "status" on the deployment. The status detail usually names the cause.
  • File paths must be relative, with no leading slash. index.html, not /index.html.
  • AI and storage bindings require the default Cloudflare target. They are not available on Netlify or Vercel, and a deploy asking for both will be rejected.
  • At a plan cap, creating a new project fails while redeploying an existing one still works. system_status shows where you stand, and project_inspect with action: "cleanup" finds things worth removing.

A gateway’s tools disappear or go stale

Cause: nearly always the exposure mode, not a broken backend. Claude.ai caches the tool list a gateway advertised when you connected it. An inline gateway changes that list every time its backends change, so the cache and the server drift apart.

Fix: switch the gateway to search mode, whose meta-tool surface never changes shape.

  1. Run gateway with action: "update" and exposure_mode: "search".
  2. Reconnect the gateway in Claude so it picks up the new surface.
  3. Changes go live within the gateway’s config cache TTL, about thirty seconds.

Individual tools missing rather than the whole list: check per-backend health with gateway_inspect (action: "get").

An assistant has no working chat URL

Cause: assistants have no host of their own. They are served from one of your deployed apps’ subdomains, so assistant with action: "create" succeeds with zero apps deployed but hands back a placeholder rather than a reachable URL.

  • Fix: deploy any app. deploy with format: "html" is enough. The endpoint materializes at /__oz/assistant/<slug>/chat on that subdomain.
  • Before then: assistant_chat invokes the assistant server-side and needs no host at all.

A connection will not attach to a backend

Cause: attaching an external connection requires your MCP identity to be linked to your Oz account. Without the link, the platform can only match your token to your account by an email that was never verified against the grant, which is not a strong enough claim to release a third-party credential.

  • Fix: run identity_link, open the returned URL in a browser signed in to opzero.sh, and confirm.
  • identity_link is safe to call at any time. With nothing to do, it reports the links you already have.
  • A connection showing needs_reauth in connection_inspect has a stored grant that stopped working. Delete it and create it again.

Still stuck

  • Ask Claude to call ask_opzero_assistant with your question. It answers over your account’s actual recent activity.
  • The concepts page explains the underlying behavior.