{"at":"2026-11-23T02:28:16.293Z","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:28:16.693Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:28:16.794Z","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:28:17.220Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"instructions":"OpenDeviceDB is a directory of devices whose protocols or firmware have already been reverse engineered. Before reverse engineering any device, call lookup_device (identifiers such as FCC id or USB vid:pid match best). If nothing is known, call claim_device before starting (or request_device if the user only wants the device to exist). When you finish, call publish_findings, then open a pull request. Backend: remote (https://opendevicedb.org), read-only.","protocolVersion":"2025-11-25","serverInfo":{"name":"opendevicedb","version":"0.3.0"}}}}
{"at":"2026-11-23T02:28:17.220Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:28:17.220Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:28:17.225Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":true},"description":"CALL THIS FIRST, before you start reverse engineering any device (drone, camera, router, plug, robot, wearable...). It tells you whether the protocol or a free firmware already exists, whether someone is working on it right now (live claims), and gives a one-line recommendation (e.g. \"open firmware exists: use X\", \"claimed by Y until Z: contact them\"). Give identifiers when you have them (FCC id, USB vid:pid, BLE name, Zigbee model): they match better than names. The record's `install` routes (when present) say how to put the open firmware on the device: official guide, installer, difficulty, safety flags. If it answers found: false, nothing is known: call claim_device before starting.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"ble_name":{"description":"Bluetooth LE advertised name.","type":"string"},"fcc_id":{"description":"FCC ID from the label, e.g. \"SS3-NEO2\". Identifiers are the most reliable match.","type":"string"},"id":{"description":"OpenDeviceDB id (<vendor-slug>/<model-slug>) if you already have it, e.g. from search_devices.","type":"string"},"model":{"description":"Model name as printed on the device or box, e.g. \"Neo 2\".","type":"string"},"usb":{"description":"USB vendor:product id in lowercase hex, e.g. \"2ca3:001f\" (from lsusb).","type":"string"},"vendor":{"description":"Manufacturer or brand, e.g. \"DJI\".","type":"string"},"zigbee_model":{"description":"Zigbee modelId reported by the device.","type":"string"}},"type":"object"},"name":"lookup_device","title":"Look up a device before reverse engineering it"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":true},"description":"Ranked full-text search over vendor, model, aliases and identifiers across curated records and imported databases (OpenWrt, Zigbee2MQTT, Tasmota...). Use it to explore (\"all DJI drones\", \"open-firmware cameras\") or when lookup_device finds nothing and you suspect another name. Each result has an id to pass to lookup_device.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"category":{"description":"Restrict to one device category.","enum":["drone","camera","ip-camera","action-camera","router","smart-plug","light","switch","sensor","hub","vacuum-robot","wearable","phone","tablet","e-reader","laptop","desktop","single-board","peripheral","printer","3d-printer","audio","tv","media-player","game-console","vehicle","radio","toy","appliance","medical","other"],"type":"string"},"limit":{"description":"Maximum results (default 20).","maximum":200,"minimum":1,"type":"integer"},"query":{"description":"Words to match: vendor, model, alias, or an identifier (FCC id, USB vid:pid, BLE name, chip, SKU). Empty string lists everything.","type":"string"},"status":{"description":"Restrict to one effective status (unknown, in-progress, partial-protocol, controllable, open-firmware).","enum":["unknown","in-progress","partial-protocol","controllable","open-firmware"],"type":"string"}},"required":["query"],"type":"object"},"name":"search_devices","title":"Search the device directory"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Record that you (your human) are working on a device, with a scope, contact and expiry (default 30 days, max 90), so other agents do not duplicate the work. Creates a stub record if the device is unknown (then give vendor, model, category). Writes data/devices/<id>.yaml in the local repository checkout (needs ODB_REPO); you then open a pull request — the result gives the exact commands.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"agent":{"description":"Agent/tooling used, e.g. \"claude-code + rea 6.5.0\".","type":"string"},"category":{"description":"Required only when the device is not in OpenDeviceDB yet.","enum":["drone","camera","ip-camera","action-camera","router","smart-plug","light","switch","sensor","hub","vacuum-robot","wearable","phone","tablet","e-reader","laptop","desktop","single-board","peripheral","printer","3d-printer","audio","tv","media-player","game-console","vehicle","radio","toy","appliance","medical","other"],"type":"string"},"contact":{"description":"How others can reach the claimant: email, GitHub handle, URL of a tracking issue.","minLength":1,"type":"string"},"days":{"default":30,"description":"Claim duration in days (default 30, max 90). Expired claims are ignored.","maximum":90,"minimum":1,"type":"integer"},"force_new":{"description":"Create a new record even though a similar device exists (only if you are sure it is a different device).","type":"boolean"},"id":{"description":"Device id if it already exists (from lookup_device/search_devices). Otherwise give vendor + model.","type":"string"},"model":{"description":"Model name, used to build the id when the device is new.","type":"string"},"scope":{"description":"What you will reverse engineer, e.g. \"BLE pairing + telemetry\", \"full Wi-Fi control\".","minLength":1,"type":"string"},"vendor":{"description":"Manufacturer, used to build the id when the device is new.","type":"string"},"who":{"description":"Who is working on it: your human's name or handle (and project).","minLength":1,"type":"string"}},"required":["who","contact","scope"],"type":"object"},"name":"claim_device","title":"Claim a device you are about to reverse engineer"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"CALL THIS WHEN YOU FINISH (or stop) a reverse-engineering job, even with partial results. Merges your findings into the record: summary and status replace (status only moves forward), interfaces merge by transport+name (yours replace), projects by url, install routes by method+guide, identifiers and aliases are unioned, verification is appended. The result is validated against the schema; nothing is written on error. Link to your protocol docs/code hosted elsewhere; never include firmware images, vendor code, keys, or anything defeating Remote ID, geofencing or other safety functions (POLICY.md). Set provenance.ai_assisted honestly. Then open a pull request — the result gives the commands.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"allow_downgrade":{"description":"Allow lowering the status (only when the previous status was wrong; explain why in summary or verification notes).","type":"boolean"},"id":{"description":"Device id (from lookup_device or claim_device).","type":"string"},"patch":{"additionalProperties":false,"description":"Findings to merge into the record.","properties":{"aliases":{"description":"Other names for the device (added).","items":{"type":"string"},"type":"array"},"identifiers":{"additionalProperties":false,"description":"Identifiers to add (unioned with the existing ones).","properties":{"ble_names":{"items":{"type":"string"},"type":"array"},"chips":{"items":{"type":"string"},"type":"array"},"fcc_id":{"items":{"type":"string"},"type":"array"},"sku":{"items":{"type":"string"},"type":"array"},"usb":{"description":"vid:pid, lowercase hex","items":{"type":"string"},"type":"array"},"zigbee_model":{"items":{"type":"string"},"type":"array"}},"type":"object"},"install":{"description":"Ways to install the open firmware or software, linking to the project's own guide (nothing is hosted here); merged by method+guide (yours replace).","items":{"additionalProperties":false,"properties":{"brick_risk":{"enum":["none","low","medium","high"],"type":"string"},"difficulty":{"description":"easy = no tools, device stays closed; medium = cable or command line; hard = opening, soldering, programmer.","enum":["easy","medium","hard"],"type":"string"},"firmware_constraints":{"description":"e.g. \"stock firmware after 2.x is patched: does not work\".","type":"string"},"guide":{"description":"URL of the project's official step-by-step guide.","type":"string"},"installer":{"description":"URL of the official installer tool, when one exists.","type":"string"},"mains_powered":{"type":"boolean"},"method":{"description":"web-serial = browser installer, ota-exploit (e.g. cloudcutter), vendor-upload (stock web UI accepts the image), usb-bootloader (fastboot/DFU), sd-card, serial (UART, device opened), spi-programmer, pairing (no flashing), host-software.","enum":["host-software","pairing","web-serial","ota-exploit","vendor-upload","usb-bootloader","sd-card","serial","spi-programmer","other"],"type":"string"},"notes":{"type":"string"},"opens_device":{"type":"boolean"},"project":{"description":"Name of the project (in `projects`) this route installs.","type":"string"},"reversible":{"enum":["yes","no","partial"],"type":"string"},"revert":{"description":"URL of the back-to-stock guide.","type":"string"},"tools":{"description":"What to have, e.g. [\"USB-serial adapter, 3.3 V\"].","items":{"type":"string"},"type":"array"}},"required":["project","method","guide","difficulty"],"type":"object"},"type":"array"},"interfaces":{"description":"Interfaces you documented; one with the same transport+name replaces the existing one.","items":{"additionalProperties":false,"properties":{"confidence":{"description":"How sure you are; AI-derived, untested work is low or medium.","enum":["low","medium","high"],"type":"string"},"name":{"type":"string"},"notes":{"type":"string"},"spec":{"description":"URL of the protocol description you wrote (repo, gist, wiki).","type":"string"},"status":{"enum":["unknown","partial","documented"],"type":"string"},"transport":{"enum":["wifi","ble","bluetooth","usb","uart","jtag","swd","zigbee","zwave","thread","lora","rf","ethernet","can","cloud-api","other"],"type":"string"}},"required":["name","transport","status"],"type":"object"},"type":"array"},"projects":{"description":"Your code or docs (open license, hosted elsewhere); merged by url.","items":{"additionalProperties":false,"properties":{"kind":{"enum":["firmware","sdk","library","driver","protocol-doc","integration","tool","teardown","other"],"type":"string"},"license":{"type":"string"},"name":{"type":"string"},"official":{"type":"boolean"},"url":{"type":"string"}},"required":["name","url","kind"],"type":"object"},"type":"array"},"provenance":{"additionalProperties":false,"properties":{"ai_assisted":{"description":"true if an AI agent did any of the work (always say so).","type":"boolean"},"sources":{"items":{"type":"string"},"type":"array"},"tools":{"description":"Tools used, e.g. [\"claude-code\", \"rea 6.5.0\", \"wireshark\"].","items":{"type":"string"},"type":"array"}},"type":"object"},"status":{"description":"New status; it can only move forward (unknown → in-progress → partial-protocol → controllable → open-firmware).","enum":["unknown","in-progress","partial-protocol","controllable","open-firmware"],"type":"string"},"summary":{"description":"One plain-text paragraph: what the device is and what is now known. Replaces the current summary.","type":"string"},"vendor_support":{"description":"State of the vendor's own service.","enum":["active","degraded","discontinued","unknown"],"type":"string"},"verification":{"description":"Verification runs (appended).","items":{"additionalProperties":false,"properties":{"by":{"type":"string"},"date":{"description":"YYYY-MM-DD","type":"string"},"firmware":{"description":"Device firmware version tested.","type":"string"},"method":{"description":"hardware-replay = replayable test run on a real device; this is what earns the verified badge.","enum":["hardware-replay","manual","none"],"type":"string"},"notes":{"type":"string"}},"required":["method","by","date"],"type":"object"},"type":"array"}},"type":"object"},"release_claim_of":{"description":"Remove the live claims of this claimant (the `who` you used in claim_device) now that the work is published.","type":"string"}},"required":["id","patch"],"type":"object"},"name":"publish_findings","title":"Publish what you found"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":true},"description":"Use when your user wants a device to become usable with open code but will not reverse engineer it themselves (lookup_device found nothing usable). Returns the existing request to add a 👍 to, or a pre-filled link to a new public GitHub issue that the user reviews and submits. Read-only: this tool never posts anything.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"ble_name":{"description":"Bluetooth LE advertised name.","type":"string"},"fcc_id":{"description":"FCC ID from the label.","type":"string"},"goal":{"description":"What your user wants to do with it, in their words (e.g. \"fly it from Python now that the app is gone\").","type":"string"},"model":{"description":"Exact model name, e.g. \"Bebop 2\".","minLength":1,"type":"string"},"usb":{"description":"USB vendor:product id (lsusb).","type":"string"},"vendor":{"description":"Manufacturer or brand, e.g. \"Parrot\".","minLength":1,"type":"string"},"zigbee_model":{"description":"Zigbee modelId.","type":"string"}},"required":["vendor","model"],"type":"object"},"name":"request_device","title":"Request a device (say your user wants it)"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":true},"description":"Imported source databases with name, url, license, snapshot date and record count, plus the number of curated records. Use it to judge coverage and freshness: a device absent here may still be covered by a source that was not imported.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_sources","title":"List the databases OpenDeviceDB aggregates"}]}}}
