You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP OAuth accessTokens not being refreshed with refreshToken when they expire #8863
area:agentAgent workflows, conversations, prompts, cloud mode, and AI-specific UI.area:authAuthentication, login, SSO, session management, and account security.bugSomething isn't working.ready-to-implementThe issue is ready for implementation work.triagedIssue has received an initial automated triage pass.
I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID instructions
I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log instructions
Describe the bug
MCP OAuth flow works great but after logging in the first time if you wait 1hr (or whatever TTL the accessToken has) the MCP server disconnects and requires you to login again
To reproduce
Connect an MCP server that uses OAuth that has a shortish TTL on accessTokens and supports refreshTokens
Wait until after that TTL and try to call a tool
Fails and needs to be reconnected
Expected behavior
MCP tool call should get a 401 which indicates the token needs to be refreshed and Warp then uses the stored refreshToken to get a new accessToken and then runs the tool again
Screenshots, videos, and logs
No response
Operating system (OS)
macOS
Operating system and version
26.3.1
Shell Version
zsh 5.9 (arm64-apple-darwin25.0)
Current Warp version
v0.2026.03.04.08.20.stable_02
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
No response
Does this block you from using Warp daily?
Yes, this issue prevents me from using Warp daily.
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
area:agentAgent workflows, conversations, prompts, cloud mode, and AI-specific UI.area:authAuthentication, login, SSO, session management, and account security.bugSomething isn't working.ready-to-implementThe issue is ready for implementation work.triagedIssue has received an initial automated triage pass.
Activity
peicodes commentedon Mar 24, 2026
We found a bug that should improve oauth expiry issues. I'm not 100% it fix your specific case - which MCP does this affect for you?
kdawgwilk commentedon Mar 25, 2026
Our own internal MCP server that is using OAuth 2.1 with DCR enabled and refresh token support
peicodes commentedon Mar 30, 2026
Yes, that should be addressed then. The next release is this Thursday - let me know if this issue persists for you!
13DJTEQ commentedon Mar 30, 2026
I'm also having this issue with Notion MCP. Definitely a work killer. Please fix ASAP.
fix(mcp): persist token_received_at so OAuth refresh fires before exp…
kdawgwilk commentedon May 12, 2026
This was marked closed but I don't think the fix has been released yet? When can we expect to see this fix included in a GA release?
fix(mcp): persist token_received_at so OAuth refresh fires before exp…
fix(mcp): persist token_received_at so OAuth refresh fires before exp…
fix(mcp): stop discarding token_received_at when seeding the OAuth cr…