AI Tooling
Experimental. The MCP server is new and changing quickly. Tool names, arguments and the build process it describes may change between versions, and so may these pages. Report anything that does not match what you see.
None of this is required. Waveflow runs standalone; see Installing Waveflow. Use these tools when you want an AI assistant to help you build designs with Waveflow.
What is MCP?
The Model Context Protocol (MCP) is an open standard for connecting an AI assistant to outside tools. An MCP server is a program that offers a set of named tools, each with a description and typed arguments. The assistant’s host (VS Code, Claude Code and others) starts the server, shows its tools to the model, and runs a tool whenever the model decides to call one. The model then reads the result and continues.
The Waveflow MCP server is one such program. It runs on your own machine, inside the Python environment where Waveflow is installed. Your assistant starts it for you; you never run it by hand.
Why use it
A general-purpose AI assistant knows C++, Python and a good deal of Vitis HLS,
but it has never seen Waveflow. Asked to build an accelerator, it does not know
that the design starts from a DataList schema, that the kernel and testbench
are generated rather than written, or that a BuildDag runs the flow. Left
alone, it falls back on hand-written HLS, which is exactly what Waveflow is
meant to replace.
The MCP server gives the assistant what it is missing:
| Tools | What the assistant gets |
|---|---|
waveflow_browse, waveflow_search, waveflow_get_doc |
The guide. It can browse the page tree by title and summary, search it, and read any page or section in full. |
waveflow_list_examples, waveflow_get_example, waveflow_find_usage |
The reference examples, meaning only those listed under Examples. It can find every place a Waveflow class or function is actually used, then read the whole file. |
waveflow_list_frames, waveflow_get_process |
The architecture menu, then the process. Each frame is a design pattern in one system shape and one verification flow – one host-launched kernel (stream_inband), a pipeline of free-running tasks (freerun_pipeline), several kernels on a bus (bus_system). The assistant chooses the frame that matches the spec, then follows its ordered steps and rules (Frames). The main rule: freeze the specification and the tests before writing the design. |
waveflow_new_accel_project |
A starting point, for a frame that has a scaffold (today stream_inband): a new project copied from the frame’s reference design, which builds and passes C simulation before you change anything. |
waveflow_validate_schema, waveflow_get_components |
Checks on the schemas it writes. |
Three properties matter in practice:
- Local. Everything runs on your machine. There is no API key, no cloud service, and nothing is uploaded. The only AI involved is the assistant you already use.
- Always current. The search index is built from your Waveflow clone each time the server starts, which takes about a second. When the guide or an example changes, the next session sees the change.
- Also a command line. Every tool is also a
waveflowsubcommand (for examplewaveflow kb search "…"). You can see exactly what the assistant sees, and an assistant without MCP support can still use the tools from a terminal.
In this section
- Installing the MCP Server: what you need, installing Waveflow so the server can find the guide, and connecting VS Code or Claude Code.
- Searching the Guide and Examples: the search and read tools
in detail, and the
waveflow kbcommand line. - Frames: how an assistant asked for an accelerator chooses an architecture from the spec and follows its process – the three frames, the stop for review between specification and build, and how to add a frame.
- Agent Skills: short instruction folders an assistant loads
when a task matches, installed into a project with
waveflow skills install. - Blind Testing the MCP Server: run a fresh agent on a spec with nothing but the Waveflow tools, and get a report of what it did.
- VS Code Extension: building the Waveflow VS Code extension. Only for contributors to the extension; not needed to use the MCP server.
Table of contents
- Installing the MCP Server - Setting up the Waveflow MCP server: which assistants are supported (VS Code chat with any model it offers, recommended; or Claude Code), why the server needs a clone of the Waveflow repository with an editable install rather than a plain pip install, how `waveflow init` sets a project up for every assistant (MCP server config, AGENTS.md, skills), what a claude.ai/code cloud session gets, and how to check that the connection works.
- Searching the Guide and Examples - How an AI assistant finds things in Waveflow: six local tools over the guide and the reference examples, with no API key, no service and no corpus to rebuild. The index is built in memory from your checkout each time the server starts, so it is never out of date, and every tool is also a waveflow kb subcommand for agents that cannot speak MCP.
- Frames - How Waveflow guides an AI agent that is asked to build an accelerator. A frame is a design pattern realized in one system shape and one verification flow, with a reference example that proves it -- stream_kernel (one free-running kernel on streams), stream_pipeline (free-running stages on streams), stream_inband (one host-launched kernel), freerun_pipeline (a composite of free-running tasks) and bus_system (kernels and a host on a crossbar). The agent chooses a frame from the spec, then follows its process: a specification stage that stops for review, then the build against that frozen specification. Covers the menu, what is in a frame, the shared process, the frame lint, and how to add a frame.
- Agent Skills - Short SKILL.md instruction folders an AI coding agent loads when a task matches: the rules Waveflow's patterns depend on, and which guide page to read before which step. Shipped with Waveflow and installed into a project with `waveflow skills install`, for Claude Code and for agents that read .agents/skills. A skill per step of the design flow (start, schemas, kernels, kernel HLS bodies, devices, pipelines, shared kernels, systems); experimental, and being evaluated.
- Blind Testing the MCP Server - How to test the MCP server the way a new user meets it: waveflow blind-test gives a fresh AI agent a spec and nothing but the Waveflow tools, runs it unattended to completion, and writes a report of which tools it called, what it read and wrote, what it was denied and how much it used. Currently built on the Claude Code command line.
- VS Code Extension - Setting up the development environment for the Waveflow VS Code extension — Node.js, the build, and the debug run. Only for contributors working on the extension itself; using Waveflow needs neither Node.js nor this build environment.