Give Codex a publish_page tool

Connect MintPage to OpenAI Codex (CLI, IDE extension, desktop app) with one codex mcp add command, then turn plans and summaries into live links.

Codex writes long things in a terminal: implementation plans, what-changed summaries, security reviews, migration notes. A terminal is the wrong place to leave them. MintPage is a remote MCP server that gives Codex one more tool, publish_page, so the output becomes a URL you can paste into Slack, a pull request or an email — no repo, no deploy, no hosting account.

What Codex gets

Connecting the server adds 15 tools. The ones Codex will reach for:

  • publish_page — title + content (Markdown or HTML) → a live link at mintpage.ai/p/<slug>.
  • update_page — replace the content behind the same link (a living status page or plan).
  • list_pages, get_page_stats, get_account — read-only; they carry the MCP readOnlyHint, so Codex's writes approval mode lets them run without asking.
  • pause_page, revoke_link, delete_page — take a page offline, kill a link for good, or remove it.

Pages never run scripts: content is sanitized, served with a strict Content-Security-Policy and sandboxed, so a page can't touch the reader's session or call the API as them (details on /security).

Connect in one command

codex mcp add mintpage --url https://mintpage.ai/mcp

That writes a [mcp_servers.mintpage] entry to ~/.codex/config.toml. The same config is read by the Codex CLI, the IDE extension and the desktop app, so one entry covers all three. In the desktop app you can also do it from Settings → MCP servers → Add server (type Streamable HTTP, URL https://mintpage.ai/mcp), save and restart.

Then in Codex type /mcp in the composer to see the server connected, and ask: "call get_account and tell me which plan I'm on." Without a key the answer is plan: guest — 3 pages per 24 hours, 250 KB each, links that expire after 24 hours. That is enough to try it.

Add a free key (7-day pages)

Get a key at /start (an email, no card), export it, and point Codex at the environment variable — the key itself never goes into the config file:

# ~/.codex/config.toml
[mcp_servers.mintpage]
url = "https://mintpage.ai/mcp"
bearer_token_env_var = "MINTPAGE_API_KEY"
export MINTPAGE_API_KEY=mp_…

Codex sends the variable's value as the Authorization header on every request. Check it took: ask for get_account again — it should now say plan: free with your email. If it still says guest, the variable wasn't set in the shell Codex runs from, or the key has a typo: MintPage treats an unrecognised key on /mcp as a guest instead of refusing, so this check is the one that matters.

Free pages last 7 days (10 live at a time, 1 MB). Pro ($5/month or $39/year) makes them permanent, with custom slugs, no badge and search indexing.

Or sign in with OAuth

Codex supports OAuth for streamable-HTTP servers, including dynamic client registration and client-ID metadata documents, which is what MintPage's signed-in endpoint advertises. Use that endpoint instead of /mcp and log in once:

codex mcp add mintpage --url https://mintpage.ai/mcp/account
codex mcp login mintpage

A browser window opens on mintpage.ai/oauth/authorize; sign in with your email and Codex stores the token. The signed-in endpoint has no guest mode: it answers 401 with the OAuth metadata until you log in, so there is no silent fallback to worry about. Pick one route — key or OAuth — not both.

Team and project setup

A project can carry its own entry in .codex/config.toml at the repo root (Codex reads project config only for trusted projects). Commit the entry with bearer_token_env_var, never the key:

# .codex/config.toml
[mcp_servers.mintpage]
url = "https://mintpage.ai/mcp"
bearer_token_env_var = "MINTPAGE_API_KEY"
enabled_tools = ["publish_page", "update_page", "list_pages", "get_account"]
default_tools_approval_mode = "writes"

enabled_tools keeps the tool list down to what the team wants Codex to use; default_tools_approval_mode = "writes" means Codex asks before publishing or updating and runs the read-only tools on its own. Two more keys worth knowing: enabled = false turns the server off without deleting it, and startup_timeout_sec (default 10) can be raised if a cold start is slow on your network.

Prompts that work

  • "Write the implementation plan for the auth refactor, then publish it with publish_page and give me the link."
  • "Summarize what you changed in this session and why; publish it as a page I can paste in the PR description."
  • "Update the page you published earlier with the current status instead of making a new one."
  • "Publish the security review as HTML with theme ink and byline 'Drafted by Codex'."

A line in AGENTS.md keeps the habit: "When I ask for a link, publish the document with the MintPage publish_page tool and return the URL; never publish secrets, tokens or private data."

What the page looks like

A paper card with your title, optional byline and the rendered content: GitHub-flavoured Markdown (tables, fenced code, strikethrough, autolinks) or sanitized HTML, three themes (paper, ink, terminal), an Open Graph image generated from the title so the link unfurls in Slack and GitHub. Guest and free pages carry a small MintPage badge and a safety notice; Pro and minted pages don't. See real examples on the showcase.

Limits by plan

Guest Free key Pro
Live pages 3 per 24 h 10 500
Page size 250 KB 1 MB 2 MB
Expiry 24 h 7 days never
Custom slug no no yes
Indexable no no yes
Badge yes yes no
Price — free $5/mo or $39/yr

Any plan can make a single page permanent with a Peppermint pack (10 mints for $5, one-time) and mint_page.

FAQ

Does the IDE extension pick this up? Yes. The CLI, the VS Code extension and the desktop app read the same config.toml; after editing it, restart Codex or reopen the window.

Codex says the server is connected but the tool doesn't appear. Run /mcp in the composer: if the server is listed and enabled_tools is set, make sure publish_page is in the list. Otherwise name the tool in your prompt ("use the MintPage publish_page tool") the first time.

Why does get_account say guest although I set a key? Codex reads bearer_token_env_var from the environment it was launched in. Export the variable in that shell (or your shell profile) and start Codex again. On /mcp, a key that doesn't resolve is treated as no key.

Can two people edit the same page? Pages belong to the account that published them; update_page needs that account's key or OAuth session. Share the key through your secret manager, or have each person publish their own page.

Is the content private? No. Anyone with the link can read a page, and the link is random (not listed anywhere) unless you make it indexable on Pro. Don't publish secrets; the tool description tells Codex the same thing.

Can I publish without Codex? Yes: the REST alias POST https://mintpage.ai/api/publish takes the same JSON, and /new takes a paste. Guides: the Markdown API, Markdown pastebin.

Other ways in

The same server works from Claude Code, Cursor, Gemini CLI, VS Code, Windsurf, ChatGPT, Claude.ai & Desktop, n8n, and for agent reports in general. Full tool reference in the docs; live numbers on /open.

Try it in one line

No account needed. Pages last 24 hours as a guest, 7 days with a free key, forever on Pro.

claude mcp add --transport http mintpage https://mintpage.ai/mcp