Skip to content

Context7 Platform -- Up-to-date docs for AI agents

docs: code rabbit integration (#1104)

Enes Gules679c67428bf2
diff --git a/docs/docs.json b/docs/docs.json
index 5b620428..9e41ef5a 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -36,6 +36,10 @@
"group": "API Reference",
"openapi": "openapi.json"
},
+ {
+ "group": "Integrations",
+ "pages": ["integrations/code-rabbit"]
+ },
{
"group": "Resources",
"pages": ["security", "troubleshooting", "contact"]
diff --git a/docs/images/integrations/coderabbit/add-server-modal.png b/docs/images/integrations/coderabbit/add-server-modal.png
new file mode 100644
index 00000000..df08e328
Binary files /dev/null and b/docs/images/integrations/coderabbit/add-server-modal.png differ
diff --git a/docs/images/integrations/coderabbit/integrations-tab.png b/docs/images/integrations/coderabbit/integrations-tab.png
new file mode 100644
index 00000000..6e3b09f6
Binary files /dev/null and b/docs/images/integrations/coderabbit/integrations-tab.png differ
diff --git a/docs/images/integrations/coderabbit/server-connected.png b/docs/images/integrations/coderabbit/server-connected.png
new file mode 100644
index 00000000..cfccbd06
Binary files /dev/null and b/docs/images/integrations/coderabbit/server-connected.png differ
diff --git a/docs/integrations/code-rabbit.mdx b/docs/integrations/code-rabbit.mdx
new file mode 100644
index 00000000..bbaf96a0
--- /dev/null
+++ b/docs/integrations/code-rabbit.mdx
@@ -0,0 +1,57 @@
+---
+title: CodeRabbit
+sidebarTitle: CodeRabbit
+description: AI-powered code review tool
+---
+
+[CodeRabbit](https://coderabbit.ai) is an AI-powered code review tool that automatically reviews pull requests. By connecting Context7 as an MCP server, CodeRabbit can access up-to-date library documentation during reviews, helping it verify implementations against the latest API references and best practices.
+
+## Setup
+
+<Steps>
+ <Step title="Navigate to MCP Servers">
+ Go to your [CodeRabbit dashboard](https://app.coderabbit.ai) and navigate to **Integrations** → **MCP Servers**.
+
+ ![Integrations tab](/images/integrations/coderabbit/integrations-tab.png)
+ </Step>
+ <Step title="Add Context7">
+ Click the **Add** button next to **Context7** MCP server.
+
+ Add the following header for higher rate limits:
+
+ | Header | Value |
+ |--------|-------|
+ | `CONTEXT7_API_KEY` | Your API key from the [Context7 dashboard](https://context7.com/dashboard) |
+
+ ```json
+ {
+ "CONTEXT7_API_KEY": "YOUR_API_KEY"
+ }
+ ```
+
+ ![Add server modal](/images/integrations/coderabbit/add-server-modal.png)
+ </Step>
+ <Step title="Connect">
+ Click the **Connect** button to connect the server.
+
+ ![Server connected](/images/integrations/coderabbit/server-connected.png)
+ </Step>
+</Steps>
+
+## Usage Guidance
+
+In the **Usage Guidance** field, you can instruct CodeRabbit on how to use Context7 during reviews. For example:
+
+```
+Use Context7 to look up documentation for any libraries used in the code being reviewed.
+Verify that API usage matches the latest documentation and flag any deprecated patterns.
+```
+
+## How It Works
+
+Once connected, CodeRabbit will query Context7 for relevant library documentation when reviewing pull requests. This helps CodeRabbit:
+
+- Verify correct API usage against the latest documentation
+- Identify deprecated methods or patterns
+- Suggest improvements based on library best practices
+- Provide more accurate and informed review comments