~/.codex/config.toml), so there’s no “add a custom connector” step for an admin to complete here.
Instead, control over custom connectors sits in one of the following places, depending on how your organisation runs Codex:
- Using Codex through a ChatGPT Business, Enterprise, or Edu workspace: your workspace admin controls custom connectors centrally. See How to Add Pleo MCP as a Custom Connector in ChatGPT.
-
Using Codex CLI directly on developer machines: administrators can restrict which MCP servers Codex enables with an
mcp_serversapproved list in managedrequirements.toml. If you use one, add the Pleo MCP to it. Codex enables a server only when both its name and its URL match an entry, so use the name developers configure (pleo-mcpin How to Install the Pleo MCP in Codex):Codex’s connection to the Pleo MCP is made by Codex itself, so if your organisation also restricts outbound connections at the firewall or proxy, allowmcp.pleo.iothere.
Allow Network Access for Receipts
The agent reaches two Pleo domains directly from the commands it runs:- Uploading a receipt: Pleo issues a short-lived upload URL on
mcp.pleo.ioand the agent uploads the file to it with an HTTPPUT. - Reading a PDF receipt: Pleo returns a short-lived link on
receipts.cdn.pleo.ioand the agent downloads the file from it with an HTTPGET. Image receipts come back inside the tool result and don’t need this domain.
on-request approval policy, Codex asks for approval before running a command that needs network access. To allow network access without the prompt, add this to ~/.codex/config.toml:
[experimental_network] in requirements.toml, which is also experimental. If you use one, add both Pleo domains to it:
managed_allowed_domains_only = true, a developer’s own domain rule is ignored, so the managed entries are required. A managed allowlist doesn’t grant network access by itself: developers still need network_access = true.
See OpenAI’s documentation: Agent approvals & security, Sandbox, and Managed configuration
What Comes Next?
Related Reading
- OpenAI’s documentation: Model Context Protocol – Codex
- OpenAI’s documentation: Agent approvals & security
- FAQs
- Access & Permissions