How do I give CodeRabbit or Copilot code review our team's context through MCP?
Both reviewers can call a remote MCP server. Add Unblocked's MCP server (https://getunblocked.com/api/mcpsse) with a team API token in the Authorization header: in CodeRabbit under Connections, in Copilot code review in the repository's MCP settings. Then tell the reviewer to ask Unblocked why the code is the way it is before it comments.
You connect the reviewer to a context engine as a remote MCP server, then tell it to use that server before it comments. Both CodeRabbit and GitHub Copilot code review can call MCP tools during a review. With Unblocked, you add one MCP server, https://getunblocked.com/api/mcpsse, with a team API token in the Authorization header. The reviewer can then ask Unblocked what past PRs, tickets, docs and Slack say about the files in a PR. A context-aware reviewer is an AI code reviewer that looks up why the code is the way it is before it comments. For example, CodeRabbit with Unblocked attached can check whether a setting it wants to remove was added after an incident. Several teams we work with run it this way with CodeRabbit, Copilot code review and in-house review bots.
| CodeRabbit | Copilot code review | |
|---|---|---|
| Where you add the server | Connections page, custom connector | Repository Settings, Copilot, MCP servers |
| How it authenticates | API token option | headers entry reading a COPILOT_MCP_ secret |
| Where the instructions go | Usage guidance field on the connection | .github/copilot-instructions.md or path-specific files |
| How you confirm it called Unblocked | "Additional context used" in the walkthrough | Review session logs from the PR timeline |
| Limits | Tool calls are up to the model | Read-only tools only; no OAuth remote servers |
How do I create the Unblocked API token?#
A team API token is an Unblocked key that belongs to the team, not to one person, so a bot can use it. In the Unblocked web app, go to Settings, then API Tokens, and create one under Team API Tokens. The docs list three values for clients that use a token. The URL is https://getunblocked.com/api/mcpsse. The transport is HTTP. The header is Authorization: Bearer <your token> (Unblocked MCP setup for other clients). The older HTTP+SSE transport is not supported (programmatic access to Unblocked).
However, pick the data sources carefully. A team token can reach every document in the sources you select for it. Data Shield filters answers for people, not for bots, so the token itself is the boundary. Select only what the reviewer needs.
How do I add the server to CodeRabbit or Copilot?#
CodeRabbit#
Open the Connections page in the CodeRabbit app and choose Add connection, then the custom connector. Enter the Unblocked URL and choose API token authentication. Pick which tools CodeRabbit may use, and save. Add the connection to the Review scope so pull request reviews can use it (CodeRabbit MCP docs). Tool use is up to the model. In CodeRabbit's words, "A configured connection does not guarantee a tool call on every review". When it does call Unblocked, the call shows under "Additional context used" in the review walkthrough.
Copilot code review#
Yes, it can use MCP servers. GitHub made this generally available on July 29, 2026, for Copilot Pro, Pro+, Business and Enterprise. GitHub adds that "all MCP tool calls performed by Copilot code review will be limited to read-only" (GitHub changelog). In the repository, go to Settings, then Copilot, then MCP servers. Paste a JSON config like this (GitHub: configure MCP servers):
json{
"mcpServers": {
"unblocked": {
"type": "http",
"url": "https://getunblocked.com/api/mcpsse",
"tools": ["context_research", "context_get_urls"],
"headers": { "Authorization": "$COPILOT_MCP_UNBLOCKED_AUTH" }
}
}
}Store Bearer <your token> as an Agents secret named COPILOT_MCP_UNBLOCKED_AUTH. GitHub requires the COPILOT_MCP_ prefix. The setting "Allow Copilot to use MCP tools when reviewing pull requests" is on by default under Settings, Copilot, Code review. GitHub does not support remote servers that use OAuth in this config, so you use the API token. Code review only calls tools that set readOnlyHint to true, and Unblocked's tools are read-only. To confirm, request a review, open the linked review session from the PR timeline, and check the logs for the Unblocked tools.
What should the reviewer's instructions say?#
A connected server does nothing if the reviewer never calls it. Usage guidance is CodeRabbit's field for telling the model when and how to use an MCP server. It supports placeholders such as {repo} and {pr} (CodeRabbit MCP docs). In Copilot code review, put the same text in .github/copilot-instructions.md. For areas such as deploy config, use path-specific .github/instructions/**/*.instructions.md files (GitHub: use Copilot code review).
The teams we work with ask about prior decisions, the intent in the linked ticket, and earlier review threads on the same files. For example, a reviewer might ask: "This PR removes a config value from production charts. What prior decisions apply?" Instructions that produce that behavior look like this:
textBefore commenting on a change, call the Unblocked context_research tool.
Ask: what prior decisions, incidents or review threads apply to the files
in this PR, and what does the linked ticket say the change is for?
If a past decision explains the current code, cite it instead of
suggesting a change. If the PR reverses a past decision, say which one
and link it. If Unblocked finds nothing relevant, review the diff as usual.
Do not comment on style the linters already cover.Keep a human in the loop: an engineer still accepts or dismisses each comment. The limit: context only helps if someone wrote the decision down in a PR, ticket, doc or Slack thread that Unblocked indexes. A decision made in a hallway is still invisible.
What changes in the review, and is there a built-in option?#
Without context, a reviewer flags deliberate choices as mistakes. A July 2026 study of 31,073 CodeRabbit reviews across 239 GitHub repositories found 56.3% were rejected. The authors point mainly to invalid suggestions and to "misalignment with developer intent and coding practices" (Lin et al., arXiv 2607.03316). Their methodology: mining developer replies to each review. Rejected comments teach engineers to stop reading, which our filtering noisy AI review comments answer covers. With context, the reviewer can link the PR that added a setting after an incident, instead of asking you to remove it. The tools also differ in how they use context, as compared in best AI code review tools in 2026. Why one server and not separate MCP servers for GitHub, Jira and Slack? See a pile of MCP connectors is not a context engine. To see how Unblocked weighs code against older docs, read inside the Unblocked context engine.
If you would rather not wire this up, Unblocked Code Review does it built in. It reviews pull requests in GitHub, GitLab, Bitbucket and Azure DevOps (Unblocked Code Review docs). If you are weighing a switch away from CodeRabbit instead, see a CodeRabbit alternative that knows product decisions. Hector (Ivan) Cabrera, Senior Software Engineer at Drata, said this about Unblocked's reviews. "It's impressive how Unblocked uses real application context to provide accurate and relevant feedback in code reviews, making it a strong starting point for other reviewers to initiate discussions."


