@keystoneui/mcp 0.2.0-beta.7 → 0.2.0-beta.8
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
CHANGED
|
@@ -54,7 +54,7 @@ npx @keystoneui/mcp theme k1_slate_0.55_0.2_262.5_large_inter
|
|
|
54
54
|
|---|---|
|
|
55
55
|
| `init [--client <name>]` | Configure MCP client |
|
|
56
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`) |
|
|
57
|
+
| `list [--type T] [--limit N] [--offset N]` | List items (`T` = `ui` \| `block` \| `example` \| `kit` \| `hook` \| `style` \| `theme` \| `item`) |
|
|
58
58
|
| `view <name> [<name>...]` | Show the source of components, blocks, kits or package flavours |
|
|
59
59
|
| `examples <name>` | All demo files for a component or block |
|
|
60
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 |
|
|
@@ -860,6 +860,7 @@ var ITEM_TYPES = [
|
|
|
860
860
|
"block",
|
|
861
861
|
"example",
|
|
862
862
|
"kit",
|
|
863
|
+
"hook",
|
|
863
864
|
"style",
|
|
864
865
|
"theme",
|
|
865
866
|
"item"
|
|
@@ -877,7 +878,7 @@ var listComponentsSchema = z.object({
|
|
|
877
878
|
limit: z.number().min(1).max(100).default(20).describe("Maximum number of items to return"),
|
|
878
879
|
offset: z.number().min(0).default(0).describe("Number of items to skip"),
|
|
879
880
|
type: z.enum(ITEM_TYPES).optional().describe(
|
|
880
|
-
"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 (such as 'sidebar' or 'filter-pills'), and 'style' | 'theme' | 'item' for those registry types"
|
|
881
|
+
"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 (such as 'sidebar' or 'filter-pills'), 'hook' for React hooks such as 'use-media-query', and 'style' | 'theme' | 'item' for those registry types"
|
|
881
882
|
),
|
|
882
883
|
category: z.string().optional().describe(
|
|
883
884
|
"Filter by category (e.g. 'authentication', 'login', 'signup', 'navigation', 'data', 'dashboard', 'admin', 'betting'). Blocks and kits carry categories; components and examples do not."
|
|
@@ -902,7 +903,7 @@ var searchComponentsSchema = z.object({
|
|
|
902
903
|
query: z.string().describe("Search query (name, description, or keywords)"),
|
|
903
904
|
limit: z.number().min(1).max(50).default(10).describe("Maximum number of results"),
|
|
904
905
|
type: z.enum(ITEM_TYPES).optional().describe(
|
|
905
|
-
"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, and 'style' | 'theme' | 'item' for those registry types"
|
|
906
|
+
"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 'style' | 'theme' | 'item' for those registry types"
|
|
906
907
|
),
|
|
907
908
|
category: z.string().optional().describe(
|
|
908
909
|
"Filter by category (e.g. 'authentication', 'login'). Blocks and kits carry categories; components and examples do not."
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
themeInstallCommand,
|
|
23
23
|
themeInstallUrl,
|
|
24
24
|
viewComponentTool
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-H6CFVNPV.js";
|
|
26
26
|
|
|
27
27
|
// src/cli.ts
|
|
28
28
|
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
|
|
@@ -529,6 +529,7 @@ var TYPES = [
|
|
|
529
529
|
"block",
|
|
530
530
|
"example",
|
|
531
531
|
"kit",
|
|
532
|
+
"hook",
|
|
532
533
|
"style",
|
|
533
534
|
"theme",
|
|
534
535
|
"item"
|
|
@@ -608,7 +609,7 @@ async function runSearch(args) {
|
|
|
608
609
|
const { flags, positional } = parseArgs2(args);
|
|
609
610
|
if (positional.length === 0) {
|
|
610
611
|
console.error(
|
|
611
|
-
"Usage: keystoneui search <query> [--type ui|block|example|kit|style|theme|item] [--category C] [--limit N]"
|
|
612
|
+
"Usage: keystoneui search <query> [--type ui|block|example|kit|hook|style|theme|item] [--category C] [--limit N]"
|
|
612
613
|
);
|
|
613
614
|
process.exitCode = 1;
|
|
614
615
|
return;
|
|
@@ -857,6 +858,6 @@ if (isCliVerb(verbCandidate)) {
|
|
|
857
858
|
process.exit();
|
|
858
859
|
}
|
|
859
860
|
var { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
|
|
860
|
-
var { server } = await import("./server-
|
|
861
|
+
var { server } = await import("./server-DVJRKFMC.js");
|
|
861
862
|
var transport = new StdioServerTransport();
|
|
862
863
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystoneui/mcp",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.8",
|
|
4
4
|
"description": "MCP server and CLI for Keystone UI — lets AI agents and shell users discover, search, view, and install components, blocks, and named examples.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|