@keystoneui/mcp 0.2.0-beta.4 → 0.2.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -19
- package/dist/chunk-LC22ZWZH.js +1372 -0
- package/dist/index.js +143 -90
- package/dist/{server-TNVOIXZW.js → server-HWF3HIOR.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-JVJEQ7VV.js +0 -560
package/README.md
CHANGED
|
@@ -12,11 +12,13 @@ The single binary runs in two modes:
|
|
|
12
12
|
### As an MCP server
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npx -y @keystoneui/mcp init --client claude
|
|
15
|
+
npx -y @keystoneui/mcp@latest init --client claude
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Supported clients: `claude`, `cursor`, `vscode`, `opencode`, `codex`. The `init` command writes the appropriate config file for the chosen client and points it at `npx @keystoneui/mcp@latest`.
|
|
19
19
|
|
|
20
|
+
The server runs with the settings of the project it starts in. Before using it in a project you have not reviewed, read [Projects you do not trust](https://keystoneui.io/docs/agents/mcp-server#projects-you-do-not-trust).
|
|
21
|
+
|
|
20
22
|
Once configured, ask your agent things like:
|
|
21
23
|
|
|
22
24
|
- *"List Keystone UI components."*
|
|
@@ -27,23 +29,23 @@ Once configured, ask your agent things like:
|
|
|
27
29
|
|
|
28
30
|
```bash
|
|
29
31
|
# Discover
|
|
30
|
-
npx keystoneui search "table pagination"
|
|
31
|
-
npx keystoneui list --type example
|
|
32
|
-
npx keystoneui blocks signin
|
|
32
|
+
npx @keystoneui/mcp search "table pagination"
|
|
33
|
+
npx @keystoneui/mcp list --type example
|
|
34
|
+
npx @keystoneui/mcp blocks signin
|
|
33
35
|
|
|
34
36
|
# Inspect
|
|
35
|
-
npx keystoneui view button
|
|
36
|
-
npx keystoneui docs button # /llms.mdx/docs/components/button
|
|
37
|
-
npx keystoneui examples table # all demo files for the table component
|
|
37
|
+
npx @keystoneui/mcp view button
|
|
38
|
+
npx @keystoneui/mcp docs button # /llms.mdx/docs/components/button
|
|
39
|
+
npx @keystoneui/mcp examples table # all demo files for the table component
|
|
38
40
|
|
|
39
41
|
# Install (delegates to shadcn CLI)
|
|
40
42
|
npx shadcn@latest add https://keystoneui.io/r/table-with-pagination.json
|
|
41
43
|
|
|
42
44
|
# Verify
|
|
43
|
-
npx keystoneui audit
|
|
45
|
+
npx @keystoneui/mcp audit
|
|
44
46
|
|
|
45
47
|
# Theme (a code from https://keystoneui.io/theme-builder)
|
|
46
|
-
npx keystoneui theme k1_slate_0.55_0.2_262.5_large_inter
|
|
48
|
+
npx @keystoneui/mcp theme k1_slate_0.55_0.2_262.5_large_inter
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
## Verbs
|
|
@@ -51,13 +53,13 @@ npx keystoneui theme k1_slate_0.55_0.2_262.5_large_inter
|
|
|
51
53
|
| Verb | Purpose |
|
|
52
54
|
|---|---|
|
|
53
55
|
| `init [--client <name>]` | Configure MCP client |
|
|
54
|
-
| `search <query> [--type T] [--limit N]` | Fuzzy search components, blocks, named examples |
|
|
55
|
-
| `list [--type T] [--limit N] [--offset N]` | List items (`T` = `ui` \| `block` \| `example`) |
|
|
56
|
-
| `view <name> [<name>...]` | Show
|
|
56
|
+
| `search <query> [--type T] [--limit N]` | Fuzzy search components, blocks, kits, named examples |
|
|
57
|
+
| `list [--type T] [--limit N] [--offset N]` | List items (`T` = `ui` \| `block` \| `example` \| `kit` \| `style` \| `theme` \| `item`) |
|
|
58
|
+
| `view <name> [<name>...]` | Show the source of components, blocks, kits or package flavours |
|
|
57
59
|
| `examples <name>` | All demo files for a component or block |
|
|
58
|
-
| `docs <name
|
|
60
|
+
| `docs <name> [--type component\|block]` | Fetch the LLM-resolved MDX page (`/llms.mdx/docs/{components\|blocks}/<name>`); a kit or package flavour resolves to the section that documents it |
|
|
59
61
|
| `audit [--theme [css]] [--strict]` | Print the post-install checklist, or measure every text/surface token pair in your theme against WCAG AA |
|
|
60
|
-
| `blocks [<filter>]` | List or filter full-page blocks |
|
|
62
|
+
| `blocks [<filter>]` | List or filter full-page blocks; an exact block name views it. Kits are listed with `list --type kit` |
|
|
61
63
|
| `theme <code> [--only theme,font]` | Decode a theme-builder code and print its `shadcn add` command |
|
|
62
64
|
|
|
63
65
|
Run `keystoneui help` for the full list. Without any verb the binary launches the MCP stdio server.
|
|
@@ -66,12 +68,12 @@ Run `keystoneui help` for the full list. Without any verb the binary launches th
|
|
|
66
68
|
|
|
67
69
|
When run without arguments the server exposes nine tools to MCP clients:
|
|
68
70
|
|
|
69
|
-
- `get_docs` — full docs page for a component or
|
|
71
|
+
- `get_docs` — full docs page for a component, block, kit, or package flavour, including its API Reference
|
|
70
72
|
- `get_project_context` — install mode, aliases, theme CSS file, icon library, RSC
|
|
71
|
-
- `list_components` — list components, blocks, or examples with pagination
|
|
72
|
-
- `search_components` — fuzzy search across components, blocks, and examples
|
|
73
|
-
- `view_component` — full source for one or more components
|
|
74
|
-
- `get_add_command` — generate the shadcn CLI command for installing components
|
|
73
|
+
- `list_components` — list components, blocks, kits, or examples with pagination
|
|
74
|
+
- `search_components` — fuzzy search across components, blocks, kits, and examples
|
|
75
|
+
- `view_component` — full source for one or more components, blocks, kits, or package flavours
|
|
76
|
+
- `get_add_command` — generate the shadcn CLI command for installing components; `flavour: "package"` picks a block's or kit's package flavour for an app on `@keystoneui/react`
|
|
75
77
|
- `get_examples` — fetch live demo files for a component or block
|
|
76
78
|
- `get_theme_info` — semantic color tokens, radius scale, dark-mode setup
|
|
77
79
|
- `audit_checklist` — post-install verification checklist
|