MegaLens

ai.megalens由 megalens.ai 發布官方發布者v1.0.0更新於 Nov 2, 2026

Code review by AI models from different companies, usually two. Shows where they agree and disagree.

已驗證Streamable HTTP可網頁執行開發者工具AI 與機器學習

概覽

AI 產生的概覽

MegaLens 以來自不同公司的多個 AI 模型組成評審團進行程式碼審查,並回報它們一致與分歧之處。

可以做什麼
  • 把程式碼提交給最多四個來自不同公司的 AI 模型,由它們各自獨立審查。
  • 回傳彙整結果,說明各模型在哪裡一致、在哪裡分歧,並列出實際參與的模型。
  • 若隨請求附上你自己的評估,結果還會指出評審團發現而你未發現的問題。
  • 提供輔助指令:自動偵測已安裝的工具、寫入設定、驗證權杖連線並顯示設定狀態。
適用情境
當你希望在既有的 AI 程式開發工具中,取得多個獨立模型對程式碼的第二意見,並看到它們之間的分歧而非單一結論時適用。首次審查免費,方便先試用再決定是否付費。
執行需求
遠端 MCP 端點 megalens.ai,需以從 MegaLens 設定頁取得的 Authorization bearer 權杖進行驗證。需要 MegaLens 帳號。選用的安裝精靈需要 Node.js 18 以上版本;手動設定則無需任何相依套件。可選擇提供 OpenRouter 金鑰標頭以自備金鑰。
安裝前請注意
Authorization bearer 權杖屬於機密,不應寫入共用設定檔。程式碼會傳送給 MegaLens 及第三方模型供應商。付費使用會產生費用:按量付費額度需預先儲值,自備金鑰時則直接向 OpenRouter 付費且金鑰需有餘額。此服務僅提供報告,不會修改你的程式碼。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MegaLens,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/ai.megalens%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "megalens": {
      "type": "http",
      "url": "https://megalens.ai/api/mcp"
    }
  }
}

README

megalens-mcp

Code review from a panel of AI models, inside the AI tool you already use. MegaLens selects up to four AI models from different companies to review your code, and reports where they agree and where they disagree. On Free, MegaLens selects two reviewing models.

Works with Claude Code, Codex CLI, Cursor, Gemini CLI and Lovable. GitHub Copilot is coming soon.

Your first review is free, with no card.

Quick Start

bash
npx megalens-mcp setup

The setup wizard:

  1. Asks for your MegaLens token (get one here)
  2. Detects installed tools automatically
  3. Writes the correct config for each tool

The wizard does not ask for an OpenRouter key. To use your own key, add one header by hand: see Adding your own OpenRouter key.

Supported Tools

ToolStatusConfig FileAuto-detected
Claude CodeSupported~/.claude.jsonYes
Codex CLISupported~/.codex/config.tomlYes
CursorSupported~/.cursor/mcp.jsonYes
Gemini CLISupported~/.gemini/settings.jsonYes
LovableSupportedNone (a form in Lovable)No, see below
GitHub Copilot (VS Code)Coming soon, not supported yet.vscode/mcp.jsonOnly if that file already exists in the folder you run the wizard from

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

Manual Setup

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 which models review your code: the panel is the same whichever tool you call it from.

Claude Code

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

bash
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):

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

Cursor

~/.cursor/mcp.json or .cursor/mcp.json. No type field. Cursor does not use one:

json
{  "mcpServers": {    "megalens": {      "url": "https://megalens.ai/api/mcp?ide=cursor",      "headers": {        "Authorization": "Bearer ml_tok_your_token_here"      }    }  }}

Gemini CLI

~/.gemini/settings.json. Gemini CLI uses httpUrl, not url:

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

GitHub Copilot in VS Code (coming soon, not supported yet)

GitHub Copilot is coming soon. If you want to try it early: .vscode/mcp.json. The top-level key is servers, not mcpServers. A config written for Claude Code or Cursor will not be read here:

json
{  "servers": {    "megalens": {      "type": "http",      "url": "https://megalens.ai/api/mcp?ide=copilot",      "headers": {        "Authorization": "Bearer ml_tok_your_token_here"      }    }  }}

Codex

~/.codex/config.toml or .codex/config.toml. TOML, not JSON:

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

Adding your own OpenRouter key (free / BYOK)

Add one more header alongside Authorization, in whichever shape your tool uses above. The key needs credit on it. You pay OpenRouter directly; MegaLens is not part of that bill.

"x-megalens-openrouter-key": "sk-or-v1-your-openrouter-key"

In Codex TOML:

toml
http_headers = { "Authorization" = "Bearer ml_tok_your_token_here", "x-megalens-openrouter-key" = "sk-or-v1-your-openrouter-key" }

With Claude Code's command, add --header "x-megalens-openrouter-key: sk-or-v1-your-openrouter-key".

If you skip the key, use pay-as-you-go credits instead: $9 per 1M blended tokens, prepaid from $20.

Commands

CommandDescription
megalens-mcp setupInteractive setup: detect tools, write config
megalens-mcp validateTest your token connectivity
megalens-mcp configShow current config status

How It Works

MegaLens selects up to four AI models from different companies to review your code. They review it separately. A final check reviews their findings, and you get back where they agreed and where they disagreed. Each result names the models that actually took part.

If you send your own assessment with the request, the answer also says what the panel found that yours did not.

The panel is the same whichever tool you call it from. MegaLens reports; it does not change your code. Your own tool stays the one that decides what to do next.

Our private recipe. What stays private: how we choose the models and what each one is asked to do, the numbers that tune each check, and the prompts. That recipe came from months of measured runs and changes as models change. Our results, rules and mistakes are public: megalens.ai/research/ai-code-review-false-positives

Requirements

  • Node.js 18+ (only for the setup wizard; manual setup needs nothing)
  • A MegaLens account: megalens.ai. Your first review is free, with no card

Links

來源:README.md,提交 8bdf563

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.0.0最新Sep 23, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分