Skip to content

MCP OAuth accessTokens not being refreshed with refreshToken when they expire #8863

Closed

Description

@kdawgwilk

Pre-submit Checks

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

  1. Connect an MCP server that uses OAuth that has a shortish TTL on accessTokens and supports refreshTokens
  2. Wait until after that TTL and try to call a tool
  3. 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.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Activity

  1. added
    bug
    on Mar 11, 2026
  2. peicodes commented on Mar 24, 2026

    @peicodes
    Contributor

    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?

  3. kdawgwilk commented on Mar 25, 2026

    @kdawgwilk
    Author

    Our own internal MCP server that is using OAuth 2.1 with DCR enabled and refresh token support

  4. peicodes commented on Mar 30, 2026

    @peicodes
    Contributor

    Yes, that should be addressed then. The next release is this Thursday - let me know if this issue persists for you!

  5. 13DJTEQ commented on Mar 30, 2026

    @13DJTEQ

    I'm also having this issue with Notion MCP. Definitely a work killer. Please fix ASAP.

  6. added
    area:agent
    area:auth
    triaged
    on Apr 14, 2026
  7. added
    ready-to-implement
    on Apr 27, 2026
  8. kdawgwilk commented on May 12, 2026

    @kdawgwilk
    Author

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentarea:authbugready-to-implementtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions