config.toml.
Prerequisites
- MCP access for your organisation and the owner role.
- An MCP key from Settings → Organization → AI client access (MCP) → Create key.
-
Codex CLI installed and signed in. Check:
Set up
1
Set the AILUNAPRO_MCP_KEY variable
- Windows (PowerShell)
- macOS / Linux
For every new terminal (recommended):Then open a new PowerShell window before the next step.
2
Add the server
~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml). You can also add it by hand:~/.codex/config.toml
bearer_token_env_var holds the name of the variable, not the key itself.3
Check the connection
ailunapro appears in the list. Then start Codex with codex and type /mcp. Expected:

4
Ask a question
Start with a test that needs no audit:The client runs
docs_search_product and quotes AiLunaPro’s product help about reports. If you see that answer, the connection works.Then ask about your own audit:“No matching audit was found for your account” means your organisation has no completed Audit Express yet. Complete one in AiLunaPro, then ask again.
The Codex CLI, the Codex IDE extension and the ChatGPT desktop app share
config.toml. Once AiLunaPro is configured in one, it is available in the others.Troubleshooting
/mcp shows ailunapro with an error or no tools
/mcp shows ailunapro with an error or no tools
The variable is not set in the environment Codex started from. Open a new terminal, check it, and start Codex again:
Codex asks me to run codex mcp login
Codex asks me to run codex mcp login
AiLunaPro does not use OAuth. Check that
bearer_token_env_var is set for ailunapro in config.toml and that the variable contains your key.