CastHTML リモートMCPを OpenAI Codex CLI にMCP接続する方法(設定手順)

CastHTML のリモートMCPサーバーを OpenAI Codex CLI に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。

🛡️ Official✓ VerifiedStreamable HTTPBearer Token🛡️ A+~416 tok5 tools
Streamable HTTPhttps://casthtml.com/mcp

🔒 Client-side only — never leaves your browser.

Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:

[mcp_servers.casthtml]
url = "https://casthtml.com/mcp"
bearer_token_env_var = "CASTHTML_TOKEN"

接続手順

  1. TOML を編集 — ~/.codex/config.toml に [mcp_servers.casthtml] と url = "https://casthtml.com/mcp" を追記します。
  2. 資格情報を設定 — bearer_token_env_var = "CASTHTML_TOKEN" を追加し、同名の環境変数にキーを export します。
  3. 検証 — オンライン Inspector に https://casthtml.com/mcp を貼り付け、initialize と tools/list を実行して接続を確認します。

🧰 ツール一覧(5)

ToolSafetyDescriptionParameters
publish_report
~140 tok
🟠 WritePublish an HTML page or Markdown report into a secure sandbox and get a shareable /r/{slug} link.content*: stringtitle: stringformat: stringrender_mode: stringis_public: boolean
update_report
~97 tok
🟠 WriteUpdate an existing report in place by id_or_slug while keeping the share link unchanged.id_or_slug*: stringcontent*: stringtitle: string
list_reports
~40 tok
🟢 ReadList the most recent 50 reports on the current account.—
get_report
~56 tok
🟢 ReadFetch report metadata and body by id_or_slug.id_or_slug*: string
delete_report
~63 tok
🔴 DestructivePermanently delete a report by id_or_slug and invalidate its share link.id_or_slug*: string

その他の接続ガイド