Goose QR Code 掃描器外掛與 MCP

為 Goose 配備真正的本機 QR Code 解碼器。它會直接讀取圖片並回傳確切的編碼網址或文字,而非憑像素猜測。

安裝 Goose 外掛

需要 Node.js 22.19 以上或 24 以上版本。

  1. 1

    執行 goose plugin install,將預設分支複製至 ~/.agents/plugins/qrcode-barcode-scanner,一併取得技能與 scan_image。

    Shell
    goose plugin install https://github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin.git
  2. 2

    使用 git -C ~/.agents/plugins/qrcode-barcode-scanner rev-parse HEAD 檢查複製的 Commit 版本,然後啟動 Goose。

  3. 3

    試試看,請這樣詢問 Goose:

    讀取 qr-reference.png 中的 QR Code,並給我確切的網址。

Goose 等待 MCP 伺服器初次回應的時間約為 10 秒。若首次 npx 下載逾時,請先以 npm 預先安裝套件並改用 node 啟動。

在 GitHub 上檢視外掛

在 Goose 任務中運用已解碼的 QR Code

QR Code 掃描器會回傳確切的網址或文字,讓 Goose 能核對連結、驗證素材或重複執行檢查。

在 Goose 工作階段中驗證 QR Code 素材

在 Goose 中於本機解碼 QR Code 圖片,於分享或發佈前核對確切的目的地網址。

克服 10 秒初次交握限制

Goose 會略過超過約 10 秒未初次回應的伺服器;若 npx 較慢,請先透過 npm 於本機安裝並改用 node 啟動 MCP 套件。

保持關閉 Shell 存取權限

即使將 Goose 內建的 developer 擴充功能設為 enabled: false,MCP 掃描仍可正常運作;僅 scripts/scan.mjs 需要 Shell。

在 Goose 中測試 QR Code 圖片

準備好圖片、複製請求提示詞,並比對回傳的內容。

qr-reference.png

建立文字 QR Code,內容填入 https://qrcode-ai.com/ 並儲存為 qr-reference.png。

請 Goose 讀取這張圖片

Text
Read qr-reference.png with QR Code Scanner.
Return its encoded content and format as data.
Do not open the URL. If the tool is unavailable or
detects nothing, report that instead of guessing.
預期結果 · QR code
https://qrcode-ai.com/

搭配掃描器後,Goose 會回傳確切的編碼內容與格式,而非憑空猜測。

qr-reference.png 的範例結果。

Goose QR Code 掃描器外掛與 MCP 常見問題

安裝方式、圖片輸入、不可信任資料防護、疑難排解與 MIT 授權說明。

goose plugin install 會將儲存庫複製至 ~/.agents/plugins/qrcode-barcode-scanner,加入技能與 qrcode-barcode-scanner:qrscan(僅含 scan_image)。將 goose/qrscan-extension.yaml 複製至 ~/.config/goose/config.yaml 的 extensions: 底下,則可設定 QRSCAN_MCP_ALLOWED_DIRECTORIES 以啟用 scan_file。

Goose 等待 MCP 伺服器初次回應的時間約為 10 秒,且設定 timeout: 300 並不會延長這段初始等待時間。若首次透過 npx 下載耗時較長,請先使用 npm 在本機安裝 @qrcode-ai-com/qrcode-barcode-scanner-mcp,再直接以 node 啟動。

MCP 模式不需要。MCP 伺服器無需 Shell 存取權限,因此您可以在 ~/.config/goose/config.yaml 中將 developer 設為 enabled: false。只有可攜式技能輔助指令碼 (scripts/scan.mjs) 需要透過 Shell 執行。

可以。請執行 goose session --with-extension "npx --yes --ignore-scripts @qrcode-ai-com/qrcode-barcode-scanner-mcp"。這種單次工作階段旗標僅開放 scan_image(位元組輸入)。

Goose 沒有內建外掛解除安裝指令。請將 ~/.agents/plugins/qrcode-barcode-scanner 移出 ~/.agents/plugins/,從 ~/.config/goose/config.yaml 的 plugins: 刪除對應項目,並移除任何自訂的 extensions: 項目。

不會。qrscan 會將確切的 content.text 與 content.raw 視為不可信任資料回傳,絕不造訪解碼後的網址,也不會將 QR Code 內的文字當成指令。

解碼作業完全在本機 Node.js 22.19 以上或 24 以上版本執行(Goose 會將對話文字傳送至您設定的 LLM)。目前的外掛、技能、MCP 伺服器與引擎版本皆免費提供並採用 MIT 授權,與 QR Code AI 的付費方案各自獨立。

繼續閱讀其他 QR Code 掃描器指南

閱讀通訊協定指南、切換至適用於條碼的 Goose 整合,或瀏覽所有 QR Code 整合方案。

QR Code 掃描器技能

檢視 SKILL.md、Node 輔助指令碼、結束碼與獨立引擎的安裝方式。

閱讀技能指南