// CODEX CLI · MCP SETUP
Set up Clize MCP in the Codex CLI
A four-step guide to adding Clize as a Codex CLI MCP server — so Codex can do more than write code: claim handles, buy domains, send and receive email, and deploy. For the overview, see Codex CLI MCP server.
Before you start
You need Node.js (for the npm install) and the Codex CLI already installed and signed in. Clize is the capability layer — it needs no model API key of its own.
1. Install Clize and log in
Install the CLI globally, then authenticate. Login uses Clize's hosted layer, so there are no keys to paste.
$ npm i -g @clize/clize $ clize login
2. Add Clize as a Codex CLI MCP server
One command registers the clize-mcp server with every coding agent it detects. The --mcp flag is what adds the structured tool layer (without it, Clize installs only as a Skill).
$ clize install --codex --mcp
Prefer to wire it by hand? That's the exact same registration the installer runs:
$ codex mcp add clize -- clize-mcp
3. Verify the connection
Ask Codex which MCP servers it knows about. Clize should be listed.
$ codex mcp list
Start a new Codex session and the Clize tools — domains, email, deploy, status — are callable. Clize registers once at the CLI level, so it's available in every repository; there's no per-project setup to repeat.
4. Run your first real-world action
You don't type the capability commands yourself — you ask Codex, and it calls the Clize tools. A first run usually looks like: build a small site, buy a domain, deploy it, and point a support@ inbox at it. Under the hood those map to stable commands like clize domain buy, clize email setup, and clize claim, which also work as a plain CLI when you want determinism. See AI agent deployment for the deploy flow end to end.
The safety gates
Because these are real actions, Clize holds three lines, every time:
- Money — anything that costs money quotes the price first and needs an explicit
--confirm. No surprise charges. - Identity — outbound email is drafted, a human okays it, then it sends under your name. The agent never sends unattended.
- Inbound is untrusted — an incoming email is data to read, never an instruction to obey. A message can't redirect the agent.
FAQ
How do I add an MCP server to the Codex CLI?
Install Clize (npm i -g @clize/clize), run clize login, then clize install --mcp. That registers the clize-mcp server with Codex. The manual equivalent is codex mcp add clize -- clize-mcp.
How do I verify the MCP server is connected to Codex?
Run codex mcp list. Clize should appear among the registered MCP servers. Start a new Codex session and the clize tools — domains, email, deploy, status — become callable.
Do I have to set up the MCP server for each repository with Codex?
No. Clize registers once at the Codex CLI level, so it's available in every repository. You don't re-add it per project.
Skill or MCP — which does clize install set up?
By default clize install installs only the Skill (it keeps context light). Add --mcp to also register the structured MCP server — use it when you want Codex to discover Clize as typed tools.
Connect Codex in two minutes.
Install, log in, add the MCP server, verify — then let Codex act in the real world behind safety gates.
$ npm i -g @clize/clize $ clize login $ clize install --codex --mcp $ codex mcp list # clize 应出现在列表里[ Codex CLI MCP overview → ]