This page is about the MegaLens connector inside your coding tool. To review pull requests, use the GitHub Action.
Integrations/Gemini CLI

MegaLens + Gemini CLI

Gemini CLI writes the code and MegaLens checks it before it reaches your git history. Gemini decides what to apply.

How it works

Gemini CLI stays in charge. It writes the code, sends it to MegaLens for review, gets a structured list of findings back, and decides what to act on. MegaLens never touches the codebase directly.

1

Gemini CLI talks to MegaLens over MCP

Type “Review my changes with MegaLens” in Gemini CLI. It sends the code you ask it to review.

2

Models from different companies review the code

MegaLens selects up to four reviewers from different AI companies. They review your code independently.

3

A judge checks each finding against the code

A finding is verified only when the judge can quote the code that proves it. Otherwise it is marked unverified or disputed. Each result names the companies whose models took part.

4

Gemini receives the list and decides

The structured findings, severity levels, and fix roadmap go back to Gemini CLI. Gemini decides what to apply, modify, or skip.

Setup

The quickest way is the setup wizard. It detects Gemini CLI and writes the config for you.

Setup command
npx megalens-mcp setup

Detects Gemini CLI, asks for your token, and writes the config below automatically. Or paste this into ~/.gemini/settings.json yourself:

Gemini CLI configuration
{
  "mcpServers": {
    "megalens": {
      "httpUrl": "https://megalens.ai/api/mcp?ide=gemini-cli",
      "headers": {
        "Authorization": "Bearer ml_tok_your_token_here"
      }
    }
  }
}

Get your token at megalens.ai/app/settings/mcp. Setup wizard source: github.com/megalens/mcp.

Good to know

A few things to keep in mind before your first review.

1.

A review takes a few minutes and checks the code and context your tool sends.

2.

Looks for bugs that change what your app does, not formatting: logic, security and behaviour bugs.

3.

MegaLens runs when you or Gemini ask for a review. For every pull request, add the GitHub Action.

4.

You stay in control. MegaLens reports what could break, and you decide what to change.

Pricing

Standard reviews

Free to start

3 reviews free, no card. Applies to Standard reviews. Then 5 credits for $2.99.

Plus, Pro and Max

Monthly plans

Plans: Plus $19 a month for 20 credits, Pro $69 a month for 80 credits, Max $199 a month for 250 credits. Or pay as you go at $1.25 a credit, from $5. A Standard review uses 1 credit and a Deep review uses 8. Cancel any time.

How model costs are paid

On a plan, credits come with it every month. Otherwise, pay as you go with credits that never expire. See all plans and rates

Gemini writes the code. MegaLens checks it.

Add one config entry, and reviewers from other AI companies check the code. Gemini stays in control.