Skip to main content
Glama
2001Y
by 2001Y

coderabbit-cli-mcp

English documentation lives here. A full Japanese version is available in README.ja.md.

run_review is the only MCP tool this server exposes. When the CodeRabbit CLI is missing or unauthenticated, the same tool response explains how to bootstrap it and reminds Codex to report back to the user instead of acting autonomously.

Quickstart (Codex CLI)

Published package (npx)

codex mcp add coderabbit-cli-mcp \
  -- "npx" \
  "-y" \
  "coderabbit-cli-mcp"

Development checkout (local tsx)

codex mcp add coderabbit-cli-mcp \
  --env TSX_BANNER=false \
  -- "$(pwd)/node_modules/.bin/tsx" \
  "$(pwd)/src/server.ts"

After registration you can inspect tools with codex mcp call coderabbit-cli-mcp tools/list or trigger run_review via codex mcp call.

Related MCP server: Review MCP Server

Codex config (client-side)

~/.codex/config.toml controls how Codex launches MCP servers. Start with the minimal entry above, then add optional knobs:

[mcp_servers.coderabbit-cli-mcp]
command = "npx"
args = ["coderabbit-cli-mcp@latest"]
tool_timeout_sec = 1800  # allow up to 30 minutes (default 60)
# startup_timeout_sec = 60

[mcp_servers.coderabbit-cli-mcp.env]
# CODERRABBIT_MCP_LOCK_MODE = "plain"
# CODERRABBIT_MCP_LOCK_TYPE = "uncommitted"
# CODERRABBIT_MCP_LOCK_CONFIG_FILES = "[\".coderabbit.yaml\"]"
# CODERRABBIT_TOOL_TIMEOUT_SEC = "1800"
  • Uncomment the optional lines you need. Keep command/args as-is for a published install, or swap them for the local tsx command from the quickstart section.

  • tool_timeout_sec should be ≥600 whenever reviews may run longer than a minute.

  • CODERRABBIT_MCP_LOCK_MODE / _TYPE take plain strings.

  • CODERRABBIT_MCP_LOCK_CONFIG_FILES must be a JSON array (CodeRabbit’s -c flag accepts multiple files, so list all required config paths there).

  • CODERRABBIT_TOOL_TIMEOUT_SEC should match the value you assign to tool_timeout_sec so this server can confirm the configuration.

  • These environment variables are not accepted via MCP tool arguments; Codex’s environment is the only place to set them.

  • Because the environment carries these values, no extra server-side config files are required.

Provided Tool

Tool

Role

Key arguments

run_review

Executes coderabbit with full flag coverage. If the CLI is missing or unauthenticated, the same response includes setup guidance and instructs Codex to ask the user.

mode, type, base, baseCommit, cwd, extraArgs[]

run_review arguments

Argument

Type

Description

Default

mode

interactive|plain|prompt-only

Mirrors the CodeRabbit CLI output format.

plain

type

all|committed|uncommitted

Selects the diff scope passed to CodeRabbit.

all

base

string

Overrides the base branch (--base).

unset

baseCommit

string

Overrides the base commit (--base-commit).

unset

cwd

string

Directory from which the CLI runs; must exist.

server process.cwd()

configFiles

string[]

Pre-configured via CODERRABBIT_MCP_LOCK_CONFIG_FILES (JSON array).

unset

extraArgs

string[]

Appended verbatim to the CLI argv (use sparingly).

unset

  • --no-color is always appended so MCP clients receive plain output.

  • Only mode/type/configFiles can be pre-configured through Codex; all other arguments must be supplied per-tool invocation.

Security & Operating Notes

  • The server never attempts to install CodeRabbit or run coderabbit auth login. Follow the emitted guidance and execute commands manually in your own shell.

  • Codex (or any MCP client) must not run additional commands on its own when an error occurs. Report the guidance back to the user and wait for explicit instructions before retrying.

  • Windows native is unsupported; WSL2 instructions are provided instead. PATH modifications also remain manual.

  • The MCP server does not read Codex’s AGENTS.md dynamically. Keep governance rules in AGENTS.md, and rely on the environment variables above to enforce mode/type.

Development

npm install
npm run build
npm run dev

CLI Smoke Tests

# List tools through the MCP inspector
npx @modelcontextprotocol/inspector \
  --cli node dist/server.js \
  --method tools/list

# Call run_review (plain output against uncommitted changes)
npx @modelcontextprotocol/inspector \
  --cli node dist/server.js \
  --method tools/call \
  --tool-name run_review \
  --tool-arg mode=plain \
  --tool-arg type=uncommitted

# List report:// resources for recent runs
npx @modelcontextprotocol/inspector \
  --cli node dist/server.js \
  --method resources/list

# List prompts
npx @modelcontextprotocol/inspector \
  --cli node dist/server.js \
  --method prompts/list

npm Publish Checklist

npm run build
npm pkg fix
npm version patch   # or minor / major as needed
npm publish --access public
npm view coderabbit-cli-mcp version

Available Tools

1 tool
run_reviewD
ParametersJSON Schema
NameRequiredDescriptionDefault
cwdNo
baseNo
modeNoplain
typeNoall
extraArgsNo
baseCommitNo

TDQS

D1/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Tool has no description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness1/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Tool has no description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool has no description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Tool has no description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose1/5

Does the description clearly state what the tool does and how it differs from similar tools?

Tool has no description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Tool has no description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev0.1.2
    • First observedrun_review

TDQS

D1.7/5.0
Disambiguation5/5

With only one tool, there is no possibility of confusing it with another. The single tool's purpose is unambiguous within the set, even though its description is missing.

Naming Consistency5/5

The tool name 'run_review' follows a clear verb_noun pattern. Since there is only one tool, naming consistency is trivially maintained.

Tool Count2/5

A single tool is extremely thin for a server claiming to represent a CLI. Even a narrow-purpose server typically needs more than one operation to be useful, making this count feel inadequate.

Completeness1/5

The server only offers 'run_review', with no way to retrieve review results, list past reviews, or manage settings. This severely limits the functionality and leaves obvious gaps for any real-world workflow.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    Enables code review through Cursor CLI integration with GPT-5. Provides a cursor.review tool that executes code reviews and returns structured JSON results with automatic audit logging.
    2
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables Claude to perform thorough code reviews by integrating with Codex and Gemini CLIs to provide senior-level feedback on code quality, security, performance, and best practices. Supports reviewing code snippets, individual files, or entire directories with automatic detection of available review tools.
    4
    -
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to perform code reviews by providing access to staged files, git diffs, and repository file content. It allows users to evaluate changes and context within any local git repository before committing or pushing.
    3
    17
    ISC

Latest Blog Posts

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/2001Y/coderabbit-cli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server