Hello,
I’m trying to connect a ChatGPT app to an MCP server, and I’ve been getting the same kind of error for some time now. I already tested the MCP server with both MCP Inspector and MCP Jam. Both clients work with my MCP server. They perform the OAuth authentication correctly, and list/call the MCP tools.
In ChatGPT, when I add the app, it also performs the OAuth flow. However, it never finishes setting up the app, and shows me an error saying that there’s something wrong with the connection.
When I inspect the network calls in the browser, I see the following request failing:
POST https://chatgpt.com/backend-api/aip/connectors/links/oauth/callback 424 (Failed Dependency)
{
"detail": {
"error_code": "MCP_ACTION_DISCOVERY_FAILED",
"message": "Authentication succeeded, action discovery failed",
"connector_id": "asdk_app_6a4d1850e8d081918351efc789fbb8de",
"link_id": "link_6a4d186e3bf081919e1180c9eab7d663",
"cause": {
"status_code": 401,
"detail": "Reauthentication required"
}
}
}
On the server side, when the access token issued to the user is also logged for debugging purposes. I already inspect its claims, and both iss and aud claim match up with the advertised oauth protected resource.
In the MCP logs, we don’t see any request from the ChatGPT app attempting to list the tools with the access token that was issued, as if it didn’t like the access token. This is strange, because the other MCP clients worked without any issues.
Do you have any clue as to why is this happening, or how can I get more detailed logs for this?