waveform-mcp CLAUDE.md

waveform-mcp CLAUDE.md is an instructions file for coding agents from jiegec/waveform-mcp. It costs 958 tokens per session, scanned A, original, MIT.

Repository instructions for a Rust MCP server that reads and analyzes VCD and FST waveform files, which record signal changes from digital hardware simulations. They document the server structure and its eight waveform-reading tools.

In plain words
What is it for?
Use them when changing waveform-file parsing, signal lookup, hierarchy reading, event searches, or the MCP server's Rust implementation.
Why use it?
They make it clear how to locate signals, inspect hierarchies, read values, and find signal changes without learning the codebase from scratch.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jiegec/waveform-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/jiegec/waveform-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for waveform-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jiegec/waveform-mcp/claude-md.svg)](https://agentmods.dev/instructions/jiegec/waveform-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jiegec/waveform-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/jiegec/waveform-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 958 This file is loaded in full into every session.
When invoked 958 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00958 $0.00958
Opus 5 $0.00479 $0.00479
Sonnet 5 $0.00192 $0.00192
Haiku 4.5 $0.00096 $0.00096

Measured 4d ago against content hash a950cc5d0a69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

waveform-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude's Notes for waveform-mcp

Project Overview

An MCP (Model Context Protocol) server for reading and analyzing VCD/FST waveform files using the wellen library.

Architecture

  • main.rs: MCP server handler with tool routing, supports stdio and HTTP modes
  • lib.rs: Library exports from submodules
  • condition.rs/condition.lalrpop: Parser for conditional expressions (LALRPOP grammar)
  • formatting.rs: Time and signal value formatting utilities
  • hierarchy.rs: Signal/scope lookup by hierarchical path
  • signal.rs: Signal reading, event finding, and metadata

MCP Tools (8 total)

  1. open_waveform - Open VCD/FST files, assign optional alias
  2. close_waveform - Close waveform and free memory
  3. list_signals - List signals with name_pattern, hierarchy_prefix filters
  4. read_hierarchy - Read hierarchy tree from an optional scope
  5. read_signal - Read values at time_index or time_indices
  6. get_signal_info - Get signal type, width, index range
  7. find_signal_events - Find all changes in time range
  8. find_conditional_events - Complex condition search with expression parser

Key Dependencies

  • wellen - Wavefile parsing
  • rmcp - MCP server framework
  • tokio - Async runtime
  • lalrpop - Condition parser grammar
  • axum - HTTP server

Transport Modes

  • Stdio (default): cargo run --release
  • HTTP: cargo run --release -- --http --bind-address 127.0.0.1:8000

Condition Expression Syntax

Supported in find_conditional_events:

  • Signal paths: TOP.signal
  • Bitwise: ~, &, |, ^
  • Boolean: &&, ||, !
  • Comparison: ==, !=
  • Special: $past(signal) for previous value
  • Literals: 4'b0101, 3'd2, 5'h1A
  • Bit extract: signal[bit] or signal[msb:lsb]

Operator precedence (high to low): ~/!, ==/!=, &, ^, |, &&, ||

CLI Tool

A standalone CLI binary waveform-cli is available for direct command-line access:

# Usage: waveform-cli <command> [args...] [-- <command2> ...]
waveform-cli open_waveform test.vcd
waveform-cli open_waveform test.vcd -- list_signals test.vcd --pattern clk

# Chain multiple commands with -- separator
waveform-cli open_waveform test.vcd -- read_signal test.vcd top.clk --time-index 0

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 93 lines · 958 tokens per session scan A a950cc5d0a69

Subscribe to this mod's changes

waveform-mcp CLAUDE.md is an instructions file published in the GitHub repository jiegec/waveform-mcp (47 stars, last pushed 1mo ago), licensed MIT. It adds 958 tokens to every session, about $0.0048 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

iot-satellite-forest-fire-early-warning-agent-skill CLAUDE.md

Instructions for dungnotnull/iot-satellite-forest-fire-early-warning-agent-skill, covering skill identity, problem this skill solves, harness flow summary, sub-skills and tools required.

dungnotnull/iot-satellite-forest-fire-early-warning-agent-skill · 2,708 tokens

small-datacenter-airflow-thermal-optimization-agent-skill CLAUDE.md

Instructions for dungnotnull/small-datacenter-airflow-thermal-optimization-agent-skill, covering skill identity, problem this skill solves, harness flow summary, sub-skills and tools required.

dungnotnull/small-datacenter-airflow-thermal-optimization-agent-skill · 1,814 tokens

rc-boat-hydrodynamics-design-agent-skill CLAUDE.md

Instructions for dungnotnull/rc-boat-hydrodynamics-design-agent-skill, covering claude.md — skill 226: rc-boat-hydrodynamics-design, skill identity, problem this skill solves, harness flow summary and sub-skills.

dungnotnull/rc-boat-hydrodynamics-design-agent-skill · 1,456 tokens

custom-water-cooling-loop-design-agent-skill CLAUDE.md

Instructions for dungnotnull/custom-water-cooling-loop-design-agent-skill, covering claude.md — skill 259: custom-water-cooling-loop-design, skill identity, problem this skill solves, harness flow summary and sub-skills.

dungnotnull/custom-water-cooling-loop-design-agent-skill · 1,265 tokens

standalone-solar-deep-station-agent-skill CLAUDE.md

Instructions for dungnotnull/standalone-solar-deep-station-agent-skill, covering claude.md — skill 285: standalone-solar-deep-station, skill identity, problem this skill solves, harness flow summary and sub-skills.

dungnotnull/standalone-solar-deep-station-agent-skill · 1,275 tokens

fog-water-harvester-design-agent-skill CLAUDE.md

Instructions for dungnotnull/fog-water-harvester-design-agent-skill, covering claude.md ? skill 305: fog-water-harvester-design, skill identity, problem this skill solves, harness flow summary and sub-skills.

dungnotnull/fog-water-harvester-design-agent-skill · 1,202 tokens