Skip to content

用户配置

Codex 通过 API Key 连接 Gateway。Gateway 只会提供该 API Key 已获授权的 MCP Server 和工具,未授权的资源不会被发现或调用。

模式 Gateway 地址 适用场景
主路由 http://mcpgw.dingtone.xyz/mcp 需要访问 API Key 已授权的多个 MCP Server。
子路由 http://mcpgw.dingtone.xyz/mcp/{namespace}/{mcp-server-name} 固定使用某个 namespace 下的单一 MCP Server。
主路由 + 精细化 API Key 权限 http://mcpgw.dingtone.xyz/mcp 通过 API Key 的授权范围限制可发现和可调用的 Server 与工具;这不是新的 URL。

三种模式都需要 API Key。API Key 权限和 IP 白名单同时适用于主路由与子路由;为 API Key 启用 IP 白名单后,只有白名单中的 IP 可以访问 Gateway。

先阅读 快速开通 自行创建 API Key,再根据 Gateway 连接模式 选择路由,最后按 配置 Codex 完成设置。

先完成开通并选择连接模式,再按 Codex 配置页设置连接。若权限不足,或当前 IP 不在白名单中,请联系运维核查 API Key 的授权范围和来源 IP 限制。