Skip to main content

Codex CLI

Codex CLI (codex) reads MCP server definitions from ~/.codex/config.toml (or a project-level config, depending on version).
Run codex and ask it to use the tools directly:
“Use the xentfi tools to show my agent’s wallet balances and current spend policy.”
Verify the server loaded with whatever --mcp / server-listing flag your installed Codex CLI version provides (codex --help), or watch stderr on first run for [xentfi-mcp] MCP server ready over stdio.

OpenAI Agents SDK

The Agents SDK has first-class MCP support via MCPServerStdio.
Both SDKs cache the tool list from an MCP server at connect time by default — if you rotate the XentFi API key, restart/reconnect the server.
For production agentic-payment workflows, combine the Agents SDK’s built-in tool-use approval/guardrails hooks with xentfi_create_payment’s confirm: true requirement, so a human (or a separate policy-checking function) is in the loop before funds move — on top of XentFi’s own server-side Policy enforcement.

Next steps

Tools Reference

See every available tool.

Generic MCP Client

If your runtime isn’t covered here.