mcp
v0.1.0-alpha.6Rivet MCP server (stdio): offline docs search, components, compiler diagnostics and fixes for AI assistants.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_docs Search the Rivet docs
Offline full-text search over the Rivet docs (docs = framework guides + API, cdk = headless components, ui = styled components), API reference entries and example sources. Returns doc ids for get_doc.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words or identifiers, e.g. 'form in drawer live page' or 'createAsyncList' |
kind | string | Only guide pages, API entries or examples |
limit | integer | Default 10 |
site | string | docs (framework), cdk (headless components) or ui (styled components) |
get_doc Read a Rivet docs page
Full Markdown of one docs page, API entry or example: a doc id from search_docs (`ui:/components/select/`), a page path (`/guides/components/events/`) or a docs URL (also its `.md` form).
| Parameter | Type | Description |
|---|---|---|
path * | string | Doc id, path or URL |
list_components List Rivet components
Component entry points of @rivetjs/ui (styled compound components), @rivetjs/cdk (headless, React Aria / Angular CDK port) and @rivetjs/kit (head, icons, transitions…).
| Parameter | Type | Description |
|---|---|---|
package | string | Only one package |
get_component Rivet component reference
Import path, props / parts (API symbols with members), docs page and example source code of a @rivetjs/ui, @rivetjs/cdk or @rivetjs/kit component. Name like `Select`, `ComboBox`, `Icon`, or an entry `@rivetjs/cdk/select`. ui is preferred when both packages have the name; pass package to choose.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
examples | integer | Example sources to include (default 3) |
package | string |
check_code Check Rivet code
Compile a .tsx/.ts snippet with the Rivet compiler (server + browser targets, resumable by default) and the Rivet language service: RV diagnostics with line, mechanical fix text and quick fixes (with the fixed source), plus TypeScript errors when @rivetjs packages resolve from the server's working directory. Run it on every Rivet file you write.
| Parameter | Type | Description |
|---|---|---|
code * | string | Whole file source |
filename | string | App-relative path, default src/routes/index.tsx (route files get route checks) |
resume | boolean | Compile as a resumable module (default true for .tsx/.jsx, as in the starters) |
explain_diagnostic Explain a Rivet diagnostic
Meaning, emitted messages, mechanical fix, quick fix and an Avoid / Prefer pair of a Rivet diagnostic code (RV1016, 1016). `all` lists every code.
| Parameter | Type | Description |
|---|---|---|
code * | string | RV code, or `all` |