mcp
v0.2.0-beta.10MCP server and CLI for Keystone UI — lets AI agents and shell users discover, search, view, and install components, blocks, and named examples.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_components
List all available Keystone UI components, blocks, kits, and named examples with pagination. Returns name, description, categories, and dependency info for each item. A package flavour is listed as its own entry, with a `Flavour of:` line.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category (e.g. 'authentication', 'login', 'signup', 'navigation', 'data', 'dashboard', 'admin', 'betting'). Blocks and kits carry categories; components and examples do not. |
limit | number | Maximum number of items to return |
offset | number | Number of items to skip |
type | string | Filter by item type: 'ui' for components, 'block' for full-page blocks, 'example' for named demo variants like 'table-with-pagination', 'kit' for pieces taken from a block and installable on their own… |
search_components
Fuzzy search components, blocks, kits, and named examples (e.g., `table-with-pagination`, `card-with-image`). Categories (e.g. 'authentication', 'login') participate in fuzzy matching. Use when the exact name isn't known; pair with `view_component` or `get_examples` to see code.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (name, description, or keywords) |
category | string | Filter by category (e.g. 'authentication', 'login'). Blocks and kits carry categories; components and examples do not. |
limit | number | Maximum number of results |
type | string | Filter by item type: 'ui' for components, 'block' for full-page blocks, 'example' for named demo variants, 'kit' for pieces taken from a block and installable on their own, 'hook' for React hooks, and… |
view_component
Get full details for one or more Keystone UI components, blocks, kits, or a package flavour such as `npm/users-01`, including complete source code, dependencies, and registry dependencies. Use this to understand how a component works before using or customizing it.
| Parameter | Type | Description |
|---|---|---|
names * | array | Names of components, blocks, kits, or package flavours to view (e.g. ["button", "users-01", "sidebar", "npm/users-01"]). Returns full source code. |
get_add_command
Generate the shadcn CLI command to install one or more Keystone UI components, blocks, or kits into a project. In a project that uses the @keystoneui/react package (see get_project_context), pass flavour: "package" to install the package flavour of a block or kit where the registry has one.
| Parameter | Type | Description |
|---|---|---|
names * | array | Names of components, blocks, or kits to generate install commands for (a package flavour such as `npm/users-01` may be named directly) |
flavour | string | 'package' for a project that uses the @keystoneui/react package (get_project_context install mode `package`): installs a block's or kit's package flavour where the registry has one, and names the comp… |
get_examples
Fetch live demo files for a Keystone UI component or block. Returns the TSX source for every example/demo associated with the name (e.g. button, signin-01, tickets-01). A kit or package flavour with no demos of its own names the block whose demos show it. Use after view_component to see real-world usage patterns.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component, block, kit, or package flavour name (e.g. "button", "signin-01", "tickets-01", "sidebar") |
get_docs
Fetch the full documentation page for a component, block, kit, or package flavour; kits and flavours resolve to the page section that documents them. Includes its Composition tree (the parts hierarchy, and nestings Base UI rejects) and its API Reference table. Read it before composing any compound component. Props are documented ONLY here -- not in the registry -- so view_component alone will not give you a prop's type or default. Previews arrive resolved to inline TSX, so one call returns prose and working code.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component, block, kit, or package flavour name (e.g. "select", "signin-01", "sidebar", "npm/users-01") |
type | string | Which docs section to read from |
get_project_context
Read this project's Keystone UI setup: install mode (npm package vs vendored registry source), path aliases, which CSS file owns the theme tokens, icon library, whether React Server Components are in use, and the package manager. Call this FIRST -- import style and which file to edit both depend on it, and guessing wrong is the most common source of broken output.
get_theme_info
Get Keystone UI theme configuration: CSS setup, semantic color tokens (OKLCH), radius scale, dark mode setup, and custom tokens.
audit_checklist
Get a post-install audit checklist to verify Keystone UI is correctly configured in your project. Covers CSS setup, Tailwind config, dependencies, imports, and common issues.