Connect Codex to DiagramReply via MCP
Add one remote MCP block to ~/.codex/config.toml so Codex can turn dense explanations into clickable workflows, timelines, and live calculators. No local renderer setup is needed.
Where visuals open in Codex
- MCP App inline (preferred): In Codex hosts that support MCP Apps (ui://), the interactive diagram or calculator opens directly inside the reply.
- Authenticated private web fallback: In terminal-only sessions or when inline rendering is unavailable, Codex returns a private
/artifacts/<id>link that opens with your signed-in account at zero extra usage.
Requirements & plans
- Works on Free & Pro: Free accounts include 20 monthly visuals; Pro unlocks unlimited visuals and 180-day vault retention with the exact same MCP config.
- Optional proactive Skill: Installing the single-file Codex Skill below teaches Codex when to draw visuals automatically instead of waiting to be asked.
Setup & Health Check
1. Add DiagramReply to ~/.codex/config.toml
Keep your existing MCP servers intact. Using http_headers ensures both Codex Desktop App and Codex CLI authenticate cleanly against https://diagramreply.com/api/mcp.
[mcp_servers.diagramreply]
url = "https://diagramreply.com/api/mcp"
http_headers = { "Authorization" = "Bearer <YOUR_API_KEY>" }2. Install the 1-file Codex Skill (recommended for proactive visuals)
Without a Skill, Codex typically waits for you to explicitly ask for a diagram. Installing this single Markdown file teaches Codex when to call show_visual automatically for workflows, trade-off comparisons, and live calculators—while staying in plain text for short answers.
mkdir -p ~/.agents/skills/diagramreply
curl -fsSL "https://diagramreply.com/codex/diagramreply/SKILL.md" -o ~/.agents/skills/diagramreply/SKILL.md3. Run a free connectivity check (0 quota used)
Confirm authentication and check your plan & monthly allowance with the read-only get_wallet_status MCP tool before generating your first visual.
curl -sS -X POST "https://diagramreply.com/api/mcp" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_wallet_status","arguments":{}}}'generations:write, generations:read and wallet:read only. Billing or subscription actions are never exposed to MCP tools.Try the exact same interactive examples in Codex
Click nodes in the 6-step AI Agent bug-fix loop or drag sliders in the 3-curve SaaS pricing simulator below. Then copy the shared prompt and run it in Codex to verify your first live visual.