在 Copilot CLI 中驗證 QR Code 圖片
在終端機開發任務中於本機解碼專案 QR Code 素材,確認確切網址而不仰賴視覺模型猜測。
QR Code 掃描器會回傳確切的網址或文字,讓 GitHub Copilot 能核對連結、驗證素材或重複執行檢查。
在終端機開發任務中於本機解碼專案 QR Code 素材,確認確切網址而不仰賴視覺模型猜測。
於本機執行 @qrcode-ai-com/qrcode-barcode-scanner-mcp,預設啟用 scan_image,並以允許資料夾控管 scan_file。
將 SKILL.md 與 mcp.json 一併提供,確保 Copilot 將解碼網址視為不可信任資料並如實回報無結果。
準備好圖片、複製請求提示詞,並比對回傳的內容。
建立文字 QR Code,內容填入 https://qrcode-ai.com/ 並儲存為 qr-reference.png。
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.搭配掃描器後,GitHub Copilot 會回傳確切的編碼內容與格式,而非憑空猜測。
qr-reference.png 的範例結果。
安裝方式、圖片輸入、不可信任資料防護、疑難排解與 MIT 授權說明。
先執行 copilot plugin marketplace add qrcode-ai-com/qrcode-barcode-scanner-plugin,再執行 copilot plugin install qrcode-barcode-scanner@qrcode-ai-com。若要鎖定特定發佈版本,請在儲存庫後方加上 GitHub Releases 的 #<release-tag>。
Copilot CLI 會從 qrcode-barcode-scanner-plugin 讀取 plugin.json、mcp.json 與 skills/,一次提供 qrcode-barcode-scanner 技能與本機 qrscan stdio MCP 伺服器。
僅在您主動啟用後才支援。qrscan 預設只提供 scan_image(base64 圖片位元組),且絕不抓取遠端網址。請在伺服器環境變數中加入 QRSCAN_MCP_ALLOWED_DIRECTORIES 並重新啟動 Copilot CLI,即可啟用 scan_file。
不會。MCP 伺服器啟動時會自行透過 npm 下載專屬的引擎複本;若要直接呼叫 scripts/scan.mjs,則需另外在 .qrcode-barcode-scanner-runtime 安裝 @qrcode-ai-com/qrcode-barcode-scanner。
不會。qrscan 會將確切的 content.text 與 content.raw 視為不可信任資料回傳,絕不造訪解碼後的網址,也不會將 QR Code 文字視為指令。
請先執行 copilot plugin uninstall qrcode-barcode-scanner,再執行 copilot plugin marketplace remove qrcode-ai-com 即可完整移除。
解碼作業完全在本機 Node.js 22.19 以上或 24 以上版本執行(Copilot 會將對話文字傳送至您設定的模型)。目前的外掛、技能、MCP 伺服器與引擎版本皆免費提供並採用 MIT 授權,與 QR Code AI 的付費方案各自獨立。
檢視官方 GitHub Copilot 設定來源與採用 MIT 授權的掃描器配接器規範。
閱讀通訊協定指南、切換至適用於條碼的 GitHub Copilot 整合,或瀏覽所有 QR Code 整合方案。