Codex

Deploy from Codex

Use MCP when your Codex host supports it. Otherwise POST HTML to the API.

  1. Option A — MCP (preferred)

    Point your Codex MCP host at the remote URL:

    {
      "mcpServers": {
        "aft-page": {
          "url": "https://mcp.aft.page/mcp"
        }
      }
    }
  2. Option B — API

    No MCP host? Deploy with curl:

    curl -X POST https://api.aft.page/v1/deploy \
      -H 'content-type: text/html' \
      --data '<!DOCTYPE html><html><body><h1>shipped by agent</h1></body></html>'
  3. Prompt

    Ask Codex to return the live URL after deploy:

    Deploy this HTML to aft.page

Full API reference: /mcp#http · mcp.md.