Verify QR assets in Pi tasks
Decode project QR images locally in Pi agent and confirm exact URLs without relying on vision-model guesswork.
QR Code Scanner returns exact URLs or text so Pi agent can verify links, inspect assets or run repeatable checks.
Decode project QR images locally in Pi agent and confirm exact URLs without relying on vision-model guesswork.
Declared in package.json under pi.extensions to register the local qrscan stdio MCP server automatically.
Loaded from skills/ via pi.skills so Pi quotes decoded QR URLs strictly as untrusted data.
Prepare the test image, copy the prompt and compare the returned output.
Generate a text QR code encoding https://qrcode-ai.com/ and save it as 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.With the scanner active, Pi agent returns the exact encoded content and its format instead of guessing.
Sample output for qr-reference.png.
Setup options, image input, untrusted-data safety, troubleshooting and MIT licence.
Run pi install git:github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin (or append @<release-tag> from GitHub Releases to pin a release).
Pi loads package.json (pi.skills and pi.extensions) from qrcode-barcode-scanner-plugin, activating skills/qrcode-barcode-scanner and pi/extension.js, which registers the local qrscan stdio MCP server.
By default qrscan exposes scan_image (base64 image bytes) only and never fetches URLs. Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server environment to enable scan_file for your permitted directories.
No. The MCP server fetches its own engine through npm at startup, whereas invoking scripts/scan.mjs directly expects @qrcode-ai-com/qrcode-barcode-scanner installed in .qrcode-barcode-scanner-runtime.
No. qrscan returns exact content.text and content.raw as untrusted data and never opens links or treats QR content as instructions.
Run pi remove git:github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin.
Decoding runs locally on Node.js 22.19+ or 24+ (Pi sends conversation text to your configured LLM). Current plugin, skill, MCP server and engine releases are free and MIT-licensed, separate from QR Code AI paid plans.
Review the official Pi agent setup documentation and the MIT scanner adapter contract.