codex-mcp-for-agy
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CODEX-MCP-FOR-AGY
让 Antigravity 把只读审阅或指定的实现方案交给本机 Codex。Antigravity 负责制定方案、核实结果并决定是否合入补丁。
这是 AGY-MCP-FOR-CODEX 的反向配套项目。两边可以同时安装。
安装
需要 Node.js 22 或更新版本、本机 Antigravity CLI 和支持 codex exec --ignore-user-config 的 Codex CLI。先运行 codex login,并确保 Antigravity 启动时能从 PATH 找到 node 和 codex。Windows 支持 codex.exe 和通过官方 npm 包安装的 Codex。
从 GitHub Releases 下载插件 ZIP 或 Windows 安装包。
Windows 安装包:先关闭 Antigravity,运行
*-windows-setup.exe,安装后重新打开 Antigravity。安装包未签名,ZIP 提供相同的插件内容。插件 ZIP:解压后,在包含
plugin.json的目录运行以下命令。ZIP 已包含 MCP 服务和 npm 依赖。
agy plugin validate --strict .
agy plugin install .如果使用源码,在项目目录运行:
npm ci
npm run build
agy plugin validate --strict ./dist/codex-mcp-for-agy
agy plugin install ./dist/codex-mcp-for-agy构建目录含完整插件。安装后在新开的 Antigravity 对话中打开目标项目。首次调用如果出现 MCP 权限提示,确认授权此插件。Codex 桌面应用可以保持关闭。
请让 Codex 独立审阅当前未提交的改动。Codex 全程只读。你核实它的发现之后,按影响排序告诉我。
若 Codex 通过自定义路径安装,可在启动 Antigravity 前设置 CODEX_MCP_CODEX_PATH 为 Codex 可执行文件的绝对路径,Windows 上需指向 .exe。
如果 Windows 上 Codex 能回应但无法直接读文件,可改用独立安装的 Codex CLI,并按本机策略通过 CODEX_MCP_WINDOWS_SANDBOX 选择 mxc、elevated 或 unelevated。Codex Windows 沙箱文档
Related MCP server: antigravity-plugin-codex
工具
工具 | 用途 |
| 提交项目绝对路径和任务,支持选填 diff 或代码片段,返回任务 ID |
| 把实现方案交给 Codex,在临时 Git 副本中改代码和跑测试,返回任务 ID |
| 查询状态和结果,单次最多等 20 秒 |
| 停止当前插件发起的任务 |
每个任务最多运行 5 分钟。任务和结果保存在当前 MCP 进程中,插件重启后会清空。桥接器沿用 Codex 的登录,与 Codex 的个人配置分开启动。提示词和 Codex 读取的项目内容按 Codex 的服务设置处理。
Antigravity 可把相关 diff 或代码片段放进 context,让 Codex 基于收到的内容审阅,即使本机 Codex 的沙箱无法读取项目文件也能使用。
让 Codex 执行方案
在 Antigravity 打开一个已有提交、且可通过 PATH 使用 Git 的项目,然后输入:
先看当前问题并写清楚实现步骤、改动范围和要跑的测试。然后用
codex_execute把方案交给 Codex,等codex_result返回。核对补丁和测试退出码,先给我审阅结果。
执行模式从项目已提交的 HEAD 创建临时副本。未提交改动、本地依赖和子模块工作目录不会带进去。Codex 可在副本内写文件和运行本地测试。完成后,插件返回基准提交、补丁、变更文件和实际命令输出,原工作区由 Antigravity 决定是否应用补丁。超过 60 KB 的补丁会标记为省略,此时可分成更小的任务。任务结束后,桥接器会尝试清理临时副本。
运行 npm run smoke 验证传入内容的只读审阅,运行 npm run smoke -- --workspace-read 验证自行读取工作区。运行 npm run smoke -- --execute 验证修改、测试退出码、补丁应用和原仓库隔离。验证使用当前 Codex 账户。卸载命令为 agy plugin uninstall codex-mcp-for-agy。
v0.2.0 为 Windows 预览版,macOS 和 Linux 安装仍待实测。源码采用 MIT 许可证,插件包附带第三方许可证声明。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted coding agent: start, follow up on and stop tasks that can open GitHub pull requests.
Read, search, edit, commit and run approved commands in projects on your own Mac or Linux computers.
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
Project context, backlog tasks, and controlled workflows for coding agents. OAuth sign-in.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables Codex to delegate bounded code analysis, review, isolated edits, multimodal research, and native image generation to supervised Antigravity workers, with queued execution, retries, and inspectable patches.232MIT
- AlicenseBqualityCmaintenanceEnables a local Codex chat to ask a second opinion, review staged, unstaged, or revision-based diffs, and delegate coding tasks to the Antigravity CLI running in isolated or disposable workspaces. Supports starting, polling, retrieving, and cancelling tasks with returned answers, diffs, changed-file lists, exit codes, and time/output limits, while never auto-applying returned patches.81MIT
- AlicenseNot gradedqualityBmaintenanceEnables Antigravity to delegate concrete local coding tasks to Codex CLI with durable sessions, background execution, native chat links, and event-driven receipts.MIT
- AlicenseAqualityBmaintenanceEnables Antigravity to delegate coding, debugging, refactoring, and code reviews to OpenAI Codex through a persistent app-server bridge, with thread continuity, approvals, isolated worktrees, and multimodal inputs.11MIT