Codex CLI
[mcp_servers.smartpdf]
url = "https://mcp.smartpdf.ru/mcp"
bearer_token_env_var = "SMARTPDF_API_KEY"- Or with a single command: codex mcp add smartpdf --url https://mcp.smartpdf.ru/mcp --bearer-token-env-var SMARTPDF_API_KEY
- The same file is read by the Codex IDE extension and the ChatGPT desktop app.
The ~/.codex/config.toml file is shared by Codex CLI, the Codex IDE extension and the ChatGPT desktop app. The key is taken from the SMARTPDF_API_KEY environment variable and doesn’t end up in the file.