This page is about the MegaLens connector inside your coding tool. To review pull requests, use the GitHub Action.
MCP setupIncluded on every plan

Your AI agent writes the code. MegaLens checks it before it reaches your git history.

MegaLens adds planning, research, code review, security audit and diff review to your IDE, without replacing your existing workflow. Works with Claude Code, Codex CLI, Cursor, Gemini CLI and Lovable, and with any tool that supports OAuth MCP connectors, such as ChatGPT and Claude.ai. GitHub Copilot is coming soon.

In your coding tool, reviewers from different AI companies check your code on their own, and a second AI check confirms any quoted line appears in the code you sent. Looks for bugs that change what your app does, not formatting. In your tool it runs when you or your AI tool ask for a review, so it can catch problems before a branch is pushed. For every pull request, add the GitHub Action.

MegaLens reviews. Your IDE decides what to change.

A check before you push

MegaLens can flag problems before a branch is pushed. A second AI check confirms any quoted line appears in the code you sent.

Reviewers from different companies

MegaLens selects up to four reviewers from different AI companies. Each works on its own. Each result names the companies whose models took part.

3 reviews free, no card

Then 5 credits for $2.99. You can also choose a plan or pay as you go.

How it works

Three steps to use MegaLens in your IDE workflows.

01

Connect MegaLens to your IDE

Add MegaLens in your AI tool’s connection settings.

02

Ask for a review in your AI chat

Use MegaLens for planning, research, code review and security audits.

03

Your IDE makes the final call

Read the findings with your AI assistant and decide what to change.

Workflow fit

MegaLens complements your IDE.

MegaLens runs the review on separate models, away from your IDE's own model.

◈

Claude Code

Already in flow

Claude is already in the driver seat

MegaLens adds

Review from outside the main model family

Result

MegaLens adds planning and audits. Claude Code decides what to change.

G

Codex (OpenAI)

Already in flow

Codex is already driving the session

MegaLens adds

Targeted review without replacing Codex

Result

MegaLens runs the review in parallel. Codex decides what to do with it.

C

Cursor, Gemini CLI, Lovable

Already in flow

Your editor already has a primary assistant

MegaLens adds

Planning, audit and research.

Result

MegaLens complements your primary assistant instead of becoming another IDE. Your editor remains the final decision-maker.

Setup

One setup, for every plan

Connect MegaLens once and use the same editor settings with any plan.

Using ChatGPT, Claude.ai or another tool with OAuth connectors? You need no token or config block: paste https://megalens.ai/api/mcp as a connector, then sign in and approve. See the steps.

1

Create your MegaLens account

Start free, or sign in during setup if you already have an account.

2

Add MegaLens to your IDE

Run setup, choose your editor and approve the connection in your browser.

Setup command
npx megalens-mcp setup

For manual setup, get an Editor token from your MegaLens settings and use the example for your editor.

Claude Code

Run this once. The --scope user flag makes MegaLens available in every project:

Claude Code setup command
claude mcp add --transport http --scope user megalens \
  "https://megalens.ai/api/mcp?ide=claude-code" \
  --header "Authorization: Bearer ml_tok_your_token_here"

Or edit ~/.claude.json yourself:

Claude Code configuration
{
  "mcpServers": {
    "megalens": {
      "type": "http",
      "url": "https://megalens.ai/api/mcp?ide=claude-code",
      "headers": {
        "Authorization": "Bearer ml_tok_your_token_here"
      }
    }
  }
}

Codex CLI

Add to ~/.codex/config.toml. It is TOML, not JSON:

Codex configuration
[mcp_servers.megalens]
url = "https://megalens.ai/api/mcp?ide=codex"
http_headers = { "Authorization" = "Bearer ml_tok_your_token_here" }

Cursor, Gemini CLI and Lovable each use a different format. Copy the exact block from Cursor, Gemini CLI or Lovable. GitHub Copilot is coming soon.

3

Choose how reviews are paid

a.

A plan. Plus $19 a month for 20 credits, Pro $69 a month for 80 credits, Max $199 a month for 250 credits. Reviews from the connector, ChatGPT, Lovable and the REST API use 1 to 3 credits, depending on the size of what you send. Research and planning use 2 to 6. See plans.

b.

Pay as you go. Prepay credits, no provider key required. The current rate is on the pricing page.

You can use the same editor settings with either payment option.

4

Start asking for targeted work

MegaLens tools appear after you restart your IDE. Ask for specific work:

> Use megalens to audit the auth middleware for security issues
> Use megalens to review this diff before I merge

Core scopes

Five scopes in one tool.

Planning, research, code intelligence, security audit and diff audit.

Planning

Use MegaLens for serious planning passes before commits, migrations, infra changes, or product decisions.

Research

Ask MegaLens to research a question with models from different companies.

Code review

Code review works on the actual files your IDE sends, so ask it to send the code, not a summary. You can also ask it for architecture and tradeoff checks.

Security audit

Useful for catching security issues before release.

Diff audit

Run a last review of your diff before you merge.

A check before AI mistakes reach your git history.

Your IDE reads the findings and decides what to fix.