01 · MCP
Connect a market-data MCP server
Best when Codex should discover and call structured market capabilities directly. Configure an MCP server, keep credentials outside prompts and repositories, inspect the chosen tool, and allow only the read-only quote operations the task needs.
Read the QVeris MCP server setup
02 · CLI
Create a narrow market-data CLI
Best when a repository needs a testable, versioned adapter. Give Codex one command that validates symbols, calls the provider, emits stable JSON, and returns non-zero exit codes for timeouts, limits, or ambiguous instruments.
Open the Codex-specific QVeris setup
Copyable Codex setup
Add QVeris MCP, verify it, then discover a quote capability
Run the official Codex command below with your own API key. It registers the read-only capability layer in Codex without putting the key in the repository. The Codex CLI and IDE extension store this MCP entry in your local Codex configuration.
codex mcp add qveris --env QVERIS_API_KEY=your-api-key-here -- npx -y @qverisai/mcp
codex mcp list
After QVeris appears as enabled, ask Codex to discover a capability before executing anything. Inspect the selected capability to confirm its provider, input schema, freshness, entitlement, and cost. Only then call it with parameters that match the inspected schema.
qveris discover "real-time stock quote with source and timestamp"
qveris inspect <tool-id>
qveris call <tool-id> --params '<validated-json-from-the-inspected-schema>'
Verification prompt: “Use QVeris to find a read-only current quote capability for AAPL. Inspect it first. Return the exchange, currency, market session, source, delay status, and provider timestamp. Do not place a trade.”
See the complete Codex configuration and troubleshooting steps