Skip to main content
GET
Get MCP server usage by pull request
Use a non-agentic API key to measure which MCP servers and tools contributed context to merged pull requests. Join results to the Metrics Data API using pr_url; usage counts are best-effort telemetry. For MCP setup and review behavior, see the MCP Servers documentation.

Authorizations

x-coderabbitai-api-key
string
header
required

API key for authentication. You can create an API key from the CodeRabbit dashboard.

Headers

x-coderabbitai-api-key
string
required

Query Parameters

org_id
string

Workspace API keys only; scopes the request to one provider organization.

start_date
string<date>
required
end_date
string<date>
required
organization_ids
string

Comma-separated provider organization IDs. Self-hosted only; maximum 10.

repository_ids
string

Comma-separated provider repository IDs; maximum 10.

user_ids
string

Comma-separated provider PR-author IDs; maximum 10.

limit
integer
default:1000
Required range: 1 <= x <= 1000
cursor
string

Opaque next_cursor from the previous response.

Response

MCP server usage for merged pull requests

data
object[]
required
next_cursor
string | null
required