MCP
Codex
Add Synapse Remote MCP to Codex with BYOK Agent Key or OAuth login.
Codex can use Synapse Remote MCP through Streamable HTTP.
BYOK Agent Key
Add the hosted MCP endpoint:
codex mcp add synapse-remote-mcp \
--url https://mcp.synapse-network.ai/mcp \
--bearer-token-env-var SYNAPSE_AGENT_KEYSet your Agent Key:
export SYNAPSE_AGENT_KEY=agt_xxxCheck the configuration:
codex mcp get synapse-remote-mcpOAuth login
Add the OAuth version:
codex mcp add synapse-remote-mcp-oauth \
--url https://mcp.synapse-network.ai/mcp \
--oauth-client-id codex \
--oauth-resource https://mcp.synapse-network.ai/mcpLog in:
codex mcp login synapse-remote-mcp-oauth \
--scopes synapse.discovery.read,synapse.receipts.read,offline_accessThe browser authorization flow redirects to Synapse. If the page reports that wallet connection is unavailable, install or enable MetaMask or Rabby and retry.
Verify
codex mcp listExpected result:
synapse-remote-mcpis enabled with bearer-token auth, orsynapse-remote-mcp-oauthis enabled and logged in.
First prompt
Use the Synapse MCP server to discover services for weather data. Do not call invoke_and_pay.