codex_auth_status
Check whether Codex is authenticated and which auth mode is in use before starting a review.
Instructions
Report whether Codex is authenticated and which auth mode is in use.
Call this before a review if you want to fail fast with a clear message. Credentials are owned by the Codex CLI and the operating system; this never returns a token, API key, cookie, or any other secret.
Two auth modes are supported: chatgpt (browser sign-in to a ChatGPT subscription) and api
(an OpenAI API key). The response reports the active mode, the configured mode, and whether they
agree — reviews fail while they disagree.
If it reports authenticated: false, the user must run codex-mcp login in a terminal. That
flow is interactive and cannot be triggered from here.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "codex_auth_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||