Repository navigation
MCP client OAuth sessions expire after a hardcoded 30 days with no refresh token #26754
Replies: 2 comments
|
I would like to contribute the linked-environment use case here, subject to agreement on direction and scope under CONTRIBUTING. For several personal Linux/Windows machines connected over Tailscale, the desired behaviour is one owner-approved, revocable link that remains usable without monthly pairing, while its credentials still expire and renew. The currently approved access ceiling should stay unchanged. There is a thread-continuity requirement as well as a token-lifetime requirement. At main I found the related unattended-client request #19460, bulk-link/renew proposal #26575, Tailscale sign-in PR #26757, and experimental mesh PR #24863. @t3dotgg, is mesh intended to be the long-term route for this trusted-machine case, or would you accept a focused MCP refresh contribution here? If refresh belongs here, is preserving the existing session/link identity across credential rotation the intended boundary? After direction and scope are agreed, I can provide a two-environment proof covering renewal after 30 days and restarts, continued control of the original delegated thread, denial of unrelated-thread writes, and revocation preventing both further calls and renewal. Interrupted/concurrent renewal and credential replay would be included. No implementation or approval is being claimed yet. |
|
Closing as a duplicate of #26748, which tracks the same request. Please follow along there. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
The MCP clients that sign in to a T3 server through OAuth (outside agents, for example Claude Code or Codex on another host) lose access after 30 days. Each client must then sign in again by hand.
MCP_CLIENT_SESSION_TTLinEnvironmentAuth.tsis hardcoded todays(30).authorization_codegrant and issues no refresh token.I checked this on 0.1.1-nightly.20261018.3315 and on 0.1.4-nightly.20261027.3796.
Request
One of these:
refresh_tokengrant), so that clients renew without a person signing in again. This is the preferred option.Why
When a headless fleet host loses its MCP session, a person must do the pairing and consent flow on that host again. This repeats every 30 days for each host.
All reactions