Xcode 26.3 MCP server repeatedly requesting access

Hello! I'm using the new Xcode 26.3 RC and it's new MCP server:

However, I am repeatedly prompted to give access to Codex (both the new macOS app and the CLI).

And I'm seeing duplicates in the Xcode dropdown:

It's pretty blocking in my workflow as I have to keep Allowing over and over again.

The Codex app seems to drop the connection if you click on anything (away, other parts of the app). The Codex CLI should hold onto a single connection for the entire session. I recommend giving the CLI another go.

Although I do think Xcode could be a lot better here.

It's not specific to Codex. I'm having the same issue in Xcode 26.6 using an external CLI agent (Pi Coding Agent). It's as if Xcode grants permission to the client for a limited amount of time (or interactions), then it presents the confirmation dialog again. I'd be curious to know whether Xcode 27 (beta) still does the same.

Thanks @mattgallagher for pointing out that the “CLI should hold onto a single connection for the entire session”. In fact, I've found that it's the agent's responsibility, and not Xcode's, to keep the connection alive. After updating my agent's configuration, the issue is gone.

Xcode 26.3 MCP server repeatedly requesting access
 
 
Q