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

Lovable builds it. MegaLens checks it.

Ask Lovable to send its code to MegaLens. MegaLens selects up to four reviewers from different AI companies to read it, and a second AI check confirms the quoted line appears in the code you sent. 3 reviews free, no card. Applies to Standard reviews.

Good to know

MegaLens reviews what Lovable sends it. When you ask for a review, Lovable picks the files and passes them across. The reviewers check that code independently, and a second AI check confirms the quoted line appears in the code you sent.

MegaLens sees only what Lovable sends. It has no access to your files, your repository or your database. It reviews the code Lovable sends in that one message, which is why the prompt below asks for the file contents on purpose.

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

It runs when you ask. Looks for bugs that change what your app does, not formatting. For every pull request, add the GitHub Action.

Connect it. Three steps.

1. Get your token

Sign in and open your setup page. Tick Other and continue. Under that section you will see a box headed Using a web builder like Lovable? Press Copy token only.

That button copies the token on its own, which is what Lovable's form wants. Do not type the word Bearer in front of it here. Lovable adds that itself. The token is shown once, when it is made, so keep it somewhere safe.

2. Add MegaLens in Lovable

In your Lovable project, open the MCP connector settings and add a custom server. Paste this as the server URL:

Server URL
https://megalens.ai/api/mcp?ide=lovable

Choose the Bearer token authentication option, and paste your token into the token field. Save it.

Keep the whole URL exactly as it is, including the ?ide=lovable on the end. That part only tells us the review came from Lovable. It does not change the review.

3. Ask for a review

Type this in your Lovable chat.

“Review my latest changes with MegaLens. Send the code itself.”

The last sentence matters. It tells Lovable to send the code itself rather than a list of file names, and a list of names gives the reviewers nothing to read.

Replace “my latest changes” with the file or feature you want reviewed. A review takes a few minutes, because the reviewers read the code and then a judge checks their findings against it.

3 reviews free, no card

Try a review on your own code to see what MegaLens reports.

After that, pick a plan with credits included, or buy pay as you go credits. Plans are on the pricing page, credits on your billing page.

If something does not work

Lovable says it is not authorised

The token is usually the cause. Copy it again with Copy token only and paste it on its own, with no spaces before or after.

The review comes back with nothing much in it

If Lovable sent only file names, ask again and include the sentence “Send the code itself.”

It is still not working

Email [email protected] and say what you typed and what came back. A broken review is more useful to us right now than a working one.