Choose the connection
选择接入方式
Two practical ways to give Codex current quotes
让 Codex 获取最新行情的两种实用方式
The right path depends on where the conversation lives and how
much control the workflow needs.
选择取决于对话发生在哪里,以及工作流需要多少控制权。
01 · MCP
Connect a market-data MCP server
连接市场数据 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.
适合让 Codex 直接发现并调用结构化行情能力。配置 MCP
Server,把密钥留在提示词和代码仓库之外,先检查所选工具,并只开放任务所需的只读行情操作。
Read the QVeris MCP server setup
阅读 QVeris MCP Server 配置说明
02 · CLI
Create a narrow market-data CLI
创建专用行情 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.
适合在代码仓库中维护可测试、可版本化的适配器。为 Codex
提供一条命令:校验股票代码、调用数据源、输出稳定
JSON,并在超时、限流或标的歧义时返回非零退出码。
Open the Codex-specific QVeris setup
打开 QVeris Codex 专用配置指南
Copyable Codex setup可复制的 Codex 配置
Add QVeris MCP, verify it, then discover a quote
capability添加 QVeris MCP,完成验证,再发现行情能力
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.使用你自己的 API key 运行下面的 Codex
官方配置命令。它会把只读能力层注册到
Codex,同时避免把密钥写进代码仓库。Codex CLI 与 IDE 扩展会把该
MCP 条目保存在本机 Codex 配置中。
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 已启用后,先让 Codex
发现能力,不要直接执行。检查所选能力的数据源、输入
schema、新鲜度、授权和成本,再按照检查得到的 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.”验证提示词:“使用 QVeris 查找查询 AAPL
当前行情的只读能力,先检查再调用。返回交易所、币种、交易时段、来源、延迟状态和数据源时间戳,不要执行交易。”
See the complete Codex configuration and troubleshooting
steps查看完整 Codex 配置与故障排查步骤