MCP ScannerCustom audit
All servers

Tencent/wave-mcp

Open-source, license-free MCP server for RTL waveform debug: reads FST waveforms (VCD/FSDB auto-convert) plus a SystemVerilog netlist, with 34 tools covering driver analysis, value/X tracing, pass-fail waveform diff, a browser wave viewer the agent drives, and pre-simulation static analysis.

Packagewave-mcp
Version1.1.1 in pyproject.toml
PublisherTencent Official
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 285Forks 41Last push 2026-11-16
Python 98.0%JavaScript 2.0%by source files the scanner reads
Code safetypartly tracedExposure6.0Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence75%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.0/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 305 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 1 of 38 tools, prompts and resources could not be followed through the code

Top risks in plain words

  • MEDIUMTool open_static_session reads or writes any file path by design: an agent steered by prompt injection can use it that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    open_static_session can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need open_static_session, switch them off.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 38 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Start other programs on the machinecan run commands or launch programs
convert_fsdb_to_fst, convert_vcd_to_fst, open_wave_view
3 of 38
Read or write filesopen, create, change or delete files
convert_fsdb_to_fst, convert_vcd_to_fst, diff_waveforms, open_session, open_static_session, open_wave_view and 1 more
7 of 38
Read environment variablesoften where API keys are kept
convert_fsdb_to_fst, convert_vcd_to_fst, open_static_session, open_wave_view
4 of 38

No tool was seen to: connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files3 tools · convert_fsdb_to_fst, convert_vcd_to_fst, open_wave_view

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (38: 38 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

open_static_sessiontool Open a pure static-analysis session from RTL sources — NO waveform needed.FilesEnv varsReads/writes files
Open a pure static-analysis session from RTL sources — NO waveform needed.

    Builds the RTL netlist (pyslang elaboration) and opens the session in one
    call, so you can explore a design before any simulation exists:
    connectivity, drivers, loads, fan-in, hierarchy, module/file/declaration
    queries all work from source code alone.

    Use this to understand design structure, review driver/fan-in relations,
    or check interfaces before running a sim. Waveform tools (signal_values*,
    trace_value, trace_x, active_drivers) return a clear "needs waveform" hint;
    later, call prepare_session with the same RTL sources and your dumped
    .fst/.vcd to upgrade — the netlist built here is reused, not re-elaborated.

    Args:
        out_dir: where to keep the session (session.json, netlist maps).
            Usually omit it: the session lands under the wave-mcp session root
            in a directory named after the RTL sources, which is exactly where
            a later prepare_session on the same sources looks for the netlist.
            Give it only when the directory has to live at a specific place;
            it is then used as given (and the later prepare_session must name
            the same out_dir to reuse the netlist).
        top: top module name for elaboration.
        filelist / filelist_path: RTL source list. A .f filelist is parsed for
            +incdir+/+define+/-y automatically.
        incdirs: extra `+incdir+` directories for netlist elaboration.
        defines: extra `+define+NAME[=VAL]` macros for elaboration.

    Returns the session summary (mode: "static") plus per-step timing.
active_driverstool Get the active driver(s) of a signal at a time point (dynamic; needs UHDM+FST).
Get the active driver(s) of a signal at a time point (dynamic; needs UHDM+FST).

    ``path`` may be omitted when the defaults hold exactly one signal, and
    ``time`` falls back to the query defaults's window start.

    A malformed time string is answered with a structured invalid_argument
    error instead of raising.
close_sessiontool Close a session and release its reference to the loaded data.
Close a session and release its reference to the loaded data.

    The data itself stays loaded while any other session still uses it, so
    closing one session never disturbs another. An unknown, somebody else's or
    already-closed session all report ``no-such-session``, which keeps the reply
    from confirming whether an id exists.
close_wave_viewtool Close a wave view and release its server and streaming backend.
Close a wave view and release its server and streaming backend.

    Views stay open until closed, so a batch that opens many of them should
    close each one when done. The streaming backend is shared between views
    on the same waveform set and is only stopped once no view still uses it.

    Args:
        view_id: the view to close. Required unless all_views is set.
        all_views: close every open view instead of a single one.
convert_fsdb_to_fsttool Convert a Synopsys FSDB to FST via the bundled fsdb2fst (single pass).ProcessesFilesEnv varsoutside text
Convert a Synopsys FSDB to FST via the bundled fsdb2fst (single pass).

    ``prepare_session`` already converts ``.fsdb`` automatically, so reach for
    this tool when you want to inspect or control the conversion first: check
    the scale and signal census of a huge file (``info_only=True``), or convert one
    subtree at a time. No VCD intermediate; requires Verdi's FsdbReader runtime
    on this machine (checks out no license). See docs/FSDB_GUIDE.md.

    Args:
        fsdb_path: input .fsdb path.
        out_path: output .fst path. Default: ``<name>.fst`` beside the FSDB,
            the same file ``prepare_session`` and ``open_wave_view`` reuse
            (overwritten if present); the wave-mcp cache when the FSDB's
            directory is not writable or ``scopes`` / ``signals_file`` make
            it a partial conversion, reported in ``notice``. The companion
            ``<fst>.hier`` sidecar is written alongside and BOTH files are
            needed to open the FST.
        scopes: convert only signals whose full path contains any of these
            substrings (fsdb2fst -l). Required for very large designs: the loader
            refuses batches above 5M signals and can crash beyond that regardless.
        signals_file: file with exact signal paths, one per line (fsdb2fst -L).
        pack: FST compressor: "lz4" (default), "fastlz" (fastest) or "zlib" (smallest).
        timeout: optional conversion timeout in seconds; default auto-estimates
            from the file size. A converter that stops writing output fails
            fast with its byte count instead of hanging indefinitely.
        info_only: only report scale + signal census, convert nothing.

    Returns the output path, timing, sizes and the signal census (real /
    strength-skipped / unsupported-type counts).
convert_vcd_to_fsttool Convert an xrun-produced VCD to FST (fast).ProcessesFilesEnv varsoutside text
Convert an xrun-produced VCD to FST (fast).

    xrun's open/parseable dump is VCD; FST is ~1/50 the size and supports fast
    random access, which is what this server reads. Uses GTKWave ``vcd2fst`` with
    the fastest options.

    Args:
        vcd_path: input .vcd path.
        out_path: output .fst path. Default: ``<name>.fst`` beside the VCD,
            the same file ``prepare_session`` and ``open_wave_view`` reuse
            (overwritten if present); the wave-mcp cache when the VCD's
            directory is not writable, reported in ``notice``.
        pack: FST compressor: "fastlz" (fastest, default), "lz4" or "zlib" (smallest).
        timeout: optional conversion timeout in seconds; default auto-estimates
            from the file size. A converter that stops writing output fails
            fast with its byte count instead of hanging indefinitely.

    Returns timing, sizes and compression ratio. For *zero* extra wall-clock
    cost, dump straight into a FIFO and stream-convert during simulation
    (see the ``wave-vcd2fst --stream`` CLI / README).
diff_waveformstool Compare two or more FST waveforms and find the first divergence.Files
Compare two or more FST waveforms and find the first divergence.

    Turns "what changed between these runs" into one deterministic call:
    returns the first divergence time, the earliest-diverging signals (prime
    suspects; later ones are usually downstream contagion) and an honest
    coverage flag. Follow up with signal_fanin/active_drivers on the earliest
    diverger, then open_wave_view with the runs and a marker there.

    With more than two runs each diverging signal also reports ``groups``: the
    run indices partitioned by the value they hold. How the runs split is itself
    the evidence — three agreeing against one points at that run's stimulus,
    while a two-two split points at a configuration difference. A run that has
    no value yet at that point joins no group rather than counting as different.

    Args:
        fst_paths: two or more FST paths. Reply indices follow this order, so
            index 0 is conventionally the passing run.
        scope: restrict comparison to signals under this instance path —
            strongly recommended on full-chip waveforms.
        signals: explicit signal paths to compare (overrides scope).
        clock: sample on this clock's rising edges instead of raw events;
            filters phase-jitter/glitch false divergences.
        after: ignore differences before this time (e.g. "200ns" to skip
            reset); default compares from time 0.
driver_contributorstool Get the contributing signals (RHS / control) of a driver (needs UHDM).
Get the contributing signals (RHS / control) of a driver (needs UHDM).
filestool List the design's source files, find one by name, or read a file's modules.
List the design's source files, find one by name, or read a file's modules.

    Three shapes of the same file index:

      - no arguments      -> every source file participating in the design
      - ``name``          -> full paths whose short name matches (substring, or
                             exact with ``exact=True``)
      - ``modules_of``    -> the module definitions declared in that file

    Note ``modules_of`` takes a *filesystem* path, not a design hierarchy path.

    Args:
        name: (partial) file short name, e.g. "uart_core.sv".
        exact: require the short name to match exactly rather than as a substring.
        modules_of: full path of a source file whose modules you want.
find_instancestool Locate instances, either by module definition or by position in the tree.
Locate instances, either by module definition or by position in the tree.

    Two ways in, same instance tree:

      - ``module``  -> every instantiation path of that module definition,
                       optionally narrowed by ``name_contains`` (a substring of
                       the instance's own leaf name).
      - ``under``   -> the instances below that scope; ``under=""`` starts at the
                       top of the design. ``max_depth`` controls the depth.

    At least one of ``module`` / ``under`` / ``name_contains`` must be given, so
    a bare call cannot accidentally dump the whole hierarchy. To walk from the
    top explicitly, pass ``under=""``.

    Args:
        module: module definition name, e.g. "uart_core".
        under: parent scope path; "" means the top of the design.
        name_contains: substring filter on the instance leaf name.
        max_depth: with ``under``, how many hierarchy levels to descend (1-10).
        limit: cap on returned rows when walking the tree.
        filter_noise: with ``under``, drop anonymous begin/fork blocks
            (testbench noise) and keep only real design hierarchy.
find_time_windowstool Find the time intervals where a boolean condition over signals holds.
Find the time intervals where a boolean condition over signals holds.

    Returns intervals, not values, so "when was req high while cnt stayed above
    1" is one call instead of a value dump plus local post-processing.

    An omitted ``start`` / ``end`` falls back to the session query defaults (see
    ``query_defaults_set``); the reply carries ``_defaults_used: true``
    when it did.

    The predicate is an expression object. Leaves:
      {"k":"sig","name":"top.u.req"}     signal value (paths from list_signals)
      {"k":"const","lit":"8'd3"}         SystemVerilog integer literal
    Combinators:
      {"k":"bin","op":<op>,"l":<node>,"r":<node>}
      {"k":"un","op":"LogicalNot","a":<node>}
      {"k":"bitselect","base":<node>,"idx":<n>}
      <op> is one of LogicalAnd, LogicalOr, Equality, Inequality,
      CaseEquality, CaseInequality, BinaryAnd, BinaryOr, BinaryXor,
      LessThan, GreaterThan, LessThanEqual, GreaterThanEqual.
    Example:
      {"k":"bin","op":"LogicalAnd",
       "l":{"k":"bin","op":"Equality","l":{"k":"sig","name":"top.u.req"},
            "r":{"k":"const","lit":"1'b1"}},
       "r":{"k":"bin","op":"GreaterThan","l":{"k":"sig","name":"top.u.cnt"},
            "r":{"k":"const","lit":"8'd1"}}}

    A predicate that cannot be decided (an x/z value reaching the expression) is
    reported as not true, never as a hit. The undecidable time is returned
    separately so an empty result is not misread as "it never happened". An
    interval still true at the window end is marked open_ended.

    Args:
        predicate: expression object as described above.
        start: search window start such as "100ns"; "min" = dump start.
        end: search window end; "max" = dump end.
        min_duration: report only intervals at least this long, e.g. "20ns".
fold_transactionstool Fold signal activity into transaction records you define.
Fold signal activity into transaction records you define.

    A bus trace is thousands of value changes; the question is usually "which
    transactions happened and what did each carry". You say what a transaction
    is, this returns the records.

    **No protocol library is built in** — no AXI, APB or AHB tables. Describe the
    handshake yourself with the same expression objects ``find_time_windows``
    uses. A built-in protocol table would be wrong for every design that
    deviates from the spec, and wrong silently.

    Conditions are treated as *edges*: a transaction opens when ``start_cond``
    becomes true (not while it stays true) and closes when ``end_cond`` next
    becomes true. A condition already true at the window start opens nothing,
    since its transition was never observed.

    A transaction still open at the window end is reported with
    ``incomplete: true`` and no end time: "we stopped looking" and "it finished
    here" are different facts, so no end is guessed. An end edge with nothing
    open (or, with ``id_field``, nothing open under that id) is reported as
    ``unmatched_end`` rather than dropped. An edge is "false before, true now":
    a condition coming out of x/z opens or closes nothing.
    Time where a condition is undecidable (x/z) claims no boundary and is
    reported separately, so an empty result is not proof nothing happened.

    Args:
        start_cond: expression object that opens a transaction on its rising edge.
        end_cond: expression object that closes one on its rising edge.
        id_field: signal path tagging each transaction, enabling out-of-order
            matching. Without it, ends pair FIFO with the oldest open one.
        fields: extra signal paths to capture at open and at close.
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end; "max" = end of the dump.
        limit: target number of records in the reply.
fsm_transitionstool State transitions a register actually made, plus which RTL branches ran.
State transitions a register actually made, plus which RTL branches ran.

    Two facts a waveform can settle about a state machine: which transitions
    occurred (with counts and first occurrence), and which of the RTL branches
    assigning this register ever had its guard hold at a transition instant.

    **This is not coverage.** Coverage needs a denominator — the states and
    transitions the design is *supposed* to have — and that comes from intent,
    not from one dump. A state or transition not listed may be unreachable by
    design, simply not exercised by this stimulus, or a real hole; one waveform
    cannot tell those apart, so nothing here is reported as a gap or a bug.

    A branch whose guard was undecidable (x/z) at some transitions reports
    ``undecided_at``, because "taken: false" would otherwise overstate the case.

    ``path`` may be omitted when the defaults hold exactly one signal; the window
    falls back to the query defaults.

    Args:
        path: full path of the state register, e.g. "top.u_ctrl.state".
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end; "max" = end of the dump.
get_view_statetool Read the delivery status of an open wave view.
Read the delivery status of an open wave view.

    Returns the actual state (applied revision, page_ready / page_error)
    written back by the browser, plus a desired-state summary.
    ``page_ready`` says whether the page actually reached the streaming
    backend (a blank or unreachable page reports false with the reason in
    ``page_error``). User-interaction readback (cursor position,
    user_dirty) is not populated: the shell no longer reads state out of
    the viewer app, so those fields stay at their defaults.
list_modulestool Get all module definition names in the design (optionally filtered).
Get all module definition names in the design (optionally filtered).
list_signalstool Get the signals of an instance (ports + internal), with width/dir/type.
Get the signals of an instance (ports + internal), with width/dir/type.

    ``name_contains`` keeps signals whose name contains the substring;
    ``signal_type`` accepts Port/Input/Output/Inout/Internal-wire/
    Internal-register/Parameter (case-insensitive). ``limit`` caps the rows.

    ``aggregate_buses`` (default True) merges per-element/per-bit VARs a writer
    split apart (``bus [31] ... bus [0]``) into one ``bus[hi:lo]`` entry with an
    ``element_count`` field; per-element signals stay individually queryable by
    full path. Results are ordered ports -> registers -> wires -> parameters so
    a small ``limit`` still surfaces meaningful logic signals.

    ``underscore_style`` (default False) also coalesces underscore bit-split
    names (``data_7 ... data_0``); off by default since a real signal may end in
    ``_<n>``. When a netlist is present, merged widths are validated against RTL
    declarations (``width_matches_rtl`` / ``rtl_width`` fields on bus entries).
list_wave_viewstool List the wave views currently open in this server.
List the wave views currently open in this server.

    Returns each view's view_id, url, title, waveform paths, revision and
    whether its streaming backend is still alive, newest first. Use it to
    find a view again after losing track of a view_id, or to check what is
    still holding resources during a long batch run.
open_sessiontool Open a debug session from a session directory or session.json manifest.Files
Open a debug session from a session directory or session.json manifest.

    Opens the FST waveform and the RTL netlist maps (if built).
    Does NOT consume any license and supports unlimited concurrent sessions.

    Without ``session_id`` this creates a *new* session: a fresh opaque id with
    its own query defaults. Opening the same design twice therefore gives two
    independent sessions, which is what lets two agents (or two conversations)
    work on one design without inheriting each other's window; the expensive part
    (parsed waveform, elaborated netlist) is shared, so the second open does not
    pay for it again.

    Passing ``session_id`` resumes that session instead. The inputs must be the
    same ones it was built from, otherwise the call is refused rather than
    silently re-pointing the session at different data. If the files changed on
    disk since, this reports ``input_changed`` and leaves the session on the data
    it already has: an open is "continue what I had", so it never swaps the data
    underneath a running analysis. ``prepare_session`` is the call that says
    "I rebuilt the data, follow it".
open_wave_viewtool Open waveform(s) in the browser viewer and return the URL for the user.ProcessesFilesEnv varsoutside text
Open waveform(s) in the browser viewer and return the URL for the user.

    Streams via a local surver process, so tens-of-GB FSTs open in
    milliseconds. Give the returned URL to the user; IDE terminals
    auto-forward localhost ports. Two fst_paths open a comparison view.

    Time fields are strict objects: {"time": <digits>, "unit": "ps"} (unit
    one of s / ms / us / ns / ps / fs, default ps). A suffixed value like
    "1523400ps" is accepted and normalized. Unknown fields, unknown units,
    conflicting suffixes and malformed values are rejected with a structured
    error naming the parameter, never silently ignored or defaulted.

    Args:
        fst_paths: one waveform (normal view) or two (diff view, e.g.
            [pass, fail]); at most two. FST is opened directly; VCD and FSDB
            are converted to FST first and cached, so the same waveform
            converted during analysis is reused here instead of being
            converted again.
        signals: initial signals, each {path, color?, group?, format?, source?}.
            Prefer a short ASCII word for ``group``: the heading is drawn in the
            waveform canvas, whose font has no CJK glyphs, so non-ASCII names
            show as boxes (the grouping itself still works). Spaces are turned
            into underscores automatically. Put prose in ``annotation``, which
            renders any language correctly.
        cursor: {time, unit} to pin the cursor (e.g. the failure time).
        viewport: {from, to, unit} visible time window.
        markers: [{time, unit, label?, color?}] annotations on the timeline.
        diff: diff_waveforms result reference exactly {source_a, source_b,
            first_divergence} — auto-adds a red marker at the divergence.
            first_divergence may be passed back verbatim ("85ns" is accepted
            and normalized).
        annotation: {markdown, confidence?, evidence?} analysis note shown in
            the log popup next to the waveform. Any language: written in your
            own words, rendered as-is.
        labels: display labels per waveform, one per waveform (e.g.
            ["pass", "fail"]).

    Returns available:true plus view_id and url on success, reports an
    ``evicted_view_id`` when the view cap had to close an older view, and
    lists ``warnings`` for anything worth saying: a command that had to be
    dropped, or a requested signal the waveform does not contain (Surfer
    drops such a name silently, so the reply says so; the page shows it
    too). Failures return
    {"status": "error", "error_type": ...}: invalid_argument for a malformed
    parameter, file_not_found / unsupported_format / conversion_failed for
    waveform-file problems, surver_error when the viewer backend cannot
    start, and viewer_unavailable (with available:false) when the viewer
    feature is not installed at all.
prepare_sessiontool One-shot waveform analysis entry point — the standard team workflow.Files
One-shot waveform analysis entry point — the standard team workflow.

    Takes a waveform file your simulator already produced and leaves an OPEN
    session ready to query:
        waveform (.fst read directly / .fsdb or .vcd auto-converted) ->
        build session.json -> open session.

    This never runs a simulator. Run your sim (xrun / Verilator / etc.) with your
    own flow first, then point this at the resulting ``.fst``, ``.fsdb`` or ``.vcd``.

    A converted FST is kept beside its source as ``<name>.fst`` (FSDB adds
    ``<name>.fst.hier``), and one already there, whether converted by hand
    or by an earlier call, is reused instead of converting again. Partial
    conversions (``scopes`` / ``signals_file``) and unwritable source
    directories use the wave-mcp cache (~/.wave-mcp/cache) instead; a stale
    FST beside the source is overwritten. Each of those cases is explained
    in the reply's ``hints``.

    Call this first whenever you want to start analyzing a waveform; afterwards
    use the query tools (signal_values, find_instances, signal_activity, ...).

    Args:
        wave_path: waveform file to analyze — ``.fst`` (read directly), ``.fsdb``
            (auto-converted via bundled fsdb2fst) or ``.vcd`` (auto-converted via
            vcd2fst). This is a file the sim already dumped.
        out_dir: where to keep the session (session.json, netlist maps).
            Usually omit it: the session then lands under the wave-mcp session
            root (``$WAVE_MCP_SESSION_ROOT``, default ``~/.wave-mcp/
            sessions``) in a directory named after the inputs, and the netlist
            is shared with every session built from the same RTL sources,
            including a static one. Give it only when the session directory
            has to live at a specific place (e.g. checked in next to a
            testbench); it is then used exactly as given. The reply's
            ``session_path`` is the actual location either way.
        top: top instance name.
        filelist / filelist_path: RTL source list (enables file/declaration tools).
            A .f filelist is parsed for +incdir+/+define+/-y automatically.
        incdirs: extra `+incdir+` directories for netlist elaboration. CRITICAL
            for real UVM/IP designs using `include; without them the netlist
            (connectivity/drivers/trace) silently degrades to unavailable.
        defines: extra `+define+NAME[=VAL]` macros for elaboration.
        pack: FST compressor when converting: "fastlz" (fastest), "lz4"
            (balanced) or "zlib" (smallest). Default is the converter's own
            (fastlz for VCD, lz4 for FSDB). Part of the cache key.
        scopes: for .fsdb only — convert just the signals whose full path
            contains any of these substrings (fsdb2fst -l). Use on huge designs;
            the loader refuses batches above 5M signals.
        signals_file: for .fsdb only — file listing exact signal paths to
            convert, one per line (fsdb2fst -L).
        timeout: optional conversion timeout in seconds. Default (None)
            auto-estimates from the file size (about 3x the expected
            conversion time, capped at 4 hours). Conversions are heartbeat-
            monitored, so a stuck converter fails fast instead of hanging.

    Returns the session summary plus per-step timing. A large waveform adds
    ``hints`` (its size, conversion cost, and how to narrow the next run).
query_defaults_cleartool Clear the query defaults; later calls fall back to the built-in defaults.
Clear the query defaults; later calls fall back to the built-in defaults.

    Args:
        defaults_revision: refuse the update unless the stored defaults are
            still at this revision (see ``query_defaults_set``).
query_defaults_gettool Return the current query defaults (default signals and time window).
Return the current query defaults (default signals and time window).
query_defaults_settool Set the default signals and/or time window for the queries that follow.
Set the default signals and/or time window for the queries that follow.

    Once set, query tools may omit ``paths`` / ``start`` / ``end`` and will use
    these values, replying with ``_defaults_used: true`` so the data's range is
    never ambiguous. An explicit argument always overrides a default.

    Only the fields you pass are changed, so the window can be moved without
    restating the signals. Pass an empty list or an empty string to drop one
    field; use ``query_defaults_clear`` to drop everything. The whole update is
    validated before it is stored, so a rejected call changes nothing.

    Holds waveform *coordinates* only. There is deliberately no place to store a
    hypothesis or a next step: this is a base layer that reports facts, and a
    second client sharing the session must not inherit someone else's reasoning.

    Args:
        paths: signal path or list of paths to make the default.
        start: window start, e.g. "100ns".
        end: window end, e.g. "500ns".
        defaults_revision: refuse the update unless the stored defaults are
            still at this revision, so a caller cannot silently overwrite a
            concurrent change. Read it from ``query_defaults_get``; the same
            name pins a revision on the query tools.
sample_at_clocktool Values of signals sampled on a clock's edges: one row per clock cycle.
Values of signals sampled on a clock's edges: one row per clock cycle.

    A waveform stores changes, but synchronous logic is reasoned about per
    cycle. Reading raw changes makes every combinational glitch and every
    picosecond of skew look like an event; sampling on the edge asks what the
    logic actually captured.

    Returns a cycle table: each row is one edge time plus the value each
    requested signal held at that instant. ``null`` means the signal had no
    recorded value yet, which is not the same as x and is not collapsed into it.

    Only clean 0->1 (or 1->0) clock transitions count as edges. A clock passing
    through x or z yields no edge, since an unknown clock captured nothing
    definite.

    ``paths`` / ``start`` / ``end`` fall back to the session query defaults.

    Args:
        paths: signal path or list of paths to sample.
        clock: full path of the clock signal, e.g. "top.clk".
        edge: "rising" (default), "falling", or "both".
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end; "max" = end of the dump.
        limit: target number of cycles in the reply; more are downsampled
            evenly (first and last kept) and the reply says so.
scope_infotool Get module info for a scope: module type, declaration & instantiation code.
Get module info for a scope: module type, declaration & instantiation code.

    Module type comes from the FST; declaration location is resolved (best-effort)
    from the RTL source via Verible-tier scanning.
session_infotool Summarise the active session, or list the sessions this caller has open.
Summarise the active session, or list the sessions this caller has open.

    With ``list_sessions=True`` it returns every session of the calling owner
    (id, manifest path, mode, resource id, when it was opened and last used) and
    refuses a ``session_id`` in the same call: it is a listing, not a lookup. Use
    it to find a session again after losing an id; it never shows another owner's
    sessions.

    Without it, returns a summary of the named session (or of the only one open):
    top, time range, counts, warnings and the current query defaults.
signal_activitytool Per-signal activity summary over a time window, in one pass over the file.
Per-signal activity summary over a time window, in one pass over the file.

    Omitted arguments fall back to the session query defaults (see ``query_defaults_set``); the
    reply carries ``_defaults_used: true`` when any did.

    Answers "which of these signals actually moved here, and did any spend time
    unknown" without pulling raw value timelines first. One row per requested
    path, in request order:

      toggles        value changes inside the window
      x_ratio        share of the window the signal *held* an x value
      z_ratio        same for z (both are time weighted, not change weighted)
      is_constant    no change inside the window
      first_change   time of the first change, null if it never changed
      last_change    time of the last change, null if it never changed
      value_first    value held at the window start
      value_last     value held at the window end

    A path that is not in the waveform returns an error row for that path only,
    so one bad name does not lose the rest of the batch.

    Args:
        paths: one signal path or a list of them, e.g. ["top.u.din", "top.u.state"].
        start: window start such as "100ns"; "min" means simulation start.
        end: window end such as "500ns"; "max" means simulation end.
signal_connectivitytool Get signals directly wire-connected to the given signal (needs UHDM).
Get signals directly wire-connected to the given signal (needs UHDM).

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_downstreamtool Signals this one can affect, optionally with when each next changed.
Signals this one can affect, optionally with when each next changed.

    The forward mirror of ``signal_fanin``. ``signal_loads`` gives one hop;
    this follows the chain, including across hierarchy boundaries.

    Pass ``time`` to join the netlist answer with the waveform: each downstream
    signal also reports the first time it changed *after* that instant. That
    turns "what does this reach" into "what actually moved as a result", which
    is the question worth asking when a signal went wrong at a known moment.

    Reachability comes from the netlist and a change after ``time`` is only a
    correlation: a signal may change for an unrelated reason, and this does not
    claim causation. ``first_change_after`` being null means it never changed
    again, which is itself evidence the path was not exercised.

    ``path`` may be omitted when the defaults hold exactly one signal; ``time``
    falls back to the defaults' window start when a window is set.

    Args:
        path: signal path to walk forward from.
        time: instant to measure downstream changes after, e.g. "300ns".
            Omit to get reachability only.
        max_depth: hierarchy levels to follow (1 = one hop, the default; up
            to 8 to follow the chain across module boundaries).
        limit: cap on returned signals.
signal_driverstool Get all code locations that can drive the given signal (static; needs UHDM).
Get all code locations that can drive the given signal (static; needs UHDM).

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_fanintool Get all signals that can affect the given signal (fan-in; needs UHDM).
Get all signals that can affect the given signal (fan-in; needs UHDM).

    Boundary nets (struct ports such as ``reg2hw``, aggregated buses,
    sub-module outputs) resolve to the peer ports one hop away; ``max_depth=1``
    returns every direct peer, a larger value the cone behind each, following
    boundary hops up to that many levels. For source locations rather than
    signal names use signal_drivers.

    ``path`` may be omitted when the defaults hold exactly one signal.

    Args:
        max_depth: hierarchy levels to follow (1 = direct fan-in only, the
            default; up to 8 for the cross-module cone).
        limit: cap on returned signals.
signal_infotool Get signal metadata: width, type, direction, and declaration file/line.
Get signal metadata: width, type, direction, and declaration file/line.

    Width/type/direction come from the FST; declaration file+line is resolved
    (best-effort) from the RTL source.

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_loadstool Get all signals affected by the given signal (fan-out; needs UHDM).
Get all signals affected by the given signal (fan-out; needs UHDM).

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_valuestool Read signal values: a whole dump, a time window, or one instant.
Read signal values: a whole dump, a time window, or one instant.

    One tool for all three shapes, because they are the same query with the
    window degenerating. Several paths are read in a single pass over the file,
    so batching is cheaper than looping.

      - pass ``time``            -> the value each signal holds at that instant
      - pass ``start`` / ``end`` -> every change inside that window
      - pass neither             -> every change in the whole dump

    Omitted arguments fall back to the session query defaults (see
    ``query_defaults_set``), and the reply carries ``_defaults_used: true`` when
    any did, so the time range of the data is never ambiguous. An explicit
    argument always wins; pass ``start="min"`` / ``end="max"`` to widen back to
    the whole dump despite a default window.

    ``limit`` is a target reply size (default 1000). When more changes match,
    the timeline is *evenly downsampled* instead of cut short, keeping the first
    and last change, and the reply says so via ``sampled`` / ``sample_rate`` /
    ``total_available``. Narrow ``start``/``end`` to get full resolution.

    Args:
        paths: one signal path or a list of them, e.g. ["top.u.din", "top.u.q"].
        time: read a single instant, e.g. "5000ns". Overrides start/end.
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end, e.g. "500ns"; "max" = end of the dump.
        limit: target number of changes per signal in the reply.
trace_valuetool Trace how a signal's value at a time point was produced (needs UHDM+FST).
Trace how a signal's value at a time point was produced (needs UHDM+FST).

    ``path`` may be omitted when the defaults hold exactly one signal, and
    ``time`` falls back to the query defaults's window start.

    A malformed time string is answered with a structured invalid_argument
    error instead of raising.

    Args:
        max_depth: maximum recursion depth for the trace tree (default 12, range 1-50).
            Increase for deep designs; decrease for faster, shallower traces.
trace_xtool Trace the root cause of an X value on a signal (approximate; needs UHDM+FST).
Trace the root cause of an X value on a signal (approximate; needs UHDM+FST).

    ``path`` may be omitted when the defaults hold exactly one signal, and
    ``time`` falls back to the query defaults's window start.

    A malformed time string is answered with a structured invalid_argument
    error instead of raising.

    Args:
        max_depth: maximum recursion depth for the X-trace tree (default 12, range 1-50).
update_wave_viewtool Update an open wave view in place (same URL, no reload for the user).
Update an open wave view in place (same URL, no reload for the user).

    Omitted args keep their current value; lists replace entirely except
    annotations, which append to the analysis log popup. Same ``group``,
    ``annotation`` and time-schema conventions as open_wave_view; returns
    ``warnings`` for a dropped command or a requested signal that is not in
    the waveform, and structured errors on bad input.
wrappedtool
No description.

Text the model reads (38)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

wrapped tool
open_session tool
Open a debug session from a session directory or session.json manifest.

    Opens the FST waveform and the RTL netlist maps (if built).
    Does NOT consume any license and supports unlimited concurrent sessions.

    Without ``session_id`` this creates a *new* session: a fresh opaque id with
    its own query defaults. Opening the same design twice therefore gives two
    independent sessions, which is what lets two agents (or two conversations)
    work on one design without inheriting each other's window; the expensive part
    (parsed waveform, elaborated netlist) is shared, so the second open does not
    pay for it again.

    Passing ``session_id`` resumes that session instead. The inputs must be the
    same ones it was built from, otherwise the call is refused rather than
    silently re-pointing the session at different data. If the files changed on
    disk since, this reports ``input_changed`` and leaves the session on the data
    it already has: an open is "continue what I had", so it never swaps the data
    underneath a running analysis. ``prepare_session`` is the call that says
    "I rebuilt the data, follow it".
close_session tool
Close a session and release its reference to the loaded data.

    The data itself stays loaded while any other session still uses it, so
    closing one session never disturbs another. An unknown, somebody else's or
    already-closed session all report ``no-such-session``, which keeps the reply
    from confirming whether an id exists.
session_info tool
Summarise the active session, or list the sessions this caller has open.

    With ``list_sessions=True`` it returns every session of the calling owner
    (id, manifest path, mode, resource id, when it was opened and last used) and
    refuses a ``session_id`` in the same call: it is a listing, not a lookup. Use
    it to find a session again after losing an id; it never shows another owner's
    sessions.

    Without it, returns a summary of the named session (or of the only one open):
    top, time range, counts, warnings and the current query defaults.
query_defaults_set tool
Set the default signals and/or time window for the queries that follow.

    Once set, query tools may omit ``paths`` / ``start`` / ``end`` and will use
    these values, replying with ``_defaults_used: true`` so the data's range is
    never ambiguous. An explicit argument always overrides a default.

    Only the fields you pass are changed, so the window can be moved without
    restating the signals. Pass an empty list or an empty string to drop one
    field; use ``query_defaults_clear`` to drop everything. The whole update is
    validated before it is stored, so a rejected call changes nothing.

    Holds waveform *coordinates* only. There is deliberately no place to store a
    hypothesis or a next step: this is a base layer that reports facts, and a
    second client sharing the session must not inherit someone else's reasoning.

    Args:
        paths: signal path or list of paths to make the default.
        start: window start, e.g. "100ns".
        end: window end, e.g. "500ns".
        defaults_revision: refuse the update unless the stored defaults are
            still at this revision, so a caller cannot silently overwrite a
            concurrent change. Read it from ``query_defaults_get``; the same
            name pins a revision on the query tools.
query_defaults_get tool
Return the current query defaults (default signals and time window).
query_defaults_clear tool
Clear the query defaults; later calls fall back to the built-in defaults.

    Args:
        defaults_revision: refuse the update unless the stored defaults are
            still at this revision (see ``query_defaults_set``).
prepare_session tool
One-shot waveform analysis entry point — the standard team workflow.

    Takes a waveform file your simulator already produced and leaves an OPEN
    session ready to query:
        waveform (.fst read directly / .fsdb or .vcd auto-converted) ->
        build session.json -> open session.

    This never runs a simulator. Run your sim (xrun / Verilator / etc.) with your
    own flow first, then point this at the resulting ``.fst``, ``.fsdb`` or ``.vcd``.

    A converted FST is kept beside its source as ``<name>.fst`` (FSDB adds
    ``<name>.fst.hier``), and one already there, whether converted by hand
    or by an earlier call, is reused instead of converting again. Partial
    conversions (``scopes`` / ``signals_file``) and unwritable source
    directories use the wave-mcp cache (~/.wave-mcp/cache) instead; a stale
    FST beside the source is overwritten. Each of those cases is explained
    in the reply's ``hints``.

    Call this first whenever you want to start analyzing a waveform; afterwards
    use the query tools (signal_values, find_instances, signal_activity, ...).

    Args:
        wave_path: waveform file to analyze — ``.fst`` (read directly), ``.fsdb``
            (auto-converted via bundled fsdb2fst) or ``.vcd`` (auto-converted via
            vcd2fst). This is a file the sim already dumped.
        out_dir: where to keep the session (session.json, netlist maps).
            Usually omit it: the session then lands under the wave-mcp session
            root (``$WAVE_MCP_SESSION_ROOT``, default ``~/.wave-mcp/
            sessions``) in a directory named after the inputs, and the netlist
            is shared with every session built from the same RTL sources,
            including a static one. Give it only when the session directory
            has to live at a specific place (e.g. checked in next to a
            testbench); it is then used exactly as given. The reply's
            ``session_path`` is the actual location either way.
        top: top instance name.
        filelist / filelist_path: RTL source list (enables file/declaration tools).
            A .f filelist is parsed for +incdir+/+define+/-y automatically.
        incdirs: extra `+incdir+` directories for netlist elaboration. CRITICAL
            for real UVM/IP designs using `include; without them the netlist
            (connectivity/drivers/trace) silently degrades to unavailable.
        defines: extra `+define+NAME[=VAL]` macros for elaboration.
        pack: FST compressor when converting: "fastlz" (fastest), "lz4"
            (balanced) or "zlib" (smallest). Default is the converter's own
            (fastlz for VCD, lz4 for FSDB). Part of the cache key.
        scopes: for .fsdb only — convert just the signals whose full path
            contains any of these substrings (fsdb2fst -l). Use on huge designs;
            the loader refuses batches above 5M signals.
        signals_file: for .fsdb only — file listing exact signal paths to
            convert, one per line (fsdb2fst -L).
        timeout: optional conversion timeout in seconds. Default (None)
            auto-estimates from the file size (about 3x the expected
            conversion time, capped at 4 hours). Conversions are heartbeat-
            monitored, so a stuck converter fails fast instead of hanging.

    Returns the session summary plus per-step timing. A large waveform adds
    ``hints`` (its size, conversion cost, and how to narrow the next run).
open_static_session tool
Open a pure static-analysis session from RTL sources — NO waveform needed.

    Builds the RTL netlist (pyslang elaboration) and opens the session in one
    call, so you can explore a design before any simulation exists:
    connectivity, drivers, loads, fan-in, hierarchy, module/file/declaration
    queries all work from source code alone.

    Use this to understand design structure, review driver/fan-in relations,
    or check interfaces before running a sim. Waveform tools (signal_values*,
    trace_value, trace_x, active_drivers) return a clear "needs waveform" hint;
    later, call prepare_session with the same RTL sources and your dumped
    .fst/.vcd to upgrade — the netlist built here is reused, not re-elaborated.

    Args:
        out_dir: where to keep the session (session.json, netlist maps).
            Usually omit it: the session lands under the wave-mcp session root
            in a directory named after the RTL sources, which is exactly where
            a later prepare_session on the same sources looks for the netlist.
            Give it only when the directory has to live at a specific place;
            it is then used as given (and the later prepare_session must name
            the same out_dir to reuse the netlist).
        top: top module name for elaboration.
        filelist / filelist_path: RTL source list. A .f filelist is parsed for
            +incdir+/+define+/-y automatically.
        incdirs: extra `+incdir+` directories for netlist elaboration.
        defines: extra `+define+NAME[=VAL]` macros for elaboration.

    Returns the session summary (mode: "static") plus per-step timing.
convert_vcd_to_fst tool
Convert an xrun-produced VCD to FST (fast).

    xrun's open/parseable dump is VCD; FST is ~1/50 the size and supports fast
    random access, which is what this server reads. Uses GTKWave ``vcd2fst`` with
    the fastest options.

    Args:
        vcd_path: input .vcd path.
        out_path: output .fst path. Default: ``<name>.fst`` beside the VCD,
            the same file ``prepare_session`` and ``open_wave_view`` reuse
            (overwritten if present); the wave-mcp cache when the VCD's
            directory is not writable, reported in ``notice``.
        pack: FST compressor: "fastlz" (fastest, default), "lz4" or "zlib" (smallest).
        timeout: optional conversion timeout in seconds; default auto-estimates
            from the file size. A converter that stops writing output fails
            fast with its byte count instead of hanging indefinitely.

    Returns timing, sizes and compression ratio. For *zero* extra wall-clock
    cost, dump straight into a FIFO and stream-convert during simulation
    (see the ``wave-vcd2fst --stream`` CLI / README).
convert_fsdb_to_fst tool
Convert a Synopsys FSDB to FST via the bundled fsdb2fst (single pass).

    ``prepare_session`` already converts ``.fsdb`` automatically, so reach for
    this tool when you want to inspect or control the conversion first: check
    the scale and signal census of a huge file (``info_only=True``), or convert one
    subtree at a time. No VCD intermediate; requires Verdi's FsdbReader runtime
    on this machine (checks out no license). See docs/FSDB_GUIDE.md.

    Args:
        fsdb_path: input .fsdb path.
        out_path: output .fst path. Default: ``<name>.fst`` beside the FSDB,
            the same file ``prepare_session`` and ``open_wave_view`` reuse
            (overwritten if present); the wave-mcp cache when the FSDB's
            directory is not writable or ``scopes`` / ``signals_file`` make
            it a partial conversion, reported in ``notice``. The companion
            ``<fst>.hier`` sidecar is written alongside and BOTH files are
            needed to open the FST.
        scopes: convert only signals whose full path contains any of these
            substrings (fsdb2fst -l). Required for very large designs: the loader
            refuses batches above 5M signals and can crash beyond that regardless.
        signals_file: file with exact signal paths, one per line (fsdb2fst -L).
        pack: FST compressor: "lz4" (default), "fastlz" (fastest) or "zlib" (smallest).
        timeout: optional conversion timeout in seconds; default auto-estimates
            from the file size. A converter that stops writing output fails
            fast with its byte count instead of hanging indefinitely.
        info_only: only report scale + signal census, convert nothing.

    Returns the output path, timing, sizes and the signal census (real /
    strength-skipped / unsupported-type counts).
find_instances tool
Locate instances, either by module definition or by position in the tree.

    Two ways in, same instance tree:

      - ``module``  -> every instantiation path of that module definition,
                       optionally narrowed by ``name_contains`` (a substring of
                       the instance's own leaf name).
      - ``under``   -> the instances below that scope; ``under=""`` starts at the
                       top of the design. ``max_depth`` controls the depth.

    At least one of ``module`` / ``under`` / ``name_contains`` must be given, so
    a bare call cannot accidentally dump the whole hierarchy. To walk from the
    top explicitly, pass ``under=""``.

    Args:
        module: module definition name, e.g. "uart_core".
        under: parent scope path; "" means the top of the design.
        name_contains: substring filter on the instance leaf name.
        max_depth: with ``under``, how many hierarchy levels to descend (1-10).
        limit: cap on returned rows when walking the tree.
        filter_noise: with ``under``, drop anonymous begin/fork blocks
            (testbench noise) and keep only real design hierarchy.
list_modules tool
Get all module definition names in the design (optionally filtered).
scope_info tool
Get module info for a scope: module type, declaration & instantiation code.

    Module type comes from the FST; declaration location is resolved (best-effort)
    from the RTL source via Verible-tier scanning.
list_signals tool
Get the signals of an instance (ports + internal), with width/dir/type.

    ``name_contains`` keeps signals whose name contains the substring;
    ``signal_type`` accepts Port/Input/Output/Inout/Internal-wire/
    Internal-register/Parameter (case-insensitive). ``limit`` caps the rows.

    ``aggregate_buses`` (default True) merges per-element/per-bit VARs a writer
    split apart (``bus [31] ... bus [0]``) into one ``bus[hi:lo]`` entry with an
    ``element_count`` field; per-element signals stay individually queryable by
    full path. Results are ordered ports -> registers -> wires -> parameters so
    a small ``limit`` still surfaces meaningful logic signals.

    ``underscore_style`` (default False) also coalesces underscore bit-split
    names (``data_7 ... data_0``); off by default since a real signal may end in
    ``_<n>``. When a netlist is present, merged widths are validated against RTL
    declarations (``width_matches_rtl`` / ``rtl_width`` fields on bus entries).
signal_info tool
Get signal metadata: width, type, direction, and declaration file/line.

    Width/type/direction come from the FST; declaration file+line is resolved
    (best-effort) from the RTL source.

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_values tool
Read signal values: a whole dump, a time window, or one instant.

    One tool for all three shapes, because they are the same query with the
    window degenerating. Several paths are read in a single pass over the file,
    so batching is cheaper than looping.

      - pass ``time``            -> the value each signal holds at that instant
      - pass ``start`` / ``end`` -> every change inside that window
      - pass neither             -> every change in the whole dump

    Omitted arguments fall back to the session query defaults (see
    ``query_defaults_set``), and the reply carries ``_defaults_used: true`` when
    any did, so the time range of the data is never ambiguous. An explicit
    argument always wins; pass ``start="min"`` / ``end="max"`` to widen back to
    the whole dump despite a default window.

    ``limit`` is a target reply size (default 1000). When more changes match,
    the timeline is *evenly downsampled* instead of cut short, keeping the first
    and last change, and the reply says so via ``sampled`` / ``sample_rate`` /
    ``total_available``. Narrow ``start``/``end`` to get full resolution.

    Args:
        paths: one signal path or a list of them, e.g. ["top.u.din", "top.u.q"].
        time: read a single instant, e.g. "5000ns". Overrides start/end.
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end, e.g. "500ns"; "max" = end of the dump.
        limit: target number of changes per signal in the reply.
signal_activity tool
Per-signal activity summary over a time window, in one pass over the file.

    Omitted arguments fall back to the session query defaults (see ``query_defaults_set``); the
    reply carries ``_defaults_used: true`` when any did.

    Answers "which of these signals actually moved here, and did any spend time
    unknown" without pulling raw value timelines first. One row per requested
    path, in request order:

      toggles        value changes inside the window
      x_ratio        share of the window the signal *held* an x value
      z_ratio        same for z (both are time weighted, not change weighted)
      is_constant    no change inside the window
      first_change   time of the first change, null if it never changed
      last_change    time of the last change, null if it never changed
      value_first    value held at the window start
      value_last     value held at the window end

    A path that is not in the waveform returns an error row for that path only,
    so one bad name does not lose the rest of the batch.

    Args:
        paths: one signal path or a list of them, e.g. ["top.u.din", "top.u.state"].
        start: window start such as "100ns"; "min" means simulation start.
        end: window end such as "500ns"; "max" means simulation end.
find_time_windows tool
Find the time intervals where a boolean condition over signals holds.

    Returns intervals, not values, so "when was req high while cnt stayed above
    1" is one call instead of a value dump plus local post-processing.

    An omitted ``start`` / ``end`` falls back to the session query defaults (see
    ``query_defaults_set``); the reply carries ``_defaults_used: true``
    when it did.

    The predicate is an expression object. Leaves:
      {"k":"sig","name":"top.u.req"}     signal value (paths from list_signals)
      {"k":"const","lit":"8'd3"}         SystemVerilog integer literal
    Combinators:
      {"k":"bin","op":<op>,"l":<node>,"r":<node>}
      {"k":"un","op":"LogicalNot","a":<node>}
      {"k":"bitselect","base":<node>,"idx":<n>}
      <op> is one of LogicalAnd, LogicalOr, Equality, Inequality,
      CaseEquality, CaseInequality, BinaryAnd, BinaryOr, BinaryXor,
      LessThan, GreaterThan, LessThanEqual, GreaterThanEqual.
    Example:
      {"k":"bin","op":"LogicalAnd",
       "l":{"k":"bin","op":"Equality","l":{"k":"sig","name":"top.u.req"},
            "r":{"k":"const","lit":"1'b1"}},
       "r":{"k":"bin","op":"GreaterThan","l":{"k":"sig","name":"top.u.cnt"},
            "r":{"k":"const","lit":"8'd1"}}}

    A predicate that cannot be decided (an x/z value reaching the expression) is
    reported as not true, never as a hit. The undecidable time is returned
    separately so an empty result is not misread as "it never happened". An
    interval still true at the window end is marked open_ended.

    Args:
        predicate: expression object as described above.
        start: search window start such as "100ns"; "min" = dump start.
        end: search window end; "max" = dump end.
        min_duration: report only intervals at least this long, e.g. "20ns".
signal_connectivity tool
Get signals directly wire-connected to the given signal (needs UHDM).

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_drivers tool
Get all code locations that can drive the given signal (static; needs UHDM).

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_loads tool
Get all signals affected by the given signal (fan-out; needs UHDM).

    ``path`` may be omitted when the defaults hold exactly one signal.
signal_fanin tool
Get all signals that can affect the given signal (fan-in; needs UHDM).

    Boundary nets (struct ports such as ``reg2hw``, aggregated buses,
    sub-module outputs) resolve to the peer ports one hop away; ``max_depth=1``
    returns every direct peer, a larger value the cone behind each, following
    boundary hops up to that many levels. For source locations rather than
    signal names use signal_drivers.

    ``path`` may be omitted when the defaults hold exactly one signal.

    Args:
        max_depth: hierarchy levels to follow (1 = direct fan-in only, the
            default; up to 8 for the cross-module cone).
        limit: cap on returned signals.
active_drivers tool
Get the active driver(s) of a signal at a time point (dynamic; needs UHDM+FST).

    ``path`` may be omitted when the defaults hold exactly one signal, and
    ``time`` falls back to the query defaults's window start.

    A malformed time string is answered with a structured invalid_argument
    error instead of raising.
driver_contributors tool
Get the contributing signals (RHS / control) of a driver (needs UHDM).
trace_value tool
Trace how a signal's value at a time point was produced (needs UHDM+FST).

    ``path`` may be omitted when the defaults hold exactly one signal, and
    ``time`` falls back to the query defaults's window start.

    A malformed time string is answered with a structured invalid_argument
    error instead of raising.

    Args:
        max_depth: maximum recursion depth for the trace tree (default 12, range 1-50).
            Increase for deep designs; decrease for faster, shallower traces.
trace_x tool
Trace the root cause of an X value on a signal (approximate; needs UHDM+FST).

    ``path`` may be omitted when the defaults hold exactly one signal, and
    ``time`` falls back to the query defaults's window start.

    A malformed time string is answered with a structured invalid_argument
    error instead of raising.

    Args:
        max_depth: maximum recursion depth for the X-trace tree (default 12, range 1-50).
files tool
List the design's source files, find one by name, or read a file's modules.

    Three shapes of the same file index:

      - no arguments      -> every source file participating in the design
      - ``name``          -> full paths whose short name matches (substring, or
                             exact with ``exact=True``)
      - ``modules_of``    -> the module definitions declared in that file

    Note ``modules_of`` takes a *filesystem* path, not a design hierarchy path.

    Args:
        name: (partial) file short name, e.g. "uart_core.sv".
        exact: require the short name to match exactly rather than as a substring.
        modules_of: full path of a source file whose modules you want.
sample_at_clock tool
Values of signals sampled on a clock's edges: one row per clock cycle.

    A waveform stores changes, but synchronous logic is reasoned about per
    cycle. Reading raw changes makes every combinational glitch and every
    picosecond of skew look like an event; sampling on the edge asks what the
    logic actually captured.

    Returns a cycle table: each row is one edge time plus the value each
    requested signal held at that instant. ``null`` means the signal had no
    recorded value yet, which is not the same as x and is not collapsed into it.

    Only clean 0->1 (or 1->0) clock transitions count as edges. A clock passing
    through x or z yields no edge, since an unknown clock captured nothing
    definite.

    ``paths`` / ``start`` / ``end`` fall back to the session query defaults.

    Args:
        paths: signal path or list of paths to sample.
        clock: full path of the clock signal, e.g. "top.clk".
        edge: "rising" (default), "falling", or "both".
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end; "max" = end of the dump.
        limit: target number of cycles in the reply; more are downsampled
            evenly (first and last kept) and the reply says so.
fsm_transitions tool
State transitions a register actually made, plus which RTL branches ran.

    Two facts a waveform can settle about a state machine: which transitions
    occurred (with counts and first occurrence), and which of the RTL branches
    assigning this register ever had its guard hold at a transition instant.

    **This is not coverage.** Coverage needs a denominator — the states and
    transitions the design is *supposed* to have — and that comes from intent,
    not from one dump. A state or transition not listed may be unreachable by
    design, simply not exercised by this stimulus, or a real hole; one waveform
    cannot tell those apart, so nothing here is reported as a gap or a bug.

    A branch whose guard was undecidable (x/z) at some transitions reports
    ``undecided_at``, because "taken: false" would otherwise overstate the case.

    ``path`` may be omitted when the defaults hold exactly one signal; the window
    falls back to the query defaults.

    Args:
        path: full path of the state register, e.g. "top.u_ctrl.state".
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end; "max" = end of the dump.
signal_downstream tool
Signals this one can affect, optionally with when each next changed.

    The forward mirror of ``signal_fanin``. ``signal_loads`` gives one hop;
    this follows the chain, including across hierarchy boundaries.

    Pass ``time`` to join the netlist answer with the waveform: each downstream
    signal also reports the first time it changed *after* that instant. That
    turns "what does this reach" into "what actually moved as a result", which
    is the question worth asking when a signal went wrong at a known moment.

    Reachability comes from the netlist and a change after ``time`` is only a
    correlation: a signal may change for an unrelated reason, and this does not
    claim causation. ``first_change_after`` being null means it never changed
    again, which is itself evidence the path was not exercised.

    ``path`` may be omitted when the defaults hold exactly one signal; ``time``
    falls back to the defaults' window start when a window is set.

    Args:
        path: signal path to walk forward from.
        time: instant to measure downstream changes after, e.g. "300ns".
            Omit to get reachability only.
        max_depth: hierarchy levels to follow (1 = one hop, the default; up
            to 8 to follow the chain across module boundaries).
        limit: cap on returned signals.
fold_transactions tool
Fold signal activity into transaction records you define.

    A bus trace is thousands of value changes; the question is usually "which
    transactions happened and what did each carry". You say what a transaction
    is, this returns the records.

    **No protocol library is built in** — no AXI, APB or AHB tables. Describe the
    handshake yourself with the same expression objects ``find_time_windows``
    uses. A built-in protocol table would be wrong for every design that
    deviates from the spec, and wrong silently.

    Conditions are treated as *edges*: a transaction opens when ``start_cond``
    becomes true (not while it stays true) and closes when ``end_cond`` next
    becomes true. A condition already true at the window start opens nothing,
    since its transition was never observed.

    A transaction still open at the window end is reported with
    ``incomplete: true`` and no end time: "we stopped looking" and "it finished
    here" are different facts, so no end is guessed. An end edge with nothing
    open (or, with ``id_field``, nothing open under that id) is reported as
    ``unmatched_end`` rather than dropped. An edge is "false before, true now":
    a condition coming out of x/z opens or closes nothing.
    Time where a condition is undecidable (x/z) claims no boundary and is
    reported separately, so an empty result is not proof nothing happened.

    Args:
        start_cond: expression object that opens a transaction on its rising edge.
        end_cond: expression object that closes one on its rising edge.
        id_field: signal path tagging each transaction, enabling out-of-order
            matching. Without it, ends pair FIFO with the oldest open one.
        fields: extra signal paths to capture at open and at close.
        start: window start, e.g. "100ns"; "min" = start of the dump.
        end: window end; "max" = end of the dump.
        limit: target number of records in the reply.
diff_waveforms tool
Compare two or more FST waveforms and find the first divergence.

    Turns "what changed between these runs" into one deterministic call:
    returns the first divergence time, the earliest-diverging signals (prime
    suspects; later ones are usually downstream contagion) and an honest
    coverage flag. Follow up with signal_fanin/active_drivers on the earliest
    diverger, then open_wave_view with the runs and a marker there.

    With more than two runs each diverging signal also reports ``groups``: the
    run indices partitioned by the value they hold. How the runs split is itself
    the evidence — three agreeing against one points at that run's stimulus,
    while a two-two split points at a configuration difference. A run that has
    no value yet at that point joins no group rather than counting as different.

    Args:
        fst_paths: two or more FST paths. Reply indices follow this order, so
            index 0 is conventionally the passing run.
        scope: restrict comparison to signals under this instance path —
            strongly recommended on full-chip waveforms.
        signals: explicit signal paths to compare (overrides scope).
        clock: sample on this clock's rising edges instead of raw events;
            filters phase-jitter/glitch false divergences.
        after: ignore differences before this time (e.g. "200ns" to skip
            reset); default compares from time 0.
open_wave_view tool
Open waveform(s) in the browser viewer and return the URL for the user.

    Streams via a local surver process, so tens-of-GB FSTs open in
    milliseconds. Give the returned URL to the user; IDE terminals
    auto-forward localhost ports. Two fst_paths open a comparison view.

    Time fields are strict objects: {"time": <digits>, "unit": "ps"} (unit
    one of s / ms / us / ns / ps / fs, default ps). A suffixed value like
    "1523400ps" is accepted and normalized. Unknown fields, unknown units,
    conflicting suffixes and malformed values are rejected with a structured
    error naming the parameter, never silently ignored or defaulted.

    Args:
        fst_paths: one waveform (normal view) or two (diff view, e.g.
            [pass, fail]); at most two. FST is opened directly; VCD and FSDB
            are converted to FST first and cached, so the same waveform
            converted during analysis is reused here instead of being
            converted again.
        signals: initial signals, each {path, color?, group?, format?, source?}.
            Prefer a short ASCII word for ``group``: the heading is drawn in the
            waveform canvas, whose font has no CJK glyphs, so non-ASCII names
            show as boxes (the grouping itself still works). Spaces are turned
            into underscores automatically. Put prose in ``annotation``, which
            renders any language correctly.
        cursor: {time, unit} to pin the cursor (e.g. the failure time).
        viewport: {from, to, unit} visible time window.
        markers: [{time, unit, label?, color?}] annotations on the timeline.
        diff: diff_waveforms result reference exactly {source_a, source_b,
            first_divergence} — auto-adds a red marker at the divergence.
            first_divergence may be passed back verbatim ("85ns" is accepted
            and normalized).
        annotation: {markdown, confidence?, evidence?} analysis note shown in
            the log popup next to the waveform. Any language: written in your
            own words, rendered as-is.
        labels: display labels per waveform, one per waveform (e.g.
            ["pass", "fail"]).

    Returns available:true plus view_id and url on success, reports an
    ``evicted_view_id`` when the view cap had to close an older view, and
    lists ``warnings`` for anything worth saying: a command that had to be
    dropped, or a requested signal the waveform does not contain (Surfer
    drops such a name silently, so the reply says so; the page shows it
    too). Failures return
    {"status": "error", "error_type": ...}: invalid_argument for a malformed
    parameter, file_not_found / unsupported_format / conversion_failed for
    waveform-file problems, surver_error when the viewer backend cannot
    start, and viewer_unavailable (with available:false) when the viewer
    feature is not installed at all.
update_wave_view tool
Update an open wave view in place (same URL, no reload for the user).

    Omitted args keep their current value; lists replace entirely except
    annotations, which append to the analysis log popup. Same ``group``,
    ``annotation`` and time-schema conventions as open_wave_view; returns
    ``warnings`` for a dropped command or a requested signal that is not in
    the waveform, and structured errors on bad input.
get_view_state tool
Read the delivery status of an open wave view.

    Returns the actual state (applied revision, page_ready / page_error)
    written back by the browser, plus a desired-state summary.
    ``page_ready`` says whether the page actually reached the streaming
    backend (a blank or unreachable page reports false with the reason in
    ``page_error``). User-interaction readback (cursor position,
    user_dirty) is not populated: the shell no longer reads state out of
    the viewer app, so those fields stay at their defaults.
list_wave_views tool
List the wave views currently open in this server.

    Returns each view's view_id, url, title, waveform paths, revision and
    whether its streaming backend is still alive, newest first. Use it to
    find a view again after losing track of a view_id, or to check what is
    still holding resources during a long batch run.
close_wave_view tool
Close a wave view and release its server and streaming backend.

    Views stay open until closed, so a batch that opens many of them should
    close each one when done. The streaming backend is shared between views
    on the same waveform set and is only stopped once no view still uses it.

    Args:
        view_id: the view to close. Required unless all_views is set.
        all_views: close every open view instead of a single one.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.0
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    2 findings the scanner could not decide; see the findings below
  • Requests any address
    No tool sends a request to an address the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 37 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    3 of 38 capabilities start processes; 34 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    7 of 38 capabilities touch files; 30 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 38 capabilities; 37 more call code the scanner could not follow, where it may happen
Where the code is: 38 handlers in 1 file at commit c1fdbf0a9b3b
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain7.0
  • Dependency manifests
    2 manifests: pyproject.toml, requirements.txt
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; requirements.txt: 3 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    mcp >=2.0.0,<3
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 38 capabilities; 37 more call code the scanner could not follow, where it may happen
  • Environment variables
    4 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKmcp >=2.0.0,<3

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-16
Signed releasesnot checked yet

Where it is published

Listed in1 catalog (github_search)
LicenseNOASSERTION
Created2026-07-27
Topicschip-verification debug eda fsdb fst llm-tools mcp pyslang rtl vcd

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.