Expand description
gallo-mcp — an MCP server exposing a Pico de Gallo device to AI agents.
Wraps pico_de_gallo_lib::PicoDeGallo and presents one MCP tool per
peripheral operation over stdio. Bytes cross the tool boundary as hex
strings (in) and encoding::Bytes (out). Write/actuation tools are
annotated destructive_hint = true; approval is delegated to the MCP
client.
Modules§
- adc
- ADC tools.
- device
- Device-level tools: enumeration, status, info, version, ping.
- encoding
- Byte-payload encoding and argument validation for MCP tools.
- error
- Mapping from
pico-de-gallo-liberrors tormcp::ErrorData. - gpio
- GPIO tools (timeout-bounded edge waits only; no subscriptions).
- i2c
- I2C tools.
- onewire
- 1-Wire tools.
- pwm
- PWM tools.
- spi
- SPI tools.
- uart
- UART tools.
Structs§
- Gallo
Mcp - The MCP service. Holds only the device selector and a connection lock; the
USB connection is opened per tool call by
GalloMcp::connectand released when the call completes, so the board is free for other host processes between calls.