- DATA
- TRENDS
- HUMAN
- REPORT
Short answer
How can I track code review metrics with my AI?
You can ask your agent to pull PR complexity scores and review times for any date range you choose. It uses the get_metrics tool to fetch this data directly from CodeRabbit. You'll get a breakdown of how your review process is performing.
The data you'll receive.
Where your metrics land.
Your agent pulls specific data points from CodeRabbit based on your questions.
DATA
Specific PR scores
The agent pulls complexity and timing data for the exact pull requests you ask about. You get the raw numbers without digging through dashboards.
TRENDS
Time-based analysis
Ask for metrics over a week, a month, or a specific date range. The agent aggregates the data to show how review speeds are changing.
HUMAN
Manual review needed
The AI provides the numbers, but you decide if a spike in complexity requires a team meeting or a change in process. It doesn't make policy decisions for you.
REPORT
Custom summaries
You can ask the agent to format the retrieved metrics into a summary. This makes it easy to paste performance data into a status update or a Slack message.
The workflow
What your AI does when the request arrives.
The agent acts as a bridge between your chat interface and the CodeRabbit API.
Identify the request
Your agent parses your question to determine if you are looking for complexity scores, review times, or a specific date range.
get_metricsFetch the data
The agent calls the specific tool to pull the requested metrics from your CodeRabbit account.
get_metricsFilter and aggregate
If you asked for a specific timeframe, the agent organizes the raw data to match those dates.
get_metricsDeliver the answer
The agent presents the final numbers or trends in a clear, readable format in your chat window.
get_metrics
Try it
Copy these to start.
Use these prompts to begin querying your data.
Starting points
Replace the repo names and dates with your actual project details.
CodeRabbit Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_PMcRlSWUfPE40MnPxowwrCoT2UjR21cc7zb3FshU/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — CodeRabbit capabilities are ready to use.
{
"mcpServers": {
"coderabbit-mcp": {
"url": "https://edge.vinkius.com/vk_preview_PMcRlSWUfPE40MnPxowwrCoT2UjR21cc7zb3FshU/mcp"
}
}
}What was the average PR complexity score for the 'api-gateway' repo last week?
Show me the review turnaround times for all PRs in 'frontend-app' between October 1st and October 15th.
Are PR complexity scores increasing or decreasing for the 'auth-service' repo this month?
List the top 5 most complex pull requests from the 'data-pipeline' repo in the last 30 days.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect CodeRabbit once, then ask.
You only need to link your account once. Your credentials stay encrypted, and you can immediately start asking questions in any MCP-compatible client.
Connect CodeRabbit to your AIFAQ
How this task behaves.
- 01
Can the AI change my CodeRabbit settings?
No. The agent can only read metrics through the get_metrics tool. It cannot modify your repository settings or configuration.
- 02
Can I get metrics for a repository I don't have access to?
No. The agent can only access data from repositories that your CodeRabbit account is authorized to see.
- 03
Does the AI delete any pull request data?
No. The agent has no capability to delete or modify pull requests or any other data in CodeRabbit.
- 04
Can the AI write code reviews for me?
No. This specific task is for pulling metrics and data. It does not perform the actual code analysis or commenting.
- 05
How does the AI know which date range to use?
It uses the specific dates you provide in your prompt. If you don't provide a range, it will ask you for one.
More questions about CodeRabbit? See everything the CodeRabbit Connector can do
Connect CodeRabbit to Claude, Cursor, ChatGPT & more
