How-toMulti-source71°

Codex 的 Computer Use 通过 MCP 实现,Claude 等 Agent 也能调用

Why we picked it

Codex 的电脑操作能力其实是 MCP 服务,照文中提示词发给 Claude 就能白嫖这个功能,附测试方法

一位用户发现 OpenAI Codex 的 Computer Use 功能是通过 MCP 服务实现的,配置存放在 ~/.

Body

codex/plugins/cache/openai-bundled/unified-computer-use/ 路径下的 .mcp.

json 文件中。文章给出了一段提示词,可以让 Claude 等其他 Agent 读取 cua_repl 的 command、args 和 env 配置,并将其注册为名为 codex-cu 的用户级 MCP 服务器。

配置完成后可通过让 Agent 在后台用 Mac 计算器计算 12 × 12 来测试是否生效。作者提醒后续 Codex 应用更新后,这一用法可能会失效。

Original · Gorden Sun

原来Codex的Computer Use是通过MCP服务实现的,所以Claude等其他Agent也完全可以调用。 不过后续Codex应用更新,可能其他Agent就用不了了。

把这段提示词发给Claude或其他Agent即可: 在我的 Mac 上,将 Codex 的 Computer Use(计算机操作)设置成一个供你使用的 MCP 服务器。 找到下面路径中最新版本目录里的 .mcp.json 文件: ~/.codex/plugins/cache/openai-bundled/unified-computer-use/<newest version>/.mcp.json 在其中找到 "cua_repl" 这一项,然后使用完全相同的 command、args 和 env 配置,将它注册为一个用户级 MCP 服务器,名称设为:codex-cu 完成后进行测试:在后台使用 Mac 的「计算器」应用计算:12 × 12

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Codex, Claude, MCP and tools, prompt engineering.

Source attribution: curated from Gorden Sun (@Gorden_Sun). Cross-source corroboration: 11 independent sources have covered this development (including 宝玉, 岚叔, Yuchen Jin), confirming industry-wide signal strength.