Skip to main content
HTTP status: 400

Error message

When this error occurs

The authorization flow exists and belongs to you, but no authorization code has been parked on it yet. The external authorization server redirects the user’s browser to GET /mcp-connections/callback with the code, and that request is what stores it. Completing before the callback has arrived — because the consent screen is still open, or the user closed it without approving — has nothing to exchange.

How to fix

Finish the consent step at the external authorization server, then complete again. If the consent screen was dismissed, call POST /mcp-connections for a fresh authorize URL and start over; authorization flows are short-lived, so a stale one expires rather than waiting indefinitely.