Forum Discussion
wwilcz
Apr 27, 2026Copper Contributor
New AI Foundry not sending refresh tokens to MCP (401 after access token expiration)
Hello, When connecting an MCP server hosted as an Azure Function using OAuth Passthrough in New AI Foundry Playground, the connection is established successfully, the Microsoft login popup appea...
SThornellTLX
Jul 20, 2026Copper Contributor
I have the exact same setup and I'm experiencing the same issues. My agents lose their entire MCP toolset which come from external custom MCPs between 60–90 min after the initial consent you have to do on the first prompt, so the token lifetime is passing and we can't get a refresh.
Did anyone get an update or response from Microsoft in other posts or tickets?