CodexReviewMCP exposes Codex review over MCP.
-
Launch ReviewMonitor.
-
Register the MCP server in your client:
# Recommended: HTTP/SSE codex mcp add codex_review --url http://localhost:9417/mcp # Alternative: STDIO adapter codex mcp add codex_review -- codex-review-mcp
-
Call one of the exposed tools:
review_startreview_listreview_readreview_cancel
-
If the client or agent is unfamiliar with the server, inspect discovery resources first:
resources/listresources/templates/listresources/readoncodex-review://help/overview
codex mcp add does not currently expose MCP timeout flags. If you expect
long-running reviews, add the timeout values manually in your client Codex
config after registration. This client-side MCP entry is separate from
ReviewMCP's dedicated backend home at ~/.codex_review/config.toml:
[mcp_servers.codex_review]
url = "http://localhost:9417/mcp"
startup_timeout_sec = 1200.0
tool_timeout_sec = 1200.0Use your normal codex mcp add ... command first, then edit the generated
entry to include the timeout values.
- MCP server
- Persistent HTTP/SSE MCP server
- Multi-session
- Session-scoped review jobs
- One long-lived
codex app-serverbackend process - One shared STDIO transport to the backend process
- Review jobs run concurrently across sessions and within the same session
- Discovery
- Writes the resolved endpoint to
~/.codex_review/review_mcp_endpoint.json - Stores internal supervisor state in
~/.codex_review/review_mcp_runtime_state.json
- Writes the resolved endpoint to
Pre-1.0 note:
- Discovery schema, runtime-state layout, and other internal file formats may change without migration before the first release.
Runs a review through the shared long-lived codex app-server backend over STDIO and blocks until the final result is ready.
Key inputs:
cwdtarget
target uses the app-server review target model:
{"type":"uncommittedChanges"}{"type":"baseBranch","branch":"main"}{"type":"commit","sha":"abc1234","title":"Optional title"}{"type":"custom","instructions":"Free-form review instructions"}
Returns:
jobIdthreadIdwhen availableturnIdmodeleffective resolved review modelstatusreviewerror
Notes:
review_startis the primary client flow. It waits for terminal completion, so MCP clients should configure a sufficiently large tool timeout.- ReviewMCP resolves the reported review model in this order:
~/.codex_review/config.tomlreview_model- the effective dedicated Codex config in
~/.codex_review/config.tomlreview_model - backend-reported
thread/start.model - the effective dedicated Codex config in
~/.codex_review/config.tomlmodelonly as a pre-thread-start fallback when the backend does not report a model
- Use
review_readto fetchlastAgentMessage, orderedlogs, andrawLogText.
If you are unsure how to build the target object, read:
codex-review://help/tools/review_startcodex-review://help/targets/uncommittedChangescodex-review://help/targets/baseBranchcodex-review://help/targets/commitcodex-review://help/targets/custom
Reads the current or final state of a review job owned by the current MCP session.
This is optional for normal clients because review_start already returns the final summary.
Returns:
jobIdthreadIdwhen availableturnIdmodeleffective resolved review modelstatusreviewlogsrawLogTextlastAgentMessageerror
Lists review jobs owned by the current MCP session.
Optional inputs:
cwdstatuseslimitdefault20, max100
Returns:
itemsjobIdcwdtargetSummarymodeleffective resolved review modelstatussummarystartedAtendedAtelapsedSecondsthreadIdlastAgentMessagecancellable
Cancels a review job owned by the current MCP session.
Inputs:
- exact:
jobId
- selector:
cwdstatuses
Notes:
cwdis a search key, not a unique identifier.- Without
jobId,review_cancelsearches only the current MCP session.
This server exposes onboarding/discovery resources over MCP. Clients can use resources/list and resources/read to inspect supported review flows without relying on this README.
This server also exposes MCP resource templates for tool-specific and target-specific help. Clients can discover them via resources/templates/list.
- The package depends on
swift-sdkvia a pinned release version in Package.swift. - Server defaults plus clamp fallback metadata are loaded from Sources/ReviewCore/Resources/defaults.json.
- ReviewMCP-only overrides live in
~/.codex_review/config.tomland currently support root-levelreview_model,model_reasoning_effort,model_context_window, andmodel_auto_compact_token_limit. - ReviewMCP's dedicated Codex home is
~/.codex_review.config.toml,AGENTS.md,models_cache.json, and other home-scoped review files are resolved from there. - Review jobs are isolated per MCP session.