devpsu-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@devpsu-mcp Power cycle the device under test."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
devpsu
Agent-friendly bench power supply control, built for the Agentic Firmware Workbench. Set voltage/current, switch the output, and power-cycle the device under test on B&K Precision 1685B/1687B/1688B supplies (and Manson HCS-3xxx, which share the same protocol) — from the command line or from an AI agent via MCP.
Sibling of devpower (USB port
power) and devsignal (signal generation). Typical use: an agent's DUT wedges
hard enough that a debug-probe reset doesn't help — the agent runs
power_cycle on the supply and the board cold-boots.
Supported hardware
Built against the 1687B (36 V / 10 A). The ASCII-over-serial protocol is shared by the 1685B (60 V / 5 A) and 1688B (18 V / 20 A) and the Manson HCS-3xxx family they're based on. USB appears as a virtual COM port (9600 8N1) — no drivers needed on macOS/Linux.
Note for the 1685B: it uses two current decimals; pass
--current-decimals 2 (CLI) or current_decimals=2 (API).
Related MCP server: rs3005p-mcp
Install
pip install .Requires Python 3.10+.
Safety model
An agent controlling DUT power deserves guardrails. devpsu has four:
Session limits (human-in-the-loop) — on the first supply-changing MCP call of a session, the user is prompted (MCP elicitation) for the session's max voltage/current. Agent requests above them require explicit user approval;
output_on/power_cyclecheck the present setpoints too, andoutput_offis never gated. Hosts without elicitation support fail safe (over-limit requests are refused).Environment hard ceiling — set
DEVPSU_MAX_V/DEVPSU_MAX_Aand any request above them is refused before touching the hardware — not even in-session user approval overrides these.The supply's own protection —
devpsu limits --ovp 5.5 --ocp 1.0programs the instrument's OVP/OCP as a second, firmware-level layer.Agent-facing guidance — the MCP tool descriptions tell agents to verify setpoints against the DUT's rating before enabling the output.
Also set DEVPSU_PORT to pin the serial port on single-supply benches:
auto-discovery probes USB-serial ports with a benign query, which you may
not want on a bench with DUT consoles attached.
Multiple supplies
devpsu list shows every supply with its USB location, model maxima,
and present setpoints. Identical supplies often ship USB bridges with the
same serial number, making /dev/cu.usbserial-* names unstable - so
--port (and the MCP port argument) also accepts the location string,
which is tied to the physical USB topology:
$ devpsu list
/dev/cu.usbserial-0001 loc=34-2.1.4.1.2.1 max 36.2V/12.0A set 24.0V/2.0A
/dev/cu.usbserial-4 loc=34-2.1.4.1.4 max 36.2V/12.0A set 12.1V/3.0A
$ devpsu --port 34-2.1.4.1.4 status # select by locationSession safety limits are kept per physical supply (keyed by location), so each rail gets its own ceiling and its own approval prompts.
CLI
devpsu list # probe for supplies
devpsu status # setpoints, live V/A, CV/CC, limits
devpsu set --volts 3.3 --amps 0.5
devpsu on / devpsu off
devpsu cycle --hold 5 # power-cycle the DUT
devpsu limits --ovp 5.5 --ocp 1.0
devpsu raw GETD # protocol escape hatch
devpsu --json status # machine-readableMCP server
devpsu-mcp runs an MCP server over stdio exposing list_supplies,
get_status, set_voltage, set_current, output_on, output_off,
power_cycle, and set_protection.
Register with Claude Code (with guardrails):
claude mcp add --scope user devpsu -e DEVPSU_MAX_V=5.5 -e DEVPSU_MAX_A=2 devpsu-mcpDevelopment
pip install -e ".[dev]"
pytestThe test suite runs against a fake serial layer — no supply required.
License
MIT
Available Tools
6 toolsget_statusA
Full snapshot: setpoints, live output readings (V/A/CV-or-CC), OVP/OCP limits, model max.
Inputs: port.
list_suppliesA
Probe USB-serial ports for supplies (port + model max V/A).
Probing writes a benign query to candidate serial ports; prefer a pinned DEVPSU_PORT on benches with other serial devices.
Inputs: no named parameters. Returns: result
output_offA
Switch the output OFF, cutting DUT power immediately. Do not use mid-flash. (Never gated - cutting power is always allowed.)
Inputs: port.
output_onB
Switch the output ON at the present setpoints (session-limit gated). Returns live readings.
Inputs: port.
set_currentA
Set the current limit. A tight current limit is the cheapest DUT protection - set it before output_on.
Inputs: amps (required), port.
set_voltageA
Set the output voltage setpoint (does not switch the output on).
Gated by session safety limits: the user is prompted on first use and must approve anything above the session max.
Inputs: volts (required), port.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool serves a distinct function: probing ports, reading status, setting voltage, setting current, turning output on/off. No overlapping purposes.
All tools use consistent snake_case with a verb_noun pattern (list_supplies, get_status, set_voltage, etc.) with no deviations.
6 tools is well-scoped for a power supply controller, covering essential operations without unnecessary clutter.
Covers probing, status, voltage/current setting, and output control, but lacks explicit tools for setting OVP/OCP limits, which are only reported in get_status.
Maintenance
Related MCP Connectors
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for programmable bench power supply control, enabling autonomous bootloader-entry probing via precise power cycling and telemetry.1-
- AlicenseAqualityDmaintenanceAn MCP server that lets AI agents control an RS PRO RS-3005P/RS-6005P programmable DC power supply over USB/RS232, enabling voltage/current control, measurements, output switching, and memory operations.14MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for ADALM2000 (M2k) — AWG, scope, and PSU control via FastMCP 3.4.-
- AlicenseBqualityBmaintenanceAn MCP server for controlling lab instruments (oscilloscopes, signal generators, etc.) via standardized interfaces like USBTMC, RS-232, and LAN.100MIT