clientId support for MCP OAuth

Hi team,

Codex CLI doesn’t support MCP OAuth for a remote server using a static static clientId

In our organisation we use Okta, DCR is currently not supported. As a workaround we use a static clientId.

AFAIK in Codex clientId is not supported as a config for MCPs

This makes our custom MCPs not usable in Codex

The following config works in claude:
{
“mcpServers”: {
“platform-docs”: {
“type”: “http”,
“url”: “…”,
“oauth”: {
“clientId”: “…”,
“authServerMetadataUrl”: “…”,
“callbackPort”: 8090
}
}
}
}

Please help.

Hey arslan.me, welcome to the forum!

Yes, this is a known issue and the team is working on a fix.

Also, discussions and updates related to Codex are being tracked here.

Avinash