I keep getting logged out of my MCP servers over and over
Resolved 💬 9 comments Opened Nov 3, 2025 by enriquemorenotent Closed Nov 5, 2025
💡 Likely answer: A maintainer (enriquemorenotent, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.53
What subscription do you have?
Pro
Which model were you using?
gpt-5-codex
What platform is your computer?
Ubuntu
What issue are you seeing?
Every now and then, when I restart codex, or when I use the command /new, I keep getting logged out of my MCP servers, over and over again. It has happened for days and it is driving me crazy.
<img width="1310" height="647" alt="Image" src="https://github.com/user-attachments/assets/21d19463-daa1-477b-9a70-57e712363042" />
What steps can reproduce the bug?
I really do not know how to reproduce it. It happens about 2-3 times a day, particularly if it has been a while since the last time the session started.
What is the expected behavior?
_No response_
Additional information
_No response_
9 Comments
I just upgraded to 0.54
The problem persists
@enriquemorenotent Can you try with the 0.56 alpha? This change wasn't in 0.5.4
https://github.com/openai/codex/releases
@gpeal Sure, what is the npm command?
There isn't one, download the binary and run it directly.
Testing it now
@gpeal Error persists too with this version (yes, I relogged in the MCP server, after installing v0.56)
<img width="1257" height="757" alt="Image" src="https://github.com/user-attachments/assets/2d063bc3-ae16-440a-9dd3-0930137acb40" />
Can you log in one more time and then let me know only if it happens again after that?
Ok, I have logged out and in again. I will report if it happens again
<img width="2544" height="606" alt="Image" src="https://github.com/user-attachments/assets/2f604f66-b62b-4eff-b352-9d934ecd12c0" />
Yeah, no. I even lost yet another session.
<img width="830" height="438" alt="Image" src="https://github.com/user-attachments/assets/b0813daf-dfae-4a64-8c26-79106cda9fc2" />