HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · STELLAR · ROBINHOOD · USDC · USDG

QR code generator

Generate a QR code and validate the URL in one pass — the encoded image plus a parsed breakdown of the URL structure.

When to use this pack

An agent is generating a QR code for a URL and wants to confirm the URL is well-formed before encoding it. Catches typos in URLs before they get printed on physical media.

Tools in this pack

Workflow

  1. Generate the QR code with qr — returns a base64-encoded PNG image at 512px.
  2. Parse the URL with url-parse — validates structure and returns protocol, hostname, path, query params. Catches malformed URLs before they're encoded.

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Generate a QR code using Agent402: (1) qr {text:"https://agent402.tools", size:512} — get base64 PNG. (2) url-parse {url:"https://agent402.tools"} — validate URL structure. Return {qrImage, urlParsed}.

← All skill packs