Docs menu

Get started

Troubleshooting

When an error offers Troubleshoot, follow that link for the cause and recovery steps. They change server settings, so share them with your CoreBot administrator.

MCP OAuth redirect mismatch

Code: MCP_OAUTH_REDIRECT_MISMATCH

Message: “The sign-in address does not match this server’s configuration.” Older versions show “MCP OAuth redirect URI is not allowed”.

The app uses the address in your browser to build its sign-in callback. The API only allows the callback configured through WEB_ORIGIN. This error means those URLs differ; it happens before the external service’s sign-in flow starts.

  1. Copy the origin from the browser address: scheme, hostname, and port, without a path. For example, https://app.example.com or http://127.0.0.1:5173.
  2. Check the API’s effective WEB_ORIGIN. If it is the intended public address, open CoreBot at that address instead. localhost and 127.0.0.1 differ for this check, as do HTTP and HTTPS or different ports.
  3. If the configuration is wrong, set WEB_ORIGIN to the address people actually use. For a public deployment, use its HTTPS origin and align BETTER_AUTH_URL and API_URL with it. For local source development, API_URL can still name the separate API listener.
  4. Restart the API with the updated environment. With Docker Compose, recreate the API service using the same Compose files and environment file as your installation; restarting an existing container alone does not update its environment.
  5. Open the chosen address and reconnect the integration. Sign-in should now proceed past this error.

If you registered an OAuth client yourself, its allowed redirect URI must also match <WEB_ORIGIN>/mcp/oauth/callback. That is a separate check by the external service.