{"at":"2026-11-23T02:42:23.601Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:42:24.114Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:42:24.214Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:42:24.677Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"barcode-scanner-mcp","version":"1.0.0"}}}}
{"at":"2026-11-23T02:42:24.677Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:42:24.677Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:42:24.680Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"readOnlyHint":true},"description":"Decode barcodes and QR codes from a base64-encoded image. Returns all codes found. Supports QR, EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, Code 93, ITF, Codabar, and PDF 417. Handles noisy real-world photos by trying multiple preprocessing approaches.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format_hint":{"description":"Expected barcode format. If omitted, all formats are tried.","enum":["qr","ean13","ean8","upca","upce","code128","code39","code93","itf","codabar","pdf417"],"type":"string"},"image":{"description":"Base64-encoded image data (PNG, JPEG, etc.)","type":"string"}},"required":["image"],"type":"object"},"name":"decode_image","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"codes":{"description":"All barcodes/QR codes found in the image","items":{"additionalProperties":false,"properties":{"format":{"description":"Detected barcode format (e.g. QR_CODE, EAN_13)","type":"string"},"text":{"description":"Decoded text content","type":"string"}},"required":["format","text"],"type":"object"},"type":"array"}},"required":["codes"],"type":"object"},"title":"Decode barcode/QR code"},{"annotations":{"readOnlyHint":true},"description":"Generate a QR code image from text or a URL. Returns a PNG image.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"error_correction":{"default":"M","description":"Error correction level: L (7%), M (15%), Q (25%), H (30%)","enum":["L","M","Q","H"],"type":"string"},"scale":{"default":3,"description":"Scaling factor (default: 3)","maximum":20,"minimum":1,"type":"integer"},"text":{"description":"Text or URL to encode in the QR code","type":"string"}},"required":["text"],"type":"object"},"name":"generate_qr","title":"Generate QR code"},{"annotations":{"readOnlyHint":true},"description":"Generate a barcode image in various formats. Returns a PNG image. Supported formats: code128, code39, code93, ean13, ean8, upca, upce, itf14, interleaved2of5, isbn, issn, ismn, datamatrix, pdf417, azteccode, gs1-128, pharmacode, codabar, msi, plessey, postnet, onecode, royalmail, code11, code49.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"description":"Barcode format to generate","enum":["code128","code39","code93","ean13","ean8","upca","upce","itf14","interleaved2of5","isbn","issn","ismn","datamatrix","pdf417","azteccode","gs1-128","pharmacode","codabar","msi","plessey","postnet","onecode","royalmail","code11","code49"],"type":"string"},"height":{"default":10,"description":"Bar height in mm (default: 10, ignored for 2D formats)","maximum":100,"minimum":1,"type":"number"},"include_text":{"default":true,"description":"Show human-readable text below barcode (default: true)","type":"boolean"},"scale":{"default":3,"description":"Scaling factor (default: 3)","maximum":20,"minimum":1,"type":"integer"},"text":{"description":"Data to encode in the barcode","type":"string"}},"required":["text","format"],"type":"object"},"name":"generate_barcode","title":"Generate barcode"}]}}}
