Rig management
list_rigs
List all registered rigs with connection status.
Parameters: None
Returns:
get_rig_config
Get connectivity status and hardware summary for one rig.
Parameters:
Returns:
register_rig
Register a new rig and return its API key.
Parameters:
Returns:
Test runs
list_runs
List recent test runs, optionally filtered by rig.
Parameters:
Returns:
get_run_summary
Get a full summary of one run including pass rate and duration.
Parameters:
Returns:
run_test_suite
Create a queued run and push it to the connected agent.
Parameters:
Path to the YAML suite manifest as known to the agent (e.g.
tests/suites/engine_validation.yaml).run_id for polling.
cancel_run
Cancel a running test suite.
Parameters:
Returns:
Result inspection
get_results
List test results for a run.
Parameters:
Returns:
get_signal_trace
Extract signal samples for a specific signal across the most recent tests in a run.
Searches up to 5 test results. Returns up to 100 samples per test.
Parameters:
Returns:
describe_failure
Get complete failure context for one test in one run. This is the primary tool for AI failure analysis — it returns everything needed for root-cause analysis in a single call.
Combines: run metadata, error messages, log lines, signal traces (up to 5 signals, 100 samples each).
Parameters:
Returns:
Signal and suite introspection
list_signals
Parse a DBC file and return metadata for every signal.
Parameters:
Path to the
.dbc file, relative to the working directory when the MCP server was started.list_tests
Parse a YAML suite manifest and return metadata for every test.
Parameters:
Returns:
AI-assisted tools
generate_test_suite
Scaffold a YAML manifest and Python stubs, optionally with AI-generated assertions.
Parameters:
Returns:
analyze_component
Extract the signal interface contract of a C/C++ software component.
Requires pip install 'crucihil[analyze]'.
Parameters:
Returns:
Authoring and verification
author_component
Author a self-verified test suite from component source code. Chains: analyze (signal contract with evidence chains) → generate → baseline gate (must run green on the rig, with AI repair rounds) → write. Broken AI output never reaches disk — a deterministic static generator is the guaranteed fallback.
Runs entirely on the machine hosting the MCP server (source code and rig TOML are local paths). Writes the suite files into output_dir.
Parameters:
Firmware repo root — enables cross-component port-graph resolution (shared-memory indirection).
{"error": "...", "stage": "analyze" | "generate" | "baseline" | "write"}.
verify_suite
Mutation-verify a test suite and return its strength report. Runs the suite once as a baseline, then once per mutation. Outcome per test: caught (test failed — good), missed (test stayed green while the behavior was broken — vacuous), wrong_reason (test went blocked/error instead of failing). A suite score of 1.0 means every planned mutation was caught.
Works on native CruciHiL suites and on existing pytest / Robot Framework suites with zero rewrites.
Parameters:
Native YAML manifest, or a pytest/Robot test tree when
framework is given. A YAML manifest with a framework: field routes automatically.Contract artifact (
contracts/<component>.json) — sharpens the mutation plan with the component’s real outputs.report_path appears only when it was requested. On failure, returns {"error": "..."}.
get_strength_report
Read a previously saved mutation strength report JSON.
Parameters:
Returns: The saved strength report (same shape as verify_suite), or {"error": "..."} if the file is missing or not valid JSON.
detect_coverage_gaps
Find what a component’s tests never exercised (coverage gaps). Compares the component contract (which signals the component touches) against the signal traces recorded by a run’s tests. Reports signals never tested at all and value regions never reached (“never tested BrakePressure > 80% of range”), each with a proposed gap test whose description can be passed straight to generate_test_suite.
Parameters:
Returns:
kind is one of untested, upper_range, lower_range. On failure, returns {"error": "..."}.