Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Code review by AI models from different companies, usually two. Shows where they agree and disagree.
Jump to setup instructionsUse the publisher endpoint below to connect directly. This snippet does not include provider authentication; complete any required credentials or OAuth in your client. A platform key does not authorize an external MCP.
Editor
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "https://megalens.ai/api/mcp"
}
}
}Merge the entry into your existing mcpServers object. Restart Cursor after saving.
Config available Settings can be generated; we haven’t run them.
Fetched from the repository for this visit.
MegaLens is a second reviewer for your code. It reads your change and the code around it and tells you what could break. Use it alongside your current reviewer.
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.
3 reviews free, no card. Applies to Standard reviews.
npx megalens-mcp setup
The setup wizard:
After you approve, the terminal shows the account you approved with and asks you to confirm it before any token is made. Setup never reads or reuses a token already in a config: every run makes a new editor token through the browser, and every tool you choose gets it. If you keep a tool that already has MegaLens, setup will not replace your editor token (that tool may be using it): if the browser approval would replace it, setup stops before anything is created or revoked. A config file inside a git repository (and not ignored there) is only written if you say yes.
npx megalens-mcp setup --manual keeps the old way: paste a token from
MCP Setup. The token is not shown while you paste it.
| Tool | Status | Config File | Auto-detected |
|---|---|---|---|
| Claude Code | Supported | ~/.claude.json | Yes |
| Codex CLI | Supported | ~/.codex/config.toml | Yes |
| Cursor | Supported | ~/.cursor/mcp.json | Yes |
| Gemini CLI | Supported | ~/.gemini/settings.json | Yes |
| Lovable | Supported | None (a form in Lovable) | No, see below |
| ChatGPT, Claude.ai and other OAuth connectors | Any tool that supports OAuth MCP connectors | None (a connector in the app) | No, see below |
| GitHub Copilot (VS Code) | Coming soon, not supported yet | Your VS Code user mcp.json (Linux ~/.config/Code/User/mcp.json, macOS ~/Library/Application Support/Code/User/mcp.json, Windows %APPDATA%\Code\User\mcp.json) | Only if that file already exists. Never the project's .vscode/mcp.json: that file is often committed, and the token would go with it |
If no tool is detected, the wizard lets you pick one and creates the config file. The wizard can also write configs for Windsurf and Grok Build. Those are not supported or tested.
Lovable needs no config file and no wizard. Paste the server URL and your token into Lovable's MCP connector form. Steps: megalens.ai/integrations/lovable
ChatGPT, Claude.ai and other OAuth connectors need no token and no wizard. Add
https://megalens.ai/api/mcp as a connector, then sign in to MegaLens and approve. Steps:
megalens.ai/integrations/oauth-connectors
The tools use two config languages and three different top-level keys, which is why the wizard exists.
Keep the ?ide= on each URL. It tells MegaLens which tool the review came from. It does not
change how your review runs: it is the same whichever tool you call it from.
Run this once. The --scope user flag makes MegaLens available in every project:
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 in .mcp.json (project) / ~/.claude.json (user):
{
"mcpServers": {
"megalens": {
"type": "http",
"url": "https://megalens.ai/api/mcp?ide=claude-code",
"headers": {
"Authorization": "Bearer ml_tok_your_token_here"
}
}
}
}
~/.cursor/mcp.json or .cursor/mcp.json. No type field. Cursor does not use one.
npx megalens-mcp setup writes only ~/.cursor/mcp.json. It never writes a project .cursor/mcp.json (those are often committed). If one in the current folder or above has a MegaLens entry, setup will not replace your editor token, so that project keeps working. Before any replace, setup also asks in the terminal (default no).
The entry:
{
"mcpServers": {
"megalens": {
"url": "https://megalens.ai/api/mcp?ide=cursor",
"headers": {
"Authorization": "Bearer ml_tok_your_token_here"
}
}
}
}
~/.gemini/settings.json. Gemini CLI uses httpUrl, not url:
{
"mcpServers": {
"megalens": {
"httpUrl": "https://megalens.ai/api/mcp?ide=gemini-cli",
"headers": {
"Authorization": "Bearer ml_tok_your_token_here"
}
}
}
}
GitHub Copilot is coming soon. If you want to try it early, use your VS Code user mcp.json (see the table above), not the project's .vscode/mcp.json, which is often committed with the project. The top-level key
is servers, not mcpServers. A config written for Claude Code or Cursor will not be read here:
{
"servers": {
"megalens": {
"type": "http",
"url": "https://megalens.ai/api/mcp?ide=copilot",
"headers": {
"Authorization": "Bearer ml_tok_your_token_here"
}
}
}
}
~/.codex/config.toml or .codex/config.toml. TOML, not JSON:
[mcp_servers.megalens]
url = "https://megalens.ai/api/mcp?ide=codex"
http_headers = { "Authorization" = "Bearer ml_tok_your_token_here" }
3 reviews free, no card. Applies to Standard reviews. After that, a review uses credits.
See current pricing.
| Command | Description |
|---|---|
megalens-mcp setup | Browser sign-in; the token goes straight into your tools' configs |
megalens-mcp setup --manual | Same, but you paste a token |
megalens-mcp setup codex | Interactive Codex setup (config.toml + AGENTS.md) |
megalens-mcp setup claude-code | Interactive Claude Code setup (writes ~/.claude.json directly + CLAUDE.md) |
megalens-mcp setup antigravity | Interactive Antigravity setup (writes ~/.gemini/config/mcp_config.json directly + GEMINI.md), alias setup agy |
megalens-mcp validate | Test your token connectivity |
megalens-mcp config | Show current config status |
setup codexUsage:
npx megalens-mcp setup codex [--replace-token] [--remove-line] [--dry-run] [-h|--help]
$CODEX_HOME if set, otherwise ~/.codex.MEGALENS_TOKEN from the environment or prompts for your token without echoing it.--replace-token: updates http_headers in an existing [mcp_servers.megalens] table.--remove-line: removes the MegaLens review lines from $CODEX_HOME/AGENTS.md after confirmation, saving a .bak-* backup first.--dry-run: previews changes without modifying any files.What it writes:
$CODEX_HOME/config.toml: adds [mcp_servers.megalens] with url = "https://megalens.ai/api/mcp?ide=codex" and http_headers = { "Authorization" = "Bearer <token>" } (or updates http_headers with --replace-token). Writes atomically with 0600 permissions (tightening existing config.toml files to 0600 when the token is written) and saves a .bak-* backup before editing an existing file.$CODEX_HOME/AGENTS.md. They limit MegaLens review offers to one per task and skip them for MegaLens fix prompts or requests to just fix it. The agent waits for your yes before running a review it offered.
Saves a .bak-* backup before editing an existing file. If $CODEX_HOME/AGENTS.override.md exists, prints a note that Codex may prefer it.Consent:
--yes is not supported). When run without a TTY, it writes nothing and prints manual setup steps.y at separate confirmation prompts (y/n for config.toml, y/N for AGENTS.md). Pending stdin type-ahead is discarded before each prompt, and Ctrl-C aborts the run with exit code 130.setup claude-codeUsage:
npx megalens-mcp setup claude-code [--remove-line] [--dry-run] [-h|--help]
$CLAUDE_CONFIG_DIR if set, otherwise ~/.claude, for CLAUDE.md, and $CLAUDE_CONFIG_DIR/.claude.json (or ~/.claude.json) for the MCP config.MEGALENS_TOKEN from the environment or prompts for your verified Editor token (default label) without echoing it.0600, preserving existing settings and servers; never passes the token in child-process arguments). Backups of files inside git repositories are stored outside the repository.$CLAUDE_CONFIG_DIR/CLAUDE.md (or ~/.claude/CLAUDE.md), saving a .bak-* backup and preserving line endings and permissions. Use --remove-line to remove those lines later.setup antigravity (alias setup agy)Usage:
npx megalens-mcp setup antigravity [--remove-line] [--dry-run] [-h|--help]
npx megalens-mcp setup agy [--remove-line] [--dry-run] [-h|--help]
MEGALENS_TOKEN from the environment or prompts for your verified Editor token (default label) without echoing it.~/.gemini/config/mcp_config.json. If that file is invalid JSON, leaves everything for Antigravity untouched and says so.~/.gemini/config/mcp_config.json directly (atomic, mode 0600, preserving existing settings and servers; never passes the token in child-process arguments). Backups of files inside git repositories are stored outside the repository.~/.gemini/GEMINI.md, saving a .bak-* backup and preserving line endings and permissions. Gemini CLI also reads ~/.gemini/GEMINI.md, so those lines affect Gemini CLI too. Use --remove-line to remove those lines later.You ask for a review. MegaLens reads the change and related files with read-only tools and returns one findings list. Each finding says what is wrong, how it would fail, and where.
MegaLens reports; it does not change your code. Your own tool stays the one that decides what to do next. Results vary from run to run, so use MegaLens alongside your current reviewer.
Loading reviews...
GitHub freshness not yet checked. Recently viewed repositories target hourly refresh.
For maintainers
Send GitHub readers straight to setup instructions for their client. Copy the Markdown into your README; no account required.
[](https://www.mcpchannel.ai/discover/mega-lens?via=readme-badge#setup)