Hardware-in-the-loop MCP server for AI coding agents: develop firmware on the real board behind your debug probe, flashing, resetting and driving UART and CAN against it. The run on the hardware is the gate that decides the work is done, and a pytest plugin runs the same gate in CI.
agentic-hil provides 19 hardware-testing tools with consistent naming (verb-noun pattern: debugger_set, flash, reset, etc.) and basic descriptions. However, critical gaps significantly limit LLM usability: (1) parameter descriptions are minimal or absent for most tools, e.g., 'debugger_read' lists only 'index: integer' with minimal context about what a debugger index means or how to obtain one; (2) output schemas are completely undocumented, no tool documents what it returns, forcing LLMs to guess what fields are available for chaining; (3) error handling and recovery guidance are absent, tools like 'flash' (DESTRUCTIVE) and 'write_memory' have no indication of failure modes, retryability, or corrective actions; (4) parameter enums are sparse, 'reset' type is correctly constrained to [soft, hard], but most other tools with natural enumerations (e.g., uart_read, uart_write, can_send) lack formal constraints; (5) security concerns are unaddressed, no evidence of permission gates, audit logging, or rate limiting declarations for sensitive operations like 'flash', 'write_memory', and 'server_upgrade'. Per-tool analysis reveals: high-risk tools (flash, write_memory, server_upgrade) lack dry-run options or confirmation patterns; configuration tools (project_config_*) lack dependency documentation; UART and CAN tools lack format specifications for 'data' parameters (hex encoding mentioned inline but not formally validated). The server follows a sensible domain model for hardware-in-the-loop testing but lacks the precision required for reliable agent interaction.
Receive a CAN message from the CAN bus connected to the target device
Send a CAN message on the CAN bus connected to the target device
Read debugger configuration from the target hardware
Set debugger configuration for the target hardware device
Flash firmware to the target hardware device
Halt execution on the target hardware device
Adopt and apply discovered hardware resources to the project configuration
Describe the current project configuration for hardware-in-the-loop testing
No output schemas documented for any tool. LLMs cannot determine what fields to expect or plan downstream tool chains. This violates the foundational pattern:tool requirement and blocks multi-step agent reasoning.
Destructive/high-risk tools (flash, write_memory, server_upgrade) lack dry-run, confirmation, or rollback guidance. No error recovery patterns. LLMs may trigger irreversible hardware changes without safeguards.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
Reload the project configuration from disk
Set project configuration for hardware-in-the-loop testing
Read memory from the target hardware device
Request graceful stop of the current hardware test run
Reset the target hardware device
Resume execution on the target hardware device
Get the current status of a hardware test run
Upgrade the agentic-hil server to a newer version
Read data from UART serial port on the target device
Write data to UART serial port on the target device
Write memory to the target hardware device
Parameter descriptions are generic or missing crucial context. 'index' in debugger_set is described only as 'Debugger index', no guidance on valid range, how to discover available debuggers, or what happens if index is out of bounds. 'data' in write_memory lacks format details (hex encoding mentioned in description but not validated). LLMs cannot self-correct invalid input.
No error handling or recovery guidance in any tool description. A flash failure, UART timeout, or CAN message drop provides no hint to the LLM about retryability, causation, or next steps. Pattern:recovery-guide is completely absent.
Tools with natural enumerations lack formal enum constraints. 'uart_read' and 'uart_write' accept 'port' as a free string, should enumerate valid ports (e.g. /dev/ttyUSB0, COM3, UART1). 'can_send' accepts raw can_id as integer without bounds. LLMs may hallucinate invalid values.
project_config_set accepts a bare 'config' object with type='object' but no schema/properties defined. LLMs have no way to know what fields this object should contain, their types, or constraints. Violates pattern:tool requirement for complete schemas.
No security or permission declarations. Sensitive operations (flash, write_memory, server_upgrade) lack gating mechanisms, audit logging statements, or scope/permission documentation (pattern:scope-declaration, pattern:permission-gate). No evidence of rate limiting or secret injection practices.
No tool chaining support evident. E.g., 'read_memory' returns undocumented schema, does it return a 'data' field? Can that be piped to 'write_memory'? No documentation of which outputs are compatible with which inputs. Violates pattern:tool-chain.
Parameter naming lacks clarity for ambiguous fields. 'offset' in flash is described as 'Flash offset address (optional)', but optional to what operation? What's the default? Why would an LLM include or exclude it? Missing dependency documentation (pattern:param-relationships).