Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lagerdata.com/llms.txt

Use this file to discover all available pages before exploring further.

Features

MCP Server for AI Assistant Integration

Full Model Context Protocol (MCP) server enabling AI assistants to control Lager hardware directly:
  • 165+ tools across 21 modules covering all Lager CLI functionality: power supplies, batteries, solar simulation, electronic loads, I2C, SPI, UART, BLE, WiFi, USB, ADC, DAC, GPIO, oscilloscope, debug, robotic arm, webcam, and more
  • Run with python -m cli.mcp or mcp dev cli/mcp/server.py
  • Built on FastMCP with subprocess-based CLI wrapping for reliable operation
  • Power supply and battery tools auto-pass --yes to skip confirmation prompts for safe automated operation

MCP Test Suite

Comprehensive test coverage for the MCP server:
  • 254 unit tests with mocked subprocess calls (no hardware required, runs in ~0.6s)
  • 64 integration tests against real Lager Boxes covering power, battery, eload, I2C, SPI, ADC, DAC, GPIO, USB, and defaults
  • Safety fixtures auto-disable power output in test teardown

Improvements

  • Cleaned up LabJack T7 SPI driver code

Installation

To install this version:
pip install lager-cli==0.3.26
To upgrade from a previous version:
pip install --upgrade lager-cli

Resources

View Release on PyPI