Grok-in-Codex
Allows to review pull requests, branches, and trees using Grok, leveraging GitHub CLI for PR operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Grok-in-CodexAsk Grok to review this PR for security issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Grok plugin for Codex
Use Grok from inside Codex for code reviews, delegated coding, planning, multi-agent workflows, design→execute pipelines, PR babysitting, and image/video/document generation.
Plugin version: 0.5.8. Codex stays the orchestrator. A thin MCP server + companion script hands real work to Grok on your machine via the local CLI (Grok Build ≥ 0.2.118 recommended).
Artifact dirs (gitignored): .grok-plans/, .grok-designs/, .grok-workflows/, .grok-docs/, .grok-reviews/, .grok-media/.
Using Claude Code instead? Use the sibling plugin: grok-in-claude.
What you get
Codex MCP tool | Purpose |
| Check CLI + auth + version floor + doctor; toggle stop review gate |
| Delegate investigation / fixes (write-capable; full control flags) |
| Plan mode only (explore → plan.md under |
| Structured read-only review (tree / branch / PR; optional |
| Challenge design, tradeoffs, and assumptions |
| List/run Grok Rhai multi-agent workflows |
| Design doc + PR plan (writer/reviewer loop → |
| Execute a design-doc PR Plan DAG |
| Watch PRs / fix CI & review comments ( |
| Generate docx / pdf / pptx → |
| Generate or edit images → |
| Generate short videos → |
| List / search / export Grok sessions |
| Build context-transfer guidance for Grok |
| Jobs + live progress / log tail + usage when available |
| Final output (plan.md preferred for plan jobs; usage + artifacts) |
| Cancel a background job |
Control flags (rescue/plan/review and long-running jobs): sandbox, planMode / permissionMode, agent, noSubagents, memory / noMemory, allow / deny, disableWebSearch, forkSession, maxTurns.
Skills: brand/media recipes, routing (including plan→design→execute-plan), runtime contracts, workflows, prompting.
Related MCP server: agent-bridge-mcp
Requirements
Node.js 18.18 or later
Grok Build CLI (
grok) on yourPATHGrok authentication (
grok login)GitHub CLI (
gh) only if you usegrok_reviewwith PRs or post-pending
Typical CLI location: ~/.grok/bin/grok (ensure it is on PATH).
Install
From GitHub:
codex plugin marketplace add stdevMac/grok-in-codex
codex plugin add grok@grok-in-codexThen start a new Codex thread so the plugin skills and MCP tools are loaded.
Install locally
codex plugin marketplace add /path/to/grok-in-codex/.agents/plugins
codex plugin add grok@grok-in-codexRun setup:
node plugins/grok/scripts/grok-companion.mjs setupOr ask Codex to call grok_setup.
Quick start
Ask Grok to review this branch against main.
Use Grok to plan the auth rewrite.
Generate a design doc with Grok, then execute the latest plan dry-run.
Start a background Grok rescue job for the retry redesign.
Generate a 16:9 launch banner with Grok.
Show Grok job status.Direct MCP tool examples:
grok_plan prompt="plan the auth rewrite" background=true
grok_design prompt="design multi-tenant billing" background=true
grok_execute_plan latest=true dryRun=true
grok_workflow action=list
grok_review base=main focus="auth, data loss, and race conditions"
grok_rescue prompt="investigate why npm test is failing" background=true
grok_babysit action=list
grok_document type=pdf prompt="one-pager for the launch"
grok_sessions action=list
grok_status
grok_result jobId="plan-abc123"
grok_image aspect="16:9" prompt="Dark developer-tool launch banner"
grok_video image="./.grok-media/image/hero.png" duration="6" prompt="gentle camera push-in"Workspace selection
Codex starts an installed plugin MCP server from the plugin cache, so pass the active project
directory as cwd when calling a Grok tool from an installed plugin. The companion then runs in
that directory and keeps jobs, git inspection, and artifacts scoped to the intended workspace.
For direct local calls, use for example:
grok_review cwd="/path/to/project" base=main
grok_status cwd="/path/to/project" json=trueDepth pipeline
For multi-PR or ambiguous product work, prefer:
grok_plan— explore + harvestplan.mdgrok_design— design doc + PR plan under.grok-designs/grok_execute_planwithlatest=true— implement the PR DAGgrok_review/grok_babysit— quality and CI loop
Job control semantics
Concurrent multi-job support — no single-job global lock. Prefer
background=truefor long work.Status — live progress is a tail of accumulated text and thought streams; empty/whitespace-only stream tokens floor to
running.Result — plan jobs prefer harvested
plan.mdbody over narration; finished jobs persistconfig,usage, andartifacts(v3 schema).Reaper — dead pid + complete parseable
result.jsonreconciles to completed; dead pid + empty/truncated/incomplete result → terminal failed with distinct diagnostics (no forever-runningzombies).Atomic writes — background workers write
result.jsonvia tmp + rename (no partial mid-write; no leftover.tmp.*after success).PR post-pending — runs on background completion too; skips empty findings; empty/oversize diffs fail closed with recoverable findings under
.grok-reviews/.
CLI posture
Prefer denylist (
--disallowed-tools) over tools allowlist.Media: no yolo / no tools allowlist.
dryRun/validateOnly/ babysitlist: read-only (no yolo).
Environment variables
Variable | Purpose |
| Override path to the |
| Explicit job-state root for this plugin |
| Host plugin data dir; trusted only when basename is |
Default state root when unset: ~/.grok/codex-plugin/state/. Codex does not share Claude’s ~/.grok/claude-plugin/state or GROK_CLAUDE_PLUGIN_STATE.
Usage notes
Rescue
Write-capable by default.
Use
readOnly=truefor investigation-only work.Use
worktree=true/check=true/bestOfNfor safer or parallel attempts.Full control surface available (sandbox, memory, agent, allow/deny, maxTurns, …).
Plan / design / execute
Plan mode harvests into
.grok-plans/; result body prefers the plan file.Design harvests into
.grok-designs/.grok_execute_planwithlatest=truepicks the newest design doc;dryRun=trueis read-only.
Review
Read-only; never applies patches.
postPending=truewith a PR posts PENDING GitHub review comments when findings exist.
Media
Default outputs land under
.grok-media/image/and.grok-media/video/.Session media is copied into those dirs when Grok leaves files in its session workspace.
Jobs
Background tools return a job id.
Use
grok_status/grok_result/grok_cancelwith that id when multiple jobs are active.
Development
npm test
node plugins/grok/scripts/grok-companion.mjs setup --json
node plugins/grok/mcp/server.mjs # stdio NDJSON MCP serverVersioning
Root package.json, plugins/grok/.codex-plugin/plugin.json, and .agents/plugins/marketplace.json (metadata + plugin entry) share the same version string. Bump them together.
License
Apache-2.0
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server that wraps the local Grok Build CLI, enabling Codex to delegate code reviews, bounded coding tasks, and setup diagnostics to Grok for a second opinion or parallel processing.4Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables asynchronous task delegation between Claude Code and Codex CLI through MCP tools, allowing either AI agent to request the other to perform tasks and monitor progress.10MIT
- AlicenseNot gradedqualityAmaintenanceEnables Codex to use Grok Build CLI as a controlled subagent via MCP tools for independent investigation, review, and isolated implementation tasks.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables Codex to delegate bounded work to external LLMs through role-based MCP tools, with worker health checks and audit logging.MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
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/stdevMac/grok-in-codex'
If you have feedback or need assistance with the MCP directory API, please join our Discord server