Skip to main content
Glama
bitpirate-mcp
by Indigaz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_devicesA

Find ESP32-Bit-Pirate console ports on USB CDC serial. [read-only] [Duration: instant.]

verify_connectionA

Check for signal activity on specified pins. User must provide pin mapping. [read-only] [Duration: fast (~2 s -- samples for sample_duration_ms, default 2000).]

scan_baudA

Scan common baud rates and score by readable ASCII output. Returns candidates sorted by confidence. [read-only] [Duration: slow (~15-60 s -- cycles through common baud rates, samples each for a short window). Background-dispatch recommended.]

open_uartB

Open a persistent UART connection and start an engagement. Creates engagement folder and raw logging. [allowed-write] [Duration: fast (~0.5-2 s -- mode switch + folder creation).]

read_outputA

Read available data from an open UART session. Blocks up to timeout. [read-only] [Duration: fast (~timeout_ms; default 5 s). Returns earlier if data is available.]

send_commandB

Send a command over UART and capture the response. [allowed-write] [Duration: fast (~timeout_ms; default 3 s). Returns earlier when response is received.]

close_uartB

Close a UART session and finalize logs. [allowed-write] [Duration: instant.]

set_voltageB

Set power supply voltage (0.8-5.0V) and current limit (0-500mA). DANGEROUS: wrong voltage can damage target hardware. [approval-write] [Duration: instant.]

set_powerB

Enable or disable the power supply. DANGEROUS: affects power to target device. [approval-write] [Duration: instant.]

enter_download_modeA

Put target into UART download mode by toggling GPIO pins. Holds boot pin LOW, pulses reset pin, releases. Works for ESP32, ESP8266, and similar chips. [allowed-write] [Duration: fast (~1-2 s -- GPIO toggle sequence).]

read_flashA

Read flash memory from target via esptool through the Bit-Pirate UART bridge. Optionally enters download mode first. Requires esptool installed. [allowed-write] [Duration: very-slow (~3-5 min for 1-2 MiB at 460800 baud; larger images proportionally longer). Background-dispatch required. Bridge mode persists after dump -- press the Bit-Pirate button or USB-replug to exit.]

open_spiB

Enter SPI mode on the ESP32-Bit-Pirate and start an engagement. Pin map comes from NVS (change with spi_config). [allowed-write] [Duration: fast (~1-2 s -- mode switch).]

spi_probeA

Detect the SPI flash chip via the firmware flash shell. Returns JEDEC ID, manufacturer, model, capacity, and capability notes. [read-only] [Duration: fast (~2-5 s).]

spi_readA

Read a region of SPI flash memory as a hexdump (firmware menu 5). [read-only] [Duration: fast - slow (serial-bottlenecked ~11.5 KB/s -- ~8 s per 100 KiB).]

spi_dumpA

Dump the entire SPI flash to a file (firmware raw mode, menu 8). Serial-bottlenecked (~91 s per MiB at 115200 baud). [read-only] [Duration: slow - very-slow (4 MiB flash ~ 7 min). Background-dispatch required.] Returns {path, size}.

spi_writeA

Write data to SPI flash (firmware menu 6): from a file, hex string, or ASCII string. DANGEROUS: overwrites flash. [approval-write] [Duration: fast - slow (depends on size).]

spi_transferB

Run a BP6-style SPI instruction, e.g. '[0x9F r:3]' (JEDEC read), '[0x05 r:1]' (status), '[0x06] [0xC7]' (enable + chip erase). Dispatched to the firmware's instruction parser in SPI mode. [read-only for read-only instructions] [Duration: instant - fast.]

spi_configB

Set the SPI pin map (MOSI/MISO/SCLK/CS GPIO, frequency 1-80 MHz, optional WP/HOLD pins). NVS-persisted by the firmware. [allowed-write] [Duration: fast (~2-4 s).]

spi_flash_analyzeA

Run the on-device BinaryAnalyzer over the whole flash: file signatures, sensitive patterns (keys, hashes, URLs), entropy summary. [read-only] [Duration: slow - very-slow (full-chip read ~91 s/MiB + analysis). Background-dispatch recommended.]

spi_flash_searchA

Search the flash for a string pattern (1-32 bytes). Returns match addresses with printable context. [read-only] [Duration: slow (full-chip read ~91 s/MiB). Background-dispatch recommended.]

spi_flash_stringsA

Extract printable strings from the whole flash (min length parameter). [read-only] [Duration: slow - very-slow (full-chip read). Background-dispatch recommended.]

spi_flash_eraseA

Erase the ENTIRE flash chip (firmware menu 9). DANGEROUS: all contents destroyed. [approval-write] [Duration: slow - very-slow (seconds to minutes depending on chip).]

close_spiB

Exit the flash shell and reset the ESP32-Bit-Pirate to HiZ mode. [allowed-write] [Duration: instant.]

open_i2cB

Open an I2C connection and start an engagement. Configures I2C mode with pullups enabled. [allowed-write] [Duration: fast (~0.5-2 s -- mode switch + folder creation).]

i2c_scanB

Scan the I2C bus for devices. Returns 7-bit addresses with device hints. [read-only] [Duration: slow (~3-10 s -- sweeps all 128 7-bit addresses). Background-dispatch recommended.]

i2c_readB

Read bytes from an I2C device, optionally from a specific register. [read-only] [Duration: instant.]

i2c_writeA

Write bytes to an I2C device register. DANGEROUS: may alter device configuration or EEPROM contents. [approval-write] [Duration: instant.]

i2c_dumpC

Dump memory from an I2C device by reading all registers sequentially. Saves to artifacts. [read-only] [Duration: slow for large sizes (~1-2 min for 64 KB EEPROM). Fast for small sizes (256 bytes ~2-5 s). Parameterized by size. Background-dispatch recommended for large dumps.]

close_i2cB

Close an I2C session and reset the ESP32-Bit-Pirate to HiZ mode. [allowed-write] [Duration: instant.]

open_1wireB

Open a 1-Wire connection and start an engagement. Configures 1-Wire mode with pullup enabled. [allowed-write] [Duration: fast (~0.5-2 s -- mode switch + folder creation).]

onewire_searchA

Search for a device on the 1-Wire bus using Read ROM (0x33). Returns family code, serial number, and CRC validity. Works when exactly one device is present. [read-only] [Duration: fast (~1-3 s -- Read ROM sequence).]

onewire_readC

Send arbitrary bytes on the 1-Wire bus and read back a response. [read-only] [Duration: instant.]

close_1wireA

Close a 1-Wire session and reset the ESP32-Bit-Pirate to HiZ mode. [allowed-write] [Duration: instant.]

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 33 tools

Disambiguation3/5

The per-protocol grouping keeps most tools distinct, but flash reading is split across three overlapping entry points (read_flash via esptool/UART bridge, spi_dump via firmware shell, spi_read/spi_flash_search/spi_flash_strings for regions and analysis) and an agent could easily pick the wrong path or protocol family. Detailed descriptions and duration hints help, but the boundaries are only resolvable by careful reading of mechanism (bridge vs shell vs on-device analyzer).

Naming Consistency3/5

Most tools follow a readable prefix_verb pattern (open_spi, spi_read, i2c_write, close_uart), but the convention drifts: 'onewire_*' vs 'close_1wire', and an inconsistent 'spi_*' versus 'spi_flash_*' split that mixes raw-shell ops with whole-chip analysis ops. It remains interpretable but is not a single predictable pattern.

Tool Count3/5

33 tools is heavy, but the breadth is largely earned by four protocol families (SPI, I2C, UART, 1-Wire) plus power control, each needing open/close and a handful of operations. Still, the SPI family alone consumes 13 tools with visible redundancy (spi_dump vs read_flash vs spi_read), so trimming would improve the surface.

Completeness4/5

Each protocol has session open/close plus the expected read/write/scan operations, and there is power control, device discovery, and download-mode entry, so the hardware-engagement lifecycle is well covered. Minor gaps: no region-scoped erase (only full-chip spi_flash_erase with spi_write overwrite), no session listing/teardown-all, and no general GPIO manipulation beyond the hardcoded download-mode sequence.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues