fpv-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FPV_SSH_HOST | No | Optional SSH offload host to a Linux host you configure yourself; unused unless a tool is called with target="testhost". | testhost |
| FPV_REMOTE_ENV | No | Optional SSH offload remote environment file; unused unless a tool is called with target="testhost". | ~/fv-tools/env.sh |
| FPV_REMOTE_TMP | No | Optional SSH offload remote temporary directory; unused unless a tool is called with target="testhost". | /tmp/ai4fpv_jobs |
| FPV_MAX_WORKERS | No | Parallel workers for per-property proofs and background jobs. Default: max(1, min(4, cpu_count // 2)). | |
| FPV_OSS_CAD_DIR | No | OSS CAD Suite root. Default: auto-detected via `yosys` on PATH, then D:\oss-cad, C:\oss-cad, C:\oss-cad-suite, %USERPROFILE%\oss-cad-suite. If set, it must be right: a wrong value is reported, not silently replaced. | |
| FPV_DEFAULT_TIMEOUT | No | Default solver timeout in seconds. | 600 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
AI4FPV: Deterministic RTL Formal Verification MCP Server built on OSS CAD Suite (Yosys/Slang, SymbiYosys, ABC, Bitwuzla/Boolector/Yices/Z3/Pono). Follow the rtl-fpv-workflow skill: analyze COI first, run cover before BMC, use per-property ABC PDR before monolithic prove, inspect CEX traces via fv_inspect_cex, and gate sign-off with mutation checks and semantic bridging.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| fv_env_checkA | Check local OSS CAD Suite tools (yosys, slang plugin, sby, abc, solvers) and versions. Set check_remote=True ONLY when explicitly requested to probe remote SSH testhost. |
| fv_list_modelsA | List the built-in formal models installed with this edition: stand-in models for vendor IP modules and primitive libraries for netlist SEC. An edition may have none; the result then says so. Optional category filter; the unfiltered result lists the categories that exist. |
| fv_analyze_designB | Elaborate RTL + formal harness to inspect state complexity (FF/memory leaderboard), inventory asserts/assumes/covers, detect missing/blackbox modules, and warn on Yosys-vs-Synplify-vs-Questa silent semantic-divergence hazards. aux_files (.mem/.hex/.dat ROM tables read by $readmemh/$readmemb) are staged into the working directory without being passed to the HDL frontend. |
| fv_run_sbyA | Run a SymbiYosys (SBY) job in an isolated workspace with reliable process-tree timeout. Supports either an existing .sby file OR declarative files+top+aux_files+probes+cutpoints. aux_files (.mem/.hex/.dat ROM tables) are staged into [files] without being passed to read_slang. target='local' runs with the local OSS CAD Suite; target='testhost' offloads over SSH and cleans remote temp dirs. Long runs: MCP clients abort a call that stays silent for about 30 minutes. For anything that
may exceed ~20 minutes pass background=True: the call returns a Reading the result: skip=N (bmc/cover) skips assertion checks for the first N steps; extra_options adds raw lines
to the generated [options] section. keep_traces=False also disables VCD writing ( |
| fv_job_statusA | Poll a background job started with fv_run_sby(background=True).
While running it returns state='RUNNING' with the deepest BMC step / PDR frame reached so far;
once finished it returns state='DONE' plus the complete fv_run_sby result under |
| fv_job_cancelA | Cancel a background job: kills its whole process tree (sby, yosys-smtbmc, solvers). The job then finishes with status='CANCELLED'; fv_job_status still returns the step it reached. |
| fv_prove_per_propertyB | Elaborate ONCE into a folded AIGER (+ optional BTOR) model, then prove every assertion independently
in parallel using ABC ( |
| fv_inspect_cexA | Parse an SBY counterexample VCD (trace.vcd or trace_induct.vcd) into a compact Markdown table with step-0 and final-step state summaries and induction-vs-BMC triage guidance. One row per clock cycle (SBY's half-cycle clock-low rows are dropped). Columns follow the order
of |
| fv_run_sec_rtlA | Run RTL-vs-RTL Sequential Equivalence Checking (SEC).
method='auto' (default) directly runs a reset/warmup-aware miter + ABC |
| fv_run_sec_netlistB | Run RTL-vs-Synplify (.vm) netlist SEC.
Automatically audits netlist primitives against the built-in primitive models (when this edition
has them, see fv_list_models) plus |
| fv_check_mutationB | Mutation quality gate to expose vacuous or overly weak formal properties.
|
| fv_export_yosys_netlistC | Export Yosys-interpreted Verilog netlist for QuestaSim semantic-bridging simulation. Set splitnets=True when exporting for EBMC to work around bit-wise vector assignment bugs. |
| fv_generate_reportA | Generate a standardized Formal Verification Sign-off Markdown report.
Pass |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
The 13 tools mostly map to clearly distinct actions (environment check, model listing, design analysis, job management, report generation). The family of proving tools (fv_run_sby, fv_prove_per_property, fv_run_sec_rtl, fv_run_sec_netlist, fv_check_mutation) has some conceptual overlap in 'run a proof,' but descriptions make the boundaries reasonably clear (general SBY vs per-assertion ABC vs RTL/RTL SEC vs RTL/netlist SEC vs mutation).
All tools share a consistent fv_ prefix and snake_case, which is strong. Minor inconsistency exists between verb-first names (fv_run_sby, fv_prove_per_property, fv_generate_report) and noun-first names (fv_env_check, fv_job_status, fv_job_cancel), but the pattern is still readable.
13 tools is well within the ideal 3-15 range and each tool earns its place in a formal verification flow. No redundant entries; job status/cancel are a natural pair supporting the background-run capability.
The surface covers the full flow: environment, models, analysis, multiple proof engines (BMC/PDR, per-property, SEC RTL/netlist), mutation, counterexample inspection, netlist export, job control, and sign-off reporting. Minor gaps remain, such as no dedicated cover/coverage-depth command or a way to list past runs for re-reporting, but agents can work around these via fv_run_sby and fv_job_status.