MCP Server Tools Hidden After Removing Refresh Token Support

Problem

My custom MCP server with OAuth 2.1 (PKCE) was working perfectly with ChatGPT. After I removed refresh token support, the connection completes but all tools are immediately hidden and the connection is lost suddenly and I see the error All tools are hidden. Make at least one tool public to use it in ChatGPT.

Question

Is refresh_token mandatory for ChatGPT MCP integration?

It seems ChatGPT hides tools when no refresh token is provided, even though the access token is still valid. Can anyone confirm this requirement?

1 Like

Is there any resolution to this. The MCP tool gets connected after going thru the oAuth flow and then it says ‘All tools are hidden. Make at least one tool public to use it in ChatGPT.’
Same mcp server in claude and copilot works fine and is able to make call to /mcp endpoint to get a list of tools

Welcome to the developer community, @Kushal_Bhola.

It seems that issuing refresh tokens is a requirement for OAuth on MCP with ChatGPT:

If using OAuth for authentication

When configuring an app, confirm if your OAuth/OpenID Connect provider is configured to issue refresh tokens, as additional configurations are required in order to maintain connectivity.

The doc says that the app will loose access once the token is expired, however in my case even before the token expiry (right after the connection) I see the issue of All tools are hidden. Make at least one tool public to use it in ChatGPT. if refresh tokens are not granted

Not yet. Are you also facing this due to lack of refresh_token during the token grant?

@Tarun_Agarwal no facing the same thing. I get the same error with access token right after the Auth flow, even before its time to go thru refresh token flow.

Is there any update on this ? Getting the error “All tools are hidden. Make at least one tool public to use it in ChatGPT.” after successful oAuth connection.