Skip to main content
Glama
Vyrmedea

Codex Antigravity MCP Server

by Vyrmedea

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODEX_BIN_PATHNoCodex CLI 执行文件路径 (支持系统 PATH 中的 codex, 或 codex.exe / codex.js 的绝对路径).codex
CODEX_NODE_PATHNo运行入口为 JS 脚本时所调用的 Node.js 可执行文件路径.node / process.execPath
CODEX_SAFE_TRASHNo是否全局强制启用“仅移动到垃圾箱”安全拦截规则, 设置为 false 可解除限制.true
CODEX_DEFAULT_CWDNo当请求与续接会话均未指定目录时的默认回退工作区.process.cwd()

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codex_sendA

向 Codex 发送提示词 (支持新建会话或在已有 threadId 上继续对话). 支持设置工作区目录、模型和权限模式. 在初始窗口 (默认 10s) 内等待, 若未完成则返回快照及下一次轮询的推荐退避时间.

codex_pollA

轮询当前运行中的 Codex 任务进度. 未传 waitMs 时自动按截断指数退避 (20s -> 40s) 等待. 当任务完成、触发审批或断线时立刻返回.

codex_approveA

回复 Codex 的反向审批请求 (命令执行、文件更改、权限申请或用户交互提问). 会自动拦截危险的直接删除命令并转为 decline.

codex_cancelA

取消当前运行中的 Codex 执行轮次. 发送中断指令并等待最多 5 秒确认. 在旧命令确认停止前保持忙碌状态以防止并发写冲突.

codex_sessionsB

查看本地 Codex 原生历史会话列表或指定会话的历史对话详情. 支持覆盖全来源 (CLI / VS Code / 桌面端 / exec / appServer).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation5/5

Each tool maps to a distinct lifecycle operation: send input, poll progress, approve requests, cancel execution, or inspect sessions. The boundaries are clear even though send and poll both involve waiting, because their descriptions explain that send starts/continues work while poll only observes it.

Naming Consistency4/5

All tools share a consistent codex_ prefix, and four of five use clear action verbs. codex_sessions is noun-based and combines list/detail behavior, which is a minor deviation from the otherwise consistent verb pattern.

Tool Count5/5

Five tools are well-scoped for a Codex execution wrapper, covering the essential lifecycle without redundant endpoints. Each tool earns its place and no obvious duplicate surface exists.

Completeness4/5

The set covers sending prompts, continuing threads, polling, approvals, cancellation, and session history, which supports the core workflow. Minor gaps include no explicit session deletion or model/configuration discovery, but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessNo issues