io.github.emirmrkaljevic/usb-rea
PYPI · USB-REA
Reverse engineer USB gadgets: capture traffic, infer the protocol, generate a pyusb driver.
Available components
Last scanned (14 hours ago)
Scores higher than 64% of PyPI servers
Category IoT and Hardware
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security50
- Malware scan not yet available for this package.Unverified
- No known CVEs affecting this package version or its production dependencies.Pass
- Runs hatchling.build at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
- 1 of 29 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency97
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Cryptographically verified build provenance (signed, bound to emirmrkaljevic/usb-rea). View diagnostics → Pass
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 1 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability65
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 2103 tokens (~233/item across 9 items; 9 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management20
- Stability observed for 6 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety75
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- 0 of 1 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "replay_packet" implies "send" and declares no destructiveHint at all, which the MCP spec reads as destructive by default. See how to fix → Fail
- An AI judge read all 9 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a current MCP spec version (2026-07-28).Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 21 Oct 26 0
- Package version: 0.5.0 → 0.6.0 functional
- 20 Oct 26 −15
- Malware scan: pass → unverified ▼ security
- Schema quality: 196 → 223 ▼ functional
- Package version: 0.4.0 → 0.5.0 functional
- 19 Oct 26 +1
- Stability: 0.07 → unverified ▼ security
- Tool safety: pass → unverified ▼ security
- Capabilities: pass → unverified ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- First check of Schema quality: unverified functional
- Package version: 0.3.0 → 0.4.0 functional
- 18 Oct 26 +1
- Tool safety: pass → unverified ▼ security
- Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet. security
- Capabilities: pass → unverified ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- Stability: unverified → 0.07 ▲ functional
- First check of Schema quality: unverified functional
- Package version: 0.2.1 → 0.3.0 functional
- 17 Oct 26 +15
- Malware scan: unverified → pass ▲ security
- 16 Oct 26 63
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 22 Oct 2026 · Analysed pypi/usb-rea@0.6.0
Provenance Verified
A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.
| Result | Verified |
|---|---|
| Ecosystem | pypi |
| Reason | Verified |
| Discovered via | Registry attestation endpoint |
| Source repo | emirmrkaljevic/usb-rea |
| Certificate issuer | https://token.actions.githubusercontent.com |
| Certificate SAN | https://github.com/emirmrkaljevic/usb-rea/.github/workflows/publish.yml@refs/tags/v0.6.0 |
| Rekor log index | 3351663027 |
| Predicate type | PyPI publish attestation https://docs.pypi.org/attestations/publish/v1 |
| Subject digest | sha256:cfed300b329bc31a5a0b7609095680ac3476265ae269f2f70e98f40917ea869e |
Background: How many MCP packages publish verified provenance →
Install scripts 1 script
| Hook | Tier | Command |
|---|---|---|
| build_backend | allowlisted | hatchling.build |
Background: Why install scripts are a supply-chain risk →
Dependencies 29 packages
| Packages resolved | 29 |
|---|---|
| No linked repository | 1 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
capture_start ~150
Start a USB traffic capture into `out` (usbmon on Linux, USBPcap on Windows). Side effects: launches a background capture process that keeps writing until capture_stop. Needs elevated privileges on Linux (usbmon; typically root or a usbmon group). Does not touch the device itself. Pair every start with capture_stop; do not start a second capture while one is running. Prefer this over analysis tools when you still need live traffic.
| Name | Type | Req | Description |
|---|---|---|---|
| bus | integer | – | usbmon bus number N for /dev/usbmonN; ignored on Windows/USBPcap. Default 0 |
| out | string | – | Output pcapng path (overwritten if it already exists) |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
capture_stop ~73
Stop the running capture started by capture_start. Side effects: terminates the background capture process. The pcapng at the path given to capture_start is left on disk for report/diff_actions/scaffold_driver. Returns 'no capture running' if nothing was started (not an error). Call this before analysing.
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
diff_actions ~353
Diff packets per labelled action and infer the protocol (JSON: byte roles + evidence frames). The JSON also has `background` (periodic polls set aside) and `responses`: device replies paired with the query they answer (command, background poll or GET_REPORT), with byte roles (const, echo of a query byte, value fitted to the labels, counter, checksum, or reading with its observed min/max) and query/reply frame numbers. A reading that 'seen' markers explain gets `name`, `scale` and `bias` (raw = value * scale + bias, `signed` for i8/i16) plus the observations in `observed`; a named mode has `table` (raw value -> word the app showed); `observations` lists every 'seen' value and which reply bytes it matched. Read-only analysis: does not write files or talk to hardware. Requires either markers from mark_action or `labels` for a finished capture with pauses between clicks. Prefer report when the human wants a Markdown evidence write-up; prefer scaffold_driver / wireshark_dissector when they want generated code.
| Name | Type | Req | Description |
|---|---|---|---|
| capture | string | yes | Path to a usbmon or USBPcap pcap/pcapng file |
| device | – | – | USB device address to analyse; default = bus address with the most host→device payloads |
| labels | – | – | Marker-free mode: ';'-separated labels in click order, or a text file path (one label per line). Splits traffic at the largest pauses between host→device messages |
| markers | – | – | Markers JSON path; default <capture>.actions.json. Ignored when labels is set |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
hid_descriptor ~179
Decode a HID report descriptor (and optionally one report payload). Read-only. When `source` is a capture path, finds GET_DESCRIPTOR type 0x22 transfers (replug the device while capturing if none are present). When `source` is hex, parses that descriptor directly (e.g. from /sys/class/hidraw/*/device/report_descriptor). Use this to understand report IDs/sizes before or alongside report/scaffold_driver; it does not infer vendor protocol fields from labelled actions.
| Name | Type | Req | Description |
|---|---|---|---|
| decode_hex | – | – | Optional report payload hex to decode with the descriptor |
| report_type | string | – | Report type for decode_hex: Input, Output, or Feature |
| source | string | yes | Capture path (searches for GET_DESCRIPTOR 0x22) or raw descriptor hex / hidraw report_descriptor bytes as hex |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
mark_action ~368
Record that the human is about to click this action in the vendor app. Side effects: appends {label, start, end} to <capture>.actions.json (creates the file). Call while capture_start is running, immediately before each click; end times are closed when the next mark arrives. Use the same label stem with different values (brightness 0%, 50%, 100%) so inference can fit scales. For an already-finished Wireshark capture without markers, skip this and pass `labels` to report/diff_actions instead. A label starting with 'seen' ('seen rpm 1180', 'seen rpm 1180 temp 34') is an observation, not an action: what the vendor app displays right now. It does not end the current action and is never diffed; analysis uses it to name and scale the device's reply readings (rpm = raw, temp = (raw - 40) / 2). Mark it when the human reads a value off the screen. On/off states ('seen pump on', 'seen pump off, alarm on') name single status-flag bits; words ('seen mode silent', 'seen mode turbo, rpm 3900': the word last or before a comma) name a mode byte with a value -> word map; negative values ('seen temp -5') allow signed i8/i16 readings.
| Name | Type | Req | Description |
|---|---|---|---|
| capture | string | – | Capture path whose sidecar markers file (<capture>.actions.json) is updated |
| label | string | yes | Action label, ideally with a value, e.g. 'brightness 50%' or 'color 255 0 0'; or an observation starting with 'seen', e.g. 'seen rpm 1180 temp 34' |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
replay_packet ~246
Send one packet to real USB hardware (destructive / irreversible on the device). Side effects: opens the device via libusb/pyusb and writes the packet. Refuses unless user_confirmed=true after the human approved this exact vid/pid/endpoint/hex_data (and setup_hex if any). Needs OS permission to open the device. Prefer scaffold_driver to generate a driver first; never set user_confirmed from an agent guess.
| Name | Type | Req | Description |
|---|---|---|---|
| endpoint | integer | yes | Endpoint address (e.g. 0x01 OUT); for control transfers use 0 with setup_hex |
| hex_data | string | yes | Payload bytes as hex (spaces optional), e.g. 'aa 01 ff 00 00 ab' |
| pid | integer | yes | USB product id (integer) |
| setup_hex | – | – | Optional 8-byte control setup packet as hex; when set, sends a control transfer instead of bulk/interrupt |
| user_confirmed | boolean | – | Must be true only after a human approved this exact packet; otherwise the call is refused |
| vid | integer | yes | USB vendor id (integer, e.g. 0x1234 or 4660) |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
report ~228
Generate a Markdown evidence report: every claim links to frame numbers in the capture. Includes a 'Device responses' section when the device answers queries (status polls, command ACKs, GET_REPORT), saying which reply bytes could not be explained, and an 'Observations' section for 'seen' markers (named readings and unmatched observations). Read-only: returns Markdown text (does not write a file). Same inputs as diff_actions. Use after capture_stop (or on an existing pcap). Choose this over diff_actions when the human should read the protocol; choose scaffold_driver when they need a pyusb driver.
| Name | Type | Req | Description |
|---|---|---|---|
| capture | string | yes | Path to a usbmon or USBPcap pcap/pcapng file |
| device | – | – | USB device address to analyse; default = bus address with the most host→device payloads |
| labels | – | – | Marker-free mode: ';'-separated labels in click order, or a text file path (one label per line) |
| markers | – | – | Markers JSON path; default <capture>.actions.json. Ignored when labels is set |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
scaffold_driver ~274
Generate a standalone Python/pyusb driver source for the inferred protocol. One set_<command>() per command; when the device replies, also query_<name>() methods that send the command/poll (or GET_REPORT), read the reply and return it decoded as a dict (readings named by 'seen' markers come back scaled and modes as words, e.g. {'rpm': 1180, 'temp': 34, 'mode': 'turbo', 'ok': True}). Read-only analysis that returns driver source as text (does not write a file or open the device). Same capture/markers/labels inputs as report. Prefer wireshark_dissector when the goal is to keep decoding traffic in Wireshark; use replay_packet only after the human approved a specific packet from this driver.
| Name | Type | Req | Description |
|---|---|---|---|
| capture | string | yes | Path to a usbmon or USBPcap pcap/pcapng file |
| device | – | – | USB device address to analyse; default = bus address with the most host→device payloads |
| labels | – | – | Marker-free mode: ';'-separated labels in click order, or a text file path (one label per line) |
| markers | – | – | Markers JSON path; default <capture>.actions.json. Ignored when labels is set |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
wireshark_dissector ~232
Generate a Wireshark Lua dissector for the inferred protocol. Read-only: returns Lua source as text. Labels commands, decodes values/counters/lookups, and verifies checksums (usbrea.checksum_ok + expert warning). Load with `wireshark -X lua_script:<file>.lua capture.pcapng` or the same flag on tshark. Prefer scaffold_driver for a pyusb driver; prefer hid_descriptor to inspect HID report layouts.
| Name | Type | Req | Description |
|---|---|---|---|
| capture | string | yes | Path to a usbmon or USBPcap pcap/pcapng file |
| device | – | – | USB device address to analyse; default = bus address with the most host→device payloads |
| labels | – | – | Marker-free mode: ';'-separated labels in click order, or a text file path (one label per line) |
| markers | – | – | Markers JSON path; default <capture>.actions.json. Ignored when labels is set |
| name | string | – | Wireshark protocol/filter prefix (fields become <name>.command, <name>.checksum_ok, …) |
| Name | Type | Req | Description |
|---|---|---|---|
| result | string | yes | – |
No examples provided.
How do I install the io.github.emirmrkaljevic/usb-rea MCP server?
io.github.emirmrkaljevic/usb-rea runs locally as a PyPI package, launched with uvx usb-rea. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
pypi · usb-rea
claude mcp add emirmrkaljevic-usb-rea -- uvx usb-rea
What is the io.github.emirmrkaljevic/usb-rea MCP server?
io.github.emirmrkaljevic/usb-rea is an MCP server listed in the public MCP registry as io.github.emirmrkaljevic/usb-rea. Reverse engineer USB gadgets: capture traffic, infer the protocol, generate a pyusb driver. This page covers its PyPI package (usb-rea).
Is the io.github.emirmrkaljevic/usb-rea MCP server safe to use?
io.github.emirmrkaljevic/usb-rea scores 65 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 22 October 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the io.github.emirmrkaljevic/usb-rea MCP server expose?
io.github.emirmrkaljevic/usb-rea exposes 9 tools: capture_start, capture_stop, mark_action, diff_actions, report, and 4 more. Their descriptions and schemas cost roughly 2,103 tokens of context every time the server is loaded.
Is the io.github.emirmrkaljevic/usb-rea MCP server still maintained?
io.github.emirmrkaljevic/usb-rea is still listed as active in the MCP registry. We last reached this channel on 22 October 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the io.github.emirmrkaljevic/usb-rea MCP server under?
io.github.emirmrkaljevic/usb-rea declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.