Grok-Codex Bridge
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GROK_MODEL | No | 传给 Grok 的模型名称 | grok-4.5 |
| GROK_EXECUTABLE | No | Grok 可执行文件路径 | grok |
| GROK_OPEN_OBSERVER | No | 是否打开可见观察窗口 | true |
| GROK_ALWAYS_APPROVE | No | 启动 Grok 时跳过普通权限询问 | true |
| GROK_MAX_RUNTIME_MS | No | 可选的最大运行时间(毫秒),0 表示不限制 | 0 |
| GROK_TERMINAL_SHELL | No | Grok 通过 ACP 创建终端时使用的 shell | powershell.exe (Windows) or system default (Unix) |
| GROK_CODEX_BRIDGE_HOME | No | 会话注册表和日志目录 | %USERPROFILE%\.grok-to-codex |
| GROK_HEALTH_INTERVAL_MS | No | 内部健康检查间隔,默认五分钟 | 300000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| grok_session_ensureA | 当任务涉及代码项目时,先调用此工具连接或创建当前 Codex 任务、项目路径和 Git 分支对应的 Grok 会话。它只建立会话,不会让 Grok 开始编码。 |
| grok_task_startA | 当 Codex 完成需求分析并需要具体修改代码、执行命令或运行测试时,使用此工具把明确任务交给 Grok。此调用会一直等待,直到 Grok 完成、失败、阻塞或被取消;等待期间不要并行执行其他项目工作。架构规划、需求判断和最终审查仍由 Codex 负责。 |
| grok_task_statusA | 在用户要求查看进度、排查异常或确认 Grok 状态时调用。返回简短状态,不返回完整实时日志;不需要主动每隔几分钟轮询。 |
| grok_task_cancelA | 当用户要求停止当前 Grok 工作,或确认任务已经失去响应时调用。它会取消任务并结束对应的 Grok 进程树。 |
| grok_session_switchB | 当项目路径、工作目录或 Git 分支发生变化时调用,为新的上下文切换到独立的 Grok 会话,避免复用不相关的旧上下文。 |
| grok_session_closeC | 当 Grok 会话已经闲置且不再需要后台进程时调用。它会关闭工作进程,但保留会话映射,之后仍可尝试恢复。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nurkic4/grok-to-codex'
If you have feedback or need assistance with the MCP directory API, please join our Discord server