Token Refresh
Claude Code OAuth tokens expire periodically. y0mcp includes automatic refresh.
How it works
Section titled “How it works”- A scheduled job runs every 2 hours
- Checks token expiry in
~/.claude/.credentials.json - Refreshes if expiring within 30 minutes
- File locking prevents race conditions
Installed automatically by scripts/install.sh. For manual setup:
bash scripts/setup-token-refresh.shManual refresh
Section titled “Manual refresh”bash scripts/token-refresh.shMonitoring
Section titled “Monitoring”cat ~/.y0mcp/token-refresh.logTroubleshooting
Section titled “Troubleshooting”If auto-refresh fails, re-login manually:
claude /login