-
Couldn't load subscription status.
- Fork 2.7k
Open
Description
python-sdk/src/mcp/client/auth.py
Line 432 in 40acbc5
| if response.status_code != 200: |
MCP servers such as https://supabase.com/docs/guides/getting-started/mcp will return 201 on successful token exchange. The current logic breaks the flow even after the exchange has been successful on the resource side - something as simple as the following fixes throwing an unnecessary error here.
...
if response.status_code != 200 and response.status_code != 201:
raise OAuthTokenError(f"Token exchange failed: {response.status_code}")
....
Metadata
Metadata
Assignees
Labels
No labels