codex icon indicating copy to clipboard operation
codex copied to clipboard

Support a static callback URI for MCP authentication

Open WhammyLeaf opened this issue 10 months ago • 3 comments

What feature would you like to see?

From what I can tell the callback URI expected by codex is dynamically generated when doing MCP authentication. Specifically the port part of the localhost is randomly assigned. That is a bit of a problem because many authorizations servers require a static redirect URI. would it be possible for you to support a static callback URI. Something similar to what librechat or cline have.

Additional information

Proposed solution is here: https://github.com/openai/codex/pull/8971 No response

WhammyLeaf avatar Jan 07 '26 14:01 WhammyLeaf

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #3531

Powered by Codex Action

github-actions[bot] avatar Jan 07 '26 14:01 github-actions[bot]

The main issue is the port part. I think a good solution would be allowing users to define the port to be used via an env or via the config.toml file. That way the callback uri will become static.

WhammyLeaf avatar Jan 07 '26 15:01 WhammyLeaf

This was recently added. It will be included in the next release.

etraut-openai avatar Feb 23 '26 22:02 etraut-openai