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

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

🛡️ Official✓ VerifiedHTTP + SSEOAuth 2.1🛡️ A+~299 tok4 tools
HTTP + SSEhttps://mcp.squareup.com/mcp
Legacy SSE endpoint
SSEhttps://mcp.squareup.com/sse

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

[mcp_servers.square]
url = "https://mcp.squareup.com/mcp"

接続手順

  1. TOML を編集 — ~/.codex/config.toml に [mcp_servers.square] と url = "https://mcp.squareup.com/mcp" を追記します。
  2. 資格情報を設定 — 初回呼び出し時に Block / Square の OAuth 認可画面が開きます。許可するとツールが有効になります。
  3. 検証 — オンライン Inspector に https://mcp.squareup.com/mcp を貼り付け、initialize と tools/list を実行して接続を確認します。

🧰 ツール一覧(4)

ToolSafetyDescriptionParameters
list_payments
~70 tok
🟢 ReadList payments taken by the Square seller account.beginTime: stringlocationId: string
search_orders
~69 tok
🟢 ReadSearch Square orders with filters.locationIds: arrayquery: string
list_catalog_items
~51 tok
🟢 ReadList items in the Square catalog.cursor: string
create_payment_link
~89 tok
🟠 WriteCreate a Square checkout payment link.description*: stringamount*: numbercurrency: string

その他の接続ガイド