mcp

v0.1.0-alpha.6
@rivetjs/mcp Checked 2 days ago Published 29 days ago

Rivet 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.

ParameterTypeDescription
query *stringWords or identifiers, e.g. 'form in drawer live page' or 'createAsyncList'
kindstringOnly guide pages, API entries or examples
limitintegerDefault 10
sitestringdocs (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).

ParameterTypeDescription
path *stringDoc 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…).

ParameterTypeDescription
packagestringOnly 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.

ParameterTypeDescription
name *string
examplesintegerExample sources to include (default 3)
packagestring

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.

ParameterTypeDescription
code *stringWhole file source
filenamestringApp-relative path, default src/routes/index.tsx (route files get route checks)
resumebooleanCompile 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.

ParameterTypeDescription
code *stringRV code, or `all`