# Agentic HIL [Health: Active]

**Category:** 📟 Embedded System  
**Repository:** https://github.com/agentic-hil/agentic-hil  
**GitHub Stars:** 36  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agentic-hil

## Description
Policy-gated MCP tools for embedded hardware-in-the-loop testing on real devices.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "agentic-hil": {
    "command": "uvx",
    "args": ["agentic-hil"]
  }
}
```

## Documentation

## What Agentic HIL does

Agentic HIL connects coding agents and CI workflows to real embedded devices. It provides an MCP path for hardware actions and a pytest plugin for CI suites, allowing an agent to build firmware, install it on a board, exercise the device, and use observed results to guide further changes.

Safety and access control are central to the execution flow. Hardware requests pass through a shared gate that checks declared devices, permissions, validation rules, and timeouts before a driver is opened. Configuration and audit records remain outside the agent's workspace, while each action produces structured outcome and diagnostic data with paths to reports and logs.

The project supports Linux, macOS, and Windows with Python 3.10 or newer. It is aimed at embedded development teams that need real-device verification, repeatable bench runs, or a controlled way to expose hardware to an AI coding agent.

## How it works

A bench configuration maps logical devices in a test plan to physical boards, probes, ports, and buses. YAML plans describe the required sequence of operations and expected device behavior. Before touching hardware, the reactor validates the plan; during execution it can flash, reset, communicate with the device, and compare responses with exact values, patterns, or numeric ranges.

A failed step stops the run. Cleanup, configured recovery actions, and their results are recorded with the test output. The resulting feedback gives the agent concrete pass or fail data for diagnosis and another firmware iteration.

A board can also be exposed as a shared bench. Running `agentic-hil serve` on the machine attached to the hardware accepts submitted plans over HTTP. Jobs run under the bench machine's configuration and permissions, and clients can submit from the command line, CI, `curl`, or an agent using the bench MCP endpoint. Shared benches do not provide authentication, so they should be placed on a trusted network.

## Setup and configuration

Install for the current user without administrator rights using the platform installer:

```bash
curl -LsSf https://agentic-hil.github.io/install.sh | sh
```

On Windows PowerShell, use:

```powershell
irm https://agentic-hil.github.io/install.ps1 | iex
```

The installer registers the MCP server and skill with supported agent CLIs it finds on `PATH`, installs outside project repositories, and may update the user-level executable path. Restart the agent after installation. Claude Code can alternatively install the skill through its plugin marketplace, although the installer is still needed to provide and register the MCP server.

The package requires Python 3.10 or newer. Hardware setup depends on the selected probe, backend, serial interface, and CAN interface. A no-hardware plan check is available with `agentic-hil check-plan <path>`; it validates that plans load without loading a bench or contacting a device.

## Tools and capabilities

- Flash and reset STM32 targets through ST-Link with OpenOCD or STM32CubeProgrammer.
- Use CMSIS-DAP probes through pyOCD.
- Flash and reset ESP32 targets through esptool and a USB-UART bridge without opening a debug session.
- Send commands and read responses over serial ports and CAN buses.
- Connect through PCAN, SocketCAN, or a custom CAN bridge; multiple runs can share a CAN bus through the broker.
- Validate YAML test plans and execute ordered hardware checks against exact values, patterns, and numeric ranges.
- Submit plans to a network bench over HTTP and run the same plans from local development or CI.

## Limitations and notes

Hardware support depends on the available probe and backend. The supported paths described by the project include ST-Link, CMSIS-DAP, ESP32 USB-UART flashing, serial connections, and the listed CAN backends.

The shared HTTP bench has no authentication. Use it only on a network whose participants are trusted. Agents cannot expand their granted authority through MCP; permissions and device declarations must be configured by the operator. Use the operator-side grant and revoke commands to change individual permissions.

A test plan failure stops the run, although cleanup and configured recovery actions are recorded. Plans can be checked without a board, but actual execution requires a configured and attached bench.

_Full upstream README: https://allmcps.com/mcp/agentic-hil/readme_

