Vibelens Mcp

io.github.klewicki7由 GitHub 帳號 klewicki7 發布v0.1.0更新於 Oct 25, 2026

VibeLens MCP tool for AI to visualize code changes with inline annotations in VS Code/Cursor

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助手在 VS Code 或 Cursor 的 VibeLens 面板中以附註解的方式呈現 git 差異。

可以做什麼
在 VibeLens 擴充功能面板中呈現 git 差異,可附標題、摘要以及依檔案或依行標註的註解,並可指定 Cursor 或 VS Code 以及用於篩選的工作區路徑。為個別註解加上帶標籤和提示詞的動作按鈕,方便審閱者向聊天送出後續請求。提供可重複使用的提示詞,引導助手取得差異、準備註解並呼叫呈現工具。
適用情境
當你希望 AI 對程式碼變更的說明以視覺化方式顯示在編輯器中的差異旁,而不是純聊天文字時適用,例如在提交前審閱某個分支或工作區變更。
執行需求
透過 stdio 在本機執行,通常以 npx 或全域 npm 安裝啟動,因此需要 Node.js。需要 VS Code 或 Cursor 中搭配的 VibeLens 擴充功能來顯示結果。清單宣告需要名為 YOUR_API_KEY 的必需 API 金鑰環境變數。
安裝前請注意
伺服器會在使用者主目錄下寫入待處理檔案和本機資料庫,擴充功能會讀取這些資料,因此差異內容和註解會保存在磁碟上。它要求透過 YOUR_API_KEY 提供 API 金鑰,提供前請確認該金鑰的用途。註解和動作提示詞會傳給編輯器擴充功能,按下按鈕時可能被送往聊天。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Vibelens Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

VibeLens MCP Server

MCP server that provides the show_diff_explanation tool for visualizing code changes with AI annotations.

Installation

bash
npx -y vibelens-mcp

Or install globally:

bash
npm install -g vibelens-mcp

MCP Configuration

Add to your MCP client configuration:

json
{  "mcpServers": {    "vibelens": {      "command": "npx",      "args": ["-y", "vibelens-mcp"]    }  }}

Tool: show_diff_explanation

Displays a git diff with AI-generated annotations in the VibeLens extension panel.

Parameters

ParameterTypeRequiredDescription
titlestringYesTitle for the explanation
diffstringYesRaw git diff output (unified format)
summarystringNoHigh-level overview of changes
annotationsarrayNoExplanations for specific parts of the diff
workspacePathstringNoAbsolute path to project folder (for workspace filtering)
editorstringNo"cursor" or "vscode" (default: "cursor")

Annotation Object

FieldTypeRequiredDescription
filestringYesFile path the annotation refers to
linenumberNoLine number in the new file
explanationstringYesYour explanation of this change
actionsarrayNoAction buttons with prompts

Action Object

FieldTypeRequiredDescription
labelstringYesButton label (e.g., "Add tests")
promptstringYesFull prompt to send to chat

Example

json
{  "title": "Add user authentication",  "summary": "Added JWT middleware and protected API routes.",  "diff": "diff --git a/src/auth.ts b/src/auth.ts\n...",  "workspacePath": "/Users/me/myproject",  "annotations": [    {      "file": "src/auth.ts",      "line": 15,      "explanation": "Extracts and validates JWT token from Authorization header",      "actions": [        {          "label": "Add refresh token",          "prompt": "Add refresh token support to this auth middleware"        }      ]    }  ]}

Prompt: vibelens

The MCP server also provides a prompt with instructions for explaining code changes. Reference it with @vibelens in your chat.

The prompt guides the AI to:

  1. Get the diff from conversation context (or run git diff if needed)
  2. Analyze and prepare annotations
  3. Call show_diff_explanation with appropriate parameters
  4. Generate specific, actionable suggestions for each annotation

How It Works

The MCP server writes to ~/.vibelens/pending.json and stores reviews in ~/.vibelens/vibelens.db. The companion VS Code/Cursor extension watches this data and displays the diff in a webview panel.

MCP Server                    Extension     │                            │     │ writes to                  │ watches     │ ~/.vibelens/               │ ~/.vibelens/     │ pending.json               │ pending.json     └────────────────────────────┘

Development

bash
# Buildnpm run build
# The server runs via stdionode dist/index.js

License

MIT

來源:packages/mcp/README.md,提交 67b82b4

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。