# BLEA (pypi · blea)

Safe BLE diagnostics, evidence workflows, and guarded automation for AI agents.

- Trust score: 67/100 (medium)
- Change this week: +5
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-20

## Components

- pypi · `blea`: 67/100 (this document), [markdown](https://verifymcp.io/servers/nitmi-blea/blea.md), [page](https://verifymcp.io/servers/nitmi-blea/blea)

## Channel facts

- Registry: `pypi`
- Package: `blea`
- Version: `0.6.4`
- Transport: `stdio`

## Trust breakdown

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. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-20.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - Runs hatchling.build at install time, a recognised native-build step with no shell scripting around it.
  - 1 of 46 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 32/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - License check failed: the license (MIT License) isn't a recognized OSI-approved license.
  - Actively maintained (last published 10 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 66/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 1457 tokens (~66/item across 22 items; 22 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 37/100
  - Stability observed for 11 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 71/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 0% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add nitmi-blea -- uvx blea
```

### Codex

```bash
codex mcp add nitmi-blea -- uvx blea
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "nitmi-blea": {
      "type": "local",
      "command": [
        "uvx",
        "blea"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add nitmi-blea --command uvx --arg blea
```

### Hermes

```yaml
mcp_servers:
  nitmi-blea:
    command: "uvx"
    args: ["blea"]
```

### Other

```json
{
  "mcpServers": {
    "nitmi-blea": {
      "command": "uvx",
      "args": [
        "blea"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-19 (score 67, +1)

No change was recorded against any check on this day. Stability & Change Management went from 30 to 33. That category is still filling its 30-day observation window: 9 days of observed history at the previous scan, 10 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-08-17 (score 66, +4)

- [functional improvement] Stability: unverified → 0.27

### 2026-08-11 (score 62, +4)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-08-09 (score 58)

First indexed and scored.

## MCP tools (22)

### `ble_doctor` (~30 tokens)

Check whether the local Bluetooth adapter and OS BLE backend are usable.

Input parameters:

- `scan_timeout` (number)

### `ble_scan` (~37 tokens)

Scan nearby BLE advertisements and return stable structured evidence.

Input parameters:

- `name_contains`
- `service_uuid`
- `timeout` (number)

### `ble_inspect` (~40 tokens)

Discover GATT; timeout applies separately to scan, connect, and GATT operations.

Input parameters:

- `device` (string, required)
- `timeout` (number)

### `ble_probe` (~120 tokens)

Read one GATT page; inspect read_page and follow next_read_offset until null.

ok=true means the page ran, not that every characteristic read succeeded. timeout applies
separately to scan, connect, profile discovery, and each read. The full profile is omitted by
default to keep repeated pages compact; use ble_inspect first or set include_profile=true.

Input parameters:

- `device` (string, required)
- `include_profile` (boolean)
- `max_reads` (integer)
- `read_offset` (integer)
- `timeout` (number)

### `ble_capture` (~131 tokens)

Save a validated read-only BLE evidence package as .blea.jsonl.

Capture performs one discovery and one connection, then records advertisements, GATT,
bounded reads, and bounded notifications. It never writes, pairs, or changes device
configuration. The output path is replaced atomically only after the final summary validates.

Input parameters:

- `device` (string, required)
- `max_reads` (integer)
- `observe_duration` (number)
- `output` (string, required)
- `read_offset` (integer)
- `redact_identifiers` (boolean)
- `service_uuid`
- `timeout` (number)

### `ble_diff` (~116 tokens)

Compare two validated BLEA evidence files without accessing Bluetooth hardware.

Transient capture metadata and notification timestamps are ignored. RSSI uses a 5 dBm
tolerance by default; strict_rssi compares exact values. Device identifiers must match unless
allow_different_devices is explicitly enabled.

Input parameters:

- `after` (string, required)
- `allow_different_devices` (boolean)
- `before` (string, required)
- `fail_on_change` (boolean)
- `rssi_tolerance` (number)
- `strict_rssi` (boolean)

### `ble_replay` (~154 tokens)

Replay scan/inspect/probe/read/subscribe/observe/run from evidence without BLE hardware.

speed=0 returns matching notifications immediately. Positive speed values preserve recorded
notification gaps at the requested multiplier. Replay is always read-only and never exposes a
write or exchange operation.

Input parameters:

- `characteristic`
- `characteristics`
- `device`
- `duration` (number)
- `evidence` (string, required)
- `include_profile` (boolean)
- `max_reads` (integer)
- `name_contains`
- `operation` (string, required)
- `read_offset` (integer)
- `service_uuid`
- `speed` (number)
- `timeout` (number)
- `workflow`

### `ble_read` (~46 tokens)

Read a characteristic; timeout applies separately to scan, connect, and GATT operations.

Input parameters:

- `characteristic` (string, required)
- `device` (string, required)
- `timeout` (number)

### `ble_subscribe` (~52 tokens)

Collect bounded notifications; timeout is per backend operation, not a total deadline.

Input parameters:

- `characteristic` (string, required)
- `device` (string, required)
- `duration` (number)
- `timeout` (number)

### `ble_observe` (~90 tokens)

Observe notify/indicate characteristics on one connection for a bounded duration.

When characteristics is omitted, all discovered notify/indicate characteristics are selected.
Per-characteristic subscription failures remain in subscriptions while other subscriptions
continue. The tool always reports cleanup evidence and never writes or pairs.

Input parameters:

- `characteristics`
- `device` (string, required)
- `duration` (number)
- `timeout` (number)

### `ble_exchange` (~108 tokens)

Subscribe first, perform one guarded write, then collect resulting notifications.

Input parameters:

- `allow_write` (boolean)
- `base64_value`
- `confirm_device`
- `device` (string, required)
- `duration` (number)
- `hex_value`
- `notify_characteristic` (string, required)
- `read_back` (boolean)
- `response` (boolean)
- `text_value`
- `timeout` (number)
- `write_characteristic` (string, required)

### `ble_write` (~93 tokens)

Write with guards; timeout is per backend operation, not a total tool deadline.

Input parameters:

- `allow_write` (boolean)
- `base64_value`
- `characteristic` (string, required)
- `confirm_device`
- `device` (string, required)
- `hex_value`
- `read_back` (boolean)
- `response` (boolean)
- `text_value`
- `timeout` (number)

### `ble_session_open` (~37 tokens)

Open a leased connection; timeout applies per backend operation for the session.

Input parameters:

- `device` (string, required)
- `timeout` (number)

### `ble_session_inspect` (~26 tokens)

Discover services on an open BLE session.

Input parameters:

- `session_id` (string, required)

### `ble_session_read` (~33 tokens)

Read a characteristic through an open BLE session.

Input parameters:

- `characteristic` (string, required)
- `session_id` (string, required)

### `ble_session_subscribe` (~41 tokens)

Collect bounded notifications through an open BLE session.

Input parameters:

- `characteristic` (string, required)
- `duration` (number)
- `session_id` (string, required)

### `ble_session_observe` (~42 tokens)

Observe notify/indicate characteristics through one existing session connection.

Input parameters:

- `characteristics`
- `duration` (number)
- `session_id` (string, required)

### `ble_session_exchange` (~104 tokens)

Atomically subscribe, write, and collect notifications through one open session.

Input parameters:

- `allow_write` (boolean)
- `base64_value`
- `confirm_device`
- `duration` (number)
- `hex_value`
- `notify_characteristic` (string, required)
- `read_back` (boolean)
- `response` (boolean)
- `session_id` (string, required)
- `text_value`
- `write_characteristic` (string, required)

### `ble_session_write` (~84 tokens)

Write through an open session with the same explicit write guard.

Input parameters:

- `allow_write` (boolean)
- `base64_value`
- `characteristic` (string, required)
- `confirm_device`
- `hex_value`
- `read_back` (boolean)
- `response` (boolean)
- `session_id` (string, required)
- `text_value`

### `ble_session_close` (~25 tokens)

Disconnect and forget an open BLE session.

Input parameters:

- `session_id` (string, required)

### `ble_session_list` (~24 tokens)

List open BLE sessions, their devices, idle time, and lease timeout.

### `ble_session_close_all` (~24 tokens)

Recover unknown or leaked state by closing every session owned by this server.

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/nitmi-blea/blea#diagnostics

## Score history

- 2026-08-20: 67
- 2026-08-19: 67
- 2026-08-18: 66
- 2026-08-17: 66
- 2026-08-16: 62
- 2026-08-15: 62
- 2026-08-14: 62
- 2026-08-13: 62
- 2026-08-12: 62
- 2026-08-11: 62
- 2026-08-10: 58
- 2026-08-09: 58

## Links

- PyPI project: https://pypi.org/project/blea/
- Socket report: https://socket.dev/pypi/package/blea
- Repository: https://github.com/Nitmi/blea
- Changelog RSS feed: https://verifymcp.io/servers/nitmi-blea/blea.xml
- Changelog JSON feed: https://verifymcp.io/servers/nitmi-blea/blea.json
- HTML version of this page: https://verifymcp.io/servers/nitmi-blea/blea
