# CodeRabbit MCP for AI Agents AI Agent Connect

> CodeRabbit MCP lets you manage your AI code review infrastructure through any AI agent. You can handle seat assignments, manage user roles, pull PR performance metrics, and pull audit logs for compliance without leaving your chat interface. It's built for teams that need to scale their AI-driven code quality checks across large engineering organizations.

## Overview
- **Category:** ai-frontier
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_PMcRlSWUfPE40MnPxowwrCoT2UjR21cc7zb3FshU/ai-agent-connect
- **Tags:** ai-code-review, pull-request-automation, code-quality, security-analysis, team-productivity, dev-workflow

## Description

Managing a team's AI code review setup usually means jumping between different dashboards to toggle seats or check how many pull requests actually got reviewed. This Connector changes that by bringing those administrative tasks directly into your AI client. Instead of hunting for buttons, you can just ask your agent to see who has a seat or to promote a new admin. It handles the heavy lifting of bulk seat assignments and role changes, making it way easier to manage access for hundreds of developers at once. You can also pull specific metrics on pull request complexity and review times to see if your team's code quality is actually improving. For compliance-heavy environments, it pulls tamper-resistant audit logs so you can track exactly who changed what and when. Having this in your workflow through Vinkius means you spend less time on manual configuration and more time on actual engineering.

## Tools

### list_users
List all users in the CodeRabbit organization. You can filter the results by seat status or specific roles.

### assign_seats
Assign CodeRabbit seats to up to 500 users in a single request to make onboarding large teams much faster.

### get_audit_logs
Retrieve organization audit logs for compliance reporting. It provides a tamper-resistant record of all admin actions.

### demote_users
Demote users from admin to member role in bulk. Use this to quickly tighten permissions across your organization.

### get_seat_mode
Check if your organization is currently using automatic or manual seat assignment. This helps you verify your setup.

### get_metrics
Pull PR review metrics like complexity scores and review times for any date range to analyze team productivity.

### promote_users
Promote users to the admin role. Quickly grant elevated permissions to your team leads or platform engineers.

### unassign_seats
Remove CodeRabbit seats from users without deleting their accounts. This helps you reclaim seats from inactive members.

### update_seat_mode
Update the seat assignment mode for your organization. This allows you to switch between automatic and manual modes.

## Prompt Examples

**Prompt:** 
```
Who doesn't have a seat assigned right now?
```

**Response:** 
```
I've checked your organization and found 6 members who currently don't have a CodeRabbit seat. Would you like me to assign seats to them?
```

**Prompt:** 
```
What were our review metrics for last month?
```

**Response:** 
```
Here are the metrics for last month:

- **Total PRs**: 124
- **Avg Review Time**: 5.2 mins
- **Avg Complexity**: 6.8/10
- **Suggestions Accepted**: 72%
```

**Prompt:** 
```
Show me the admin logs from yesterday.
```

**Response:** 
```
I found 3 admin actions from yesterday:

1. **09:15**: user_a promoted user_b to admin
2. **14:30**: seat_mode changed to manual
3. **16:45**: 50 seats assigned to new_dev_group
```

## Capabilities

### Bulk seat assignment
Assign CodeRabbit seats to hundreds of users in a single request.

### Compliance audit retrieval
Pull tamper-resistant records of all administrative actions.

### Bulk role management
Promote or demote users to admin roles across the organization.

### PR performance tracking
Get complexity scores and review times for any date range.

### Seat mode configuration
Switch between automatic and manual seat assignment modes.

### Member filtering
List all organization members filtered by role or seat status.

## Use Cases

### Onboarding 50 new hires
An admin asks the agent to assign seats to all new users at once using `assign_seats` to avoid manual entry.

### Quarterly performance review
A manager asks for a breakdown of PR review times and complexity scores for the last 90 days using `get_metrics`.

### Security audit verification
A compliance officer requests a list of all admin role changes from the last week using `get_audit_logs`.

### Access cleanup for inactive members
An admin asks the agent to find all members without seats and remove seats from inactive users using `list_users` and `unassign_seats`.

## Benefits

- Manage seats in bulk using `assign_seats` to quickly onboard new developers. You can handle up to 500 users in a single request, which removes the need to click through the dashboard for every new hire.
- Pull compliance-ready audit logs with `get_audit_logs` to satisfy security requirements instantly. It provides a tamper-resistant record of all administrative actions for your SIEM integration.
- Track team performance using `get_metrics` to see real data on PR complexity and review times. This helps you understand how code quality is evolving over specific date ranges.
- Control permissions easily with `promote_users` and `demote_users` to keep your admin group lean. You can handle these role changes in bulk to manage access for your entire engineering org.
- Switch between assignment modes using `update_seat_mode` to fit your team's specific workflow needs. You can toggle between automatic and manual modes to give your team more control.
- Filter your entire member list with `list_users` to quickly identify who needs access. This makes it easy to see who is currently assigned a seat or who holds an admin role.

## How It Works

The bottom line is you get a conversational interface to manage your entire CodeRabbit infrastructure.

1. Connect your CodeRabbit organization to the Connector.
2. Provide your API Key from the organization settings.
3. Ask your agent to manage seats, roles, or metrics.

## Frequently Asked Questions

**How does CodeRabbit MCP help with team scaling?**
It allows you to manage seats for hundreds of users at once. Instead of manual setup for every hire, you can use your agent to bulk assign seats and manage roles as your team grows.

**Can I use CodeRabbit MCP to check PR review times?**
Yes, you can pull metrics for any date range. This gives you visibility into how long reviews are taking and the complexity of the code being submitted.

**Does CodeRabbit MCP support audit logs for security?**
It provides access to tamper-resistant audit logs. This is perfect for security teams who need to see a history of administrative actions and role changes.

**How do I manage roles with CodeRabbit MCP?**
You can use your agent to promote or demote users to admin roles. This makes it easy to manage permissions across your organization without jumping into the dashboard.

**Can CodeRabbit MCP handle bulk seat changes?**
Yes, it can handle up to 500 user IDs in a single request. This is a major time saver for engineering managers who need to update access for large groups quickly.

**Does CodeRabbit MCP help with compliance?**
It helps by providing easy access to organization audit logs. You can query these logs through your AI agent to satisfy compliance reporting requirements.

**Can I see how productive my team's code review process is over the last month?**
Yes! Use the `get_metrics` tool with a date range (e.g., 2026-03-01 to 2026-03-31). It returns complexity scores, average review times, and comment breakdowns categorized by severity for all merged PRs.

**How do I enable AI code reviews for new team members?**
First run `list_users` with `seat_filter=unassigned` to find members without seats. Then use `assign_seats` with their user IDs to grant them AI-powered code review access instantly.

**Can I audit who made administrative changes in the organization?**
Absolutely. The `get_audit_logs` tool returns a complete, tamper-resistant trail of all admin actions including seat assignments, role changes, configuration updates, and API key operations. You can filter by action type and date range.