@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.
@@ -1,560 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/config.ts
4
- import { existsSync, readFileSync } from "fs";
5
- import { resolve } from "path";
6
- var DEFAULT_DOCS_URL = "https://keystoneui.io";
7
- var DEFAULT_REGISTRY_URL = `${DEFAULT_DOCS_URL}/r`;
8
- function resolveDocsUrl() {
9
- return process.env.KEYSTONEUI_URL ?? DEFAULT_DOCS_URL;
10
- }
11
- function loadProjectConfig() {
12
- const docsUrl = resolveDocsUrl();
13
- const derivedRegistryUrl = docsUrl === DEFAULT_DOCS_URL ? DEFAULT_REGISTRY_URL : `${docsUrl}/r`;
14
- const registryUrlEnv = process.env.KEYSTONEUI_REGISTRY_URL;
15
- if (registryUrlEnv) {
16
- return { docsUrl, registry: { url: registryUrlEnv } };
17
- }
18
- const cwd = process.cwd();
19
- const configPath = resolve(cwd, "components.json");
20
- if (existsSync(configPath)) {
21
- try {
22
- const raw = JSON.parse(readFileSync(configPath, "utf-8"));
23
- const registryUrl = raw?.registries?.["@keystoneui"]?.url ?? derivedRegistryUrl;
24
- return { docsUrl, registry: { url: registryUrl } };
25
- } catch {
26
- }
27
- }
28
- return { docsUrl, registry: { url: derivedRegistryUrl } };
29
- }
30
-
31
- // src/package-version.ts
32
- import { readFileSync as readFileSync2 } from "fs";
33
- import { fileURLToPath } from "url";
34
- function readPackageVersion() {
35
- try {
36
- const pkgPath = fileURLToPath(new URL("../package.json", import.meta.url));
37
- const pkg = JSON.parse(readFileSync2(pkgPath, "utf-8"));
38
- return pkg.version ?? "unknown";
39
- } catch {
40
- return "unknown";
41
- }
42
- }
43
-
44
- // src/tools.ts
45
- import { z } from "zod";
46
-
47
- // src/fetcher.ts
48
- var cache = /* @__PURE__ */ new Map();
49
- var CACHE_TTL_MS = 5 * 60 * 1e3;
50
- async function fetchJson(url) {
51
- const cached = cache.get(url);
52
- if (cached && Date.now() - cached.timestamp < CACHE_TTL_MS) {
53
- return cached.data;
54
- }
55
- const response = await fetch(url);
56
- if (!response.ok) {
57
- throw new Error(`Failed to fetch ${url}: ${response.status}`);
58
- }
59
- const data = await response.json();
60
- cache.set(url, { data, timestamp: Date.now() });
61
- return data;
62
- }
63
- function fetchManifest(registryUrl) {
64
- return fetchJson(`${registryUrl}/registry.json`);
65
- }
66
- function fetchItem(registryUrl, name) {
67
- return fetchJson(`${registryUrl}/${name}.json`);
68
- }
69
- function fetchExamples(registryUrl, name) {
70
- return fetchJson(`${registryUrl}/demos/${name}`);
71
- }
72
-
73
- // src/project-context.ts
74
- import { existsSync as existsSync2, readFileSync as readFileSync3 } from "fs";
75
- import { resolve as resolve2 } from "path";
76
- function readJson(path) {
77
- if (!existsSync2(path)) {
78
- return null;
79
- }
80
- try {
81
- return JSON.parse(readFileSync3(path, "utf-8"));
82
- } catch {
83
- return null;
84
- }
85
- }
86
- function detectPackageManager(cwd, manifest) {
87
- const declared = manifest?.packageManager;
88
- if (typeof declared === "string" && declared.length > 0) {
89
- return declared.split("@")[0];
90
- }
91
- const lockfiles = [
92
- ["pnpm-lock.yaml", "pnpm"],
93
- ["bun.lock", "bun"],
94
- ["bun.lockb", "bun"],
95
- ["yarn.lock", "yarn"],
96
- ["package-lock.json", "npm"]
97
- ];
98
- for (const [file, name] of lockfiles) {
99
- if (existsSync2(resolve2(cwd, file))) {
100
- return name;
101
- }
102
- }
103
- return null;
104
- }
105
- function detectProjectContext(cwd = process.cwd()) {
106
- const manifest = readJson(resolve2(cwd, "package.json"));
107
- const components = readJson(resolve2(cwd, "components.json"));
108
- const deps = {
109
- ...manifest?.dependencies,
110
- ...manifest?.devDependencies
111
- };
112
- const keystoneVersion = deps["@keystoneui/react"] ?? null;
113
- let installMode = "unknown";
114
- if (keystoneVersion) {
115
- installMode = "package";
116
- } else if (components) {
117
- installMode = "registry";
118
- }
119
- const tailwind = components?.tailwind;
120
- const css = tailwind?.css;
121
- return {
122
- installMode,
123
- aliases: components?.aliases ?? null,
124
- tailwindCssFile: typeof css === "string" && css.length > 0 ? css : null,
125
- iconLibrary: typeof components?.iconLibrary === "string" ? components.iconLibrary : null,
126
- isRSC: typeof components?.rsc === "boolean" ? components.rsc : null,
127
- packageManager: detectPackageManager(cwd, manifest),
128
- keystoneVersion
129
- };
130
- }
131
- function importLineFor(name, ctx) {
132
- if (ctx.installMode === "registry") {
133
- const ui = ctx.aliases?.ui ?? "@/components/ui";
134
- return `import { \u2026 } from "${ui}/${name}";`;
135
- }
136
- return `import { \u2026 } from "@keystoneui/react/${name}";`;
137
- }
138
- function describeInstallMode(ctx) {
139
- if (ctx.installMode === "package") {
140
- const version = ctx.keystoneVersion ? ` (${ctx.keystoneVersion})` : "";
141
- return `**package** -- \`@keystoneui/react\`${version} is a dependency. Import from subpaths.`;
142
- }
143
- if (ctx.installMode === "registry") {
144
- const ui = ctx.aliases?.ui ?? "@/components/ui";
145
- return `**registry** -- source is vendored via shadcn. Import from \`${ui}\`.`;
146
- }
147
- return "**unknown** -- neither `@keystoneui/react` in dependencies nor a `components.json`. Ask before writing imports.";
148
- }
149
- function describeRsc(isRSC) {
150
- if (isRSC === null) {
151
- return "_unknown_";
152
- }
153
- return isRSC ? 'yes -- interactive files need `"use client"`' : "no";
154
- }
155
- function formatProjectContext(ctx) {
156
- const rows = [
157
- `| install mode | ${describeInstallMode(ctx)} |`,
158
- `| ui alias | ${ctx.aliases?.ui ?? "_unknown_"} |`,
159
- `| theme CSS file | ${ctx.tailwindCssFile ?? "_unknown_ -- ask which file owns the tokens"} |`,
160
- `| icon library | ${ctx.iconLibrary ?? "_unknown_ -- ask before importing icons"} |`,
161
- `| RSC | ${describeRsc(ctx.isRSC)} |`,
162
- `| package manager | ${ctx.packageManager ?? "_unknown_"} |`
163
- ];
164
- return [
165
- "# Project context",
166
- "",
167
- "| field | value |",
168
- "|---|---|",
169
- ...rows,
170
- "",
171
- `Example import: \`${importLineFor("button", ctx)}\``
172
- ].join("\n");
173
- }
174
-
175
- // src/search.ts
176
- import fuzzysort from "fuzzysort";
177
- function applyFilters(items, type, category) {
178
- let filtered = items;
179
- if (type) {
180
- filtered = filtered.filter((i) => i.type === `registry:${type}`);
181
- }
182
- if (category) {
183
- filtered = filtered.filter((i) => i.categories?.includes(category));
184
- }
185
- return filtered;
186
- }
187
- function searchItems(manifest, query, opts = {}) {
188
- const { limit = 20, offset = 0, type, category } = opts;
189
- const items = applyFilters(manifest.items, type, category);
190
- const targets = items.map((item) => ({
191
- item,
192
- searchable: `${item.name} ${item.title ?? ""} ${item.description ?? ""} ${(item.categories ?? []).join(" ")}`
193
- }));
194
- const results = fuzzysort.go(query, targets, {
195
- key: "searchable",
196
- threshold: -1e4
197
- }).map((r) => ({ item: r.obj.item, score: r.score }));
198
- return {
199
- results: results.slice(offset, offset + limit),
200
- total: results.length
201
- };
202
- }
203
- function listItems(manifest, opts = {}) {
204
- const { limit = 20, offset = 0, type, category } = opts;
205
- const items = applyFilters(manifest.items, type, category);
206
- return {
207
- items: items.slice(offset, offset + limit),
208
- total: items.length
209
- };
210
- }
211
-
212
- // src/tools.ts
213
- function formatItemSummary(item) {
214
- const parts = [`**${item.title ?? item.name}** (\`${item.name}\`)`];
215
- if (item.description) {
216
- parts.push(item.description);
217
- }
218
- if (item.categories?.length) {
219
- parts.push(`Categories: ${item.categories.join(", ")}`);
220
- }
221
- if (item.dependencies?.length) {
222
- parts.push(`Dependencies: ${item.dependencies.join(", ")}`);
223
- }
224
- if (item.registryDependencies?.length) {
225
- parts.push(
226
- `Registry dependencies: ${item.registryDependencies.join(", ")}`
227
- );
228
- }
229
- return parts.join("\n");
230
- }
231
- function formatItemDetail(item) {
232
- const sections = [formatItemSummary(item)];
233
- if (item.files?.length) {
234
- for (const file of item.files) {
235
- if (file.content) {
236
- sections.push(`### ${file.path}
237
- \`\`\`tsx
238
- ${file.content}\`\`\``);
239
- }
240
- }
241
- }
242
- return sections.join("\n\n");
243
- }
244
- var listComponentsSchema = z.object({
245
- limit: z.number().min(1).max(100).default(20).describe("Maximum number of items to return"),
246
- offset: z.number().min(0).default(0).describe("Number of items to skip"),
247
- type: z.enum(["ui", "block", "example"]).optional().describe(
248
- "Filter by item type: 'ui' for components, 'block' for full-page blocks, 'example' for named demo variants like 'table-with-pagination'"
249
- ),
250
- category: z.string().optional().describe(
251
- "Filter by category (e.g. 'authentication', 'login', 'signup', 'navigation', 'data', 'dashboard', 'admin', 'betting'). Currently only block items carry categories."
252
- )
253
- });
254
- async function listComponentsTool(config, input) {
255
- const manifest = await fetchManifest(config.registry.url);
256
- const { items, total } = listItems(manifest, input);
257
- const lines = items.map(formatItemSummary);
258
- lines.push(`
259
- ---
260
- Showing ${items.length} of ${total} items.`);
261
- if (input.offset + items.length < total) {
262
- lines.push(`Use offset: ${input.offset + items.length} to see more.`);
263
- }
264
- return lines.join("\n\n");
265
- }
266
- var searchComponentsSchema = z.object({
267
- query: z.string().describe("Search query (name, description, or keywords)"),
268
- limit: z.number().min(1).max(50).default(10).describe("Maximum number of results"),
269
- type: z.enum(["ui", "block", "example"]).optional().describe(
270
- "Filter by item type: 'ui' for components, 'block' for full-page blocks, 'example' for named demo variants"
271
- ),
272
- category: z.string().optional().describe(
273
- "Filter by category (e.g. 'authentication', 'login'). Currently only block items carry categories."
274
- )
275
- });
276
- async function searchComponentsTool(config, input) {
277
- const manifest = await fetchManifest(config.registry.url);
278
- const { results, total } = searchItems(manifest, input.query, {
279
- limit: input.limit,
280
- type: input.type,
281
- category: input.category
282
- });
283
- if (results.length === 0) {
284
- return `No results found for "${input.query}".`;
285
- }
286
- const lines = results.map((r) => formatItemSummary(r.item));
287
- lines.push(`
288
- ---
289
- ${total} result${total === 1 ? "" : "s"} found.`);
290
- return lines.join("\n\n");
291
- }
292
- var viewComponentSchema = z.object({
293
- names: z.array(z.string()).min(1).max(5).describe(
294
- 'Component names to view (e.g. ["button", "card"]). Returns full source code.'
295
- )
296
- });
297
- async function viewComponentTool(config, input) {
298
- const results = await Promise.all(
299
- input.names.map(async (name) => {
300
- try {
301
- const item = await fetchItem(config.registry.url, name);
302
- return formatItemDetail(item);
303
- } catch {
304
- return `**${name}**: Not found in registry.`;
305
- }
306
- })
307
- );
308
- return results.join("\n\n---\n\n");
309
- }
310
- var getAddCommandSchema = z.object({
311
- names: z.array(z.string()).min(1).max(20).describe("Component names to generate install commands for")
312
- });
313
- function getAddCommandTool(config, input) {
314
- const urls = input.names.map((name) => `${config.registry.url}/${name}.json`);
315
- const lines = [
316
- "Install these components with the shadcn CLI:",
317
- "",
318
- "```bash",
319
- `npx shadcn@latest add ${urls.join(" ")}`,
320
- "```",
321
- "",
322
- "Or install individually:",
323
- ""
324
- ];
325
- for (const url of urls) {
326
- lines.push(`\`\`\`bash
327
- npx shadcn@latest add ${url}
328
- \`\`\``);
329
- }
330
- return lines.join("\n");
331
- }
332
- var getExamplesSchema = z.object({
333
- name: z.string().describe(
334
- 'Component or block name (e.g. "button", "signin-01", "tickets-01")'
335
- )
336
- });
337
- async function getExamplesTool(config, input) {
338
- try {
339
- const bundle = await fetchExamples(config.registry.url, input.name);
340
- if (!bundle.files.length) {
341
- return `**${input.name}**: no example files found.`;
342
- }
343
- const sections = [
344
- `# ${input.name} examples`,
345
- `${bundle.files.length} file${bundle.files.length === 1 ? "" : "s"}:`,
346
- ""
347
- ];
348
- for (const file of bundle.files) {
349
- const ext = file.path.includes(".") ? file.path.split(".").pop() : "tsx";
350
- sections.push(`### ${file.path}`);
351
- sections.push(`\`\`\`${ext}
352
- ${file.content}
353
- \`\`\``);
354
- }
355
- return sections.join("\n\n");
356
- } catch {
357
- return `**${input.name}**: examples not found in registry.`;
358
- }
359
- }
360
- function getThemeInfoTool(config) {
361
- const registryUrl = config.registry.url;
362
- const themeCtx = detectProjectContext();
363
- return `# Keystone UI Theme
364
-
365
- ## CSS Setup
366
-
367
- Add these to \`${themeCtx.tailwindCssFile ?? "your global CSS file"}\` -- edit that
368
- file rather than creating a new one, or the tokens will not reach the components.
369
-
370
- \`\`\`css
371
- @import "tailwindcss";
372
- @import "@keystoneui/react/base.css";
373
- \`\`\`
374
-
375
- ## Semantic Color Tokens (OKLCH)
376
-
377
- | Token | Light | Dark | Usage |
378
- |---|---|---|---|
379
- | \`--primary\` | \`oklch(0.21 0.006 285)\` | \`oklch(0.92 0.004 286)\` | Main actions, CTAs |
380
- | \`--secondary\` | \`oklch(0.967 0.001 286)\` | \`oklch(0.274 0.006 286)\` | Alternative actions |
381
- | \`--destructive\` | \`oklch(0.577 0.245 27)\` | \`oklch(0.704 0.191 22)\` | Destructive actions, a metric that got worse |
382
- | \`--success\` | \`oklch(0.627 0.194 149)\` | \`oklch(0.723 0.19 150)\` | Positive status, a metric that improved |
383
- | \`--warning\` | \`oklch(0.769 0.188 70)\` | \`oklch(0.828 0.189 84)\` | Caution and threshold states only |
384
- | \`--info\` | \`oklch(0.546 0.245 263)\` | \`oklch(0.707 0.165 255)\` | Neutral notices (info Alert, info Toast) |
385
- | \`--muted\` | \`oklch(0.967 0.001 286)\` | \`oklch(0.274 0.006 286)\` | Subdued elements |
386
- | \`--accent\` | \`oklch(0.967 0.001 286)\` | \`oklch(0.274 0.006 286)\` | Highlights |
387
- | \`--background\` | \`oklch(1 0 0)\` | \`oklch(0.141 0.005 286)\` | Page background |
388
- | \`--border\` | \`oklch(0.92 0.004 286)\` | \`oklch(1 0 0 / 10%)\` | Border color |
389
- | \`--ring\` | \`oklch(0.21 0.006 286)\` | \`oklch(0.92 0.004 286)\` | Focus ring |
390
-
391
- ## Radius Scale
392
-
393
- Base: \`--radius: 0.625rem\` (10px). Derived values:
394
- - \`rounded-sm\`: \`--radius * 0.6\` (6px)
395
- - \`rounded-md\`: \`--radius * 0.8\` (8px)
396
- - \`rounded-lg\`: \`--radius\` (10px, base)
397
- - \`rounded-xl\`: \`--radius * 1.4\` (14px)
398
-
399
- Ratios, not pixel offsets \u2014 the scale stays proportional at any base.
400
-
401
- ## Custom Tokens
402
-
403
- - \`--input-bg\`: Form control background (transparent light, 5% white dark)
404
- - \`--popup-ring\`: Subtle popup container ring
405
- - \`--border-muted\`: Lower-contrast separator inside popups, and Card's filled ring
406
- - \`--success-foreground\` / \`--warning-foreground\`: Text on a success/warning fill. \`--warning-foreground\` is dark, not near-white \u2014 near-white on amber-500 is ~1.9:1 and fails WCAG
407
- - \`--sidebar\` + 7 \`--sidebar-*\`: Read by an imported shadcn sidebar (keystone ships none). Declared as aliases, so the sidebar follows the active keystone theme
408
-
409
- Use \`text-success\` / \`bg-warning\` rather than raw \`emerald\`/\`amber\` classes, and never add a \`dark:\` override to a status token.
410
-
411
- ## Dark Mode
412
-
413
- Add the \`dark\` class to a parent element.
414
-
415
- ## Registry
416
-
417
- Get the full style definition:
418
- \`\`\`bash
419
- npx shadcn@latest add ${registryUrl}/default.json
420
- \`\`\`
421
-
422
- ## Custom themes
423
-
424
- The theme builder (${config.docsUrl}/theme-builder) encodes a theme as a code,
425
- \`k1_<base>_<L>_<C>_<H>_<radius>_<font>\`, served as a \`registry:theme\` item.
426
- Install one, or only its colours (\`?only=theme\`) or font (\`?only=font\`):
427
- \`\`\`bash
428
- npx shadcn@latest add ${registryUrl}/theme/<code>.json
429
- \`\`\`
430
- \`keystoneui theme <code>\` prints the decoded settings and this command.`;
431
- }
432
- function auditChecklistTool() {
433
- const ctx = detectProjectContext();
434
- const registryMode = ctx.installMode === "registry";
435
- const uiAlias = ctx.aliases?.ui ?? "@/components/ui";
436
- const cssFile = ctx.tailwindCssFile ?? "your CSS entry point";
437
- const iconPkg = iconPackageFor(ctx.iconLibrary);
438
- return `# Post-Install Audit Checklist
439
-
440
- ## 1. CSS Setup (\`${cssFile}\`)
441
- - [ ] \`@import "tailwindcss"\` is present in \`${cssFile}\`
442
- - [ ] \`@import "@keystoneui/react/base.css"\` is imported AFTER tailwindcss
443
- - [ ] Dark mode variant is configured: \`@custom-variant dark (&:is(.dark *))\`
444
-
445
- ## 2. Tailwind Configuration
446
- - [ ] Using Tailwind CSS v4.1+
447
- - [ ] Content paths include your component files
448
-
449
- ## 3. Dependencies
450
- - [ ] \`@keystoneui/react\` is installed
451
- - [ ] Component-specific peer dependencies are installed (check each component's \`dependencies\` field)
452
- - [ ] Using React 19+
453
-
454
- ## 4. Import Pattern (install mode: ${ctx.installMode})
455
- ${registryMode ? `- [ ] Importing from the project alias: \`import { Button } from "${uiAlias}/button"\`
456
- - [ ] NOT importing from \`@keystoneui/react\` -- it is not a dependency in this project` : `- [ ] Using subpath imports: \`import { Button } from "@keystoneui/react/button"\`
457
- - [ ] NOT using barrel imports from \`@keystoneui/react\``}
458
-
459
- ## 5. Theme Variables
460
- - [ ] CSS custom properties are defined in \`:root\` (see \`get_theme_info\` for the full list)
461
- - [ ] Dark mode variables are defined in \`.dark\` selector
462
-
463
- ## 6. Icon Library
464
- - [ ] Using \`${iconPkg}\` for icons, matching this project's configured icon library
465
-
466
- ## 7. Common Issues
467
- - [ ] If hover styles feel "sticky" on mobile: ensure \`base.css\` is imported (it gates \`hover:\` with \`@media (hover: hover)\`)
468
- - [ ] If buttons don't show pointer cursor: Tailwind v4 changed the default \u2014 Keystone UI handles this internally
469
- - [ ] If focus rings look wrong: don't mix outline-based and ring-based focus patterns`;
470
- }
471
- var ICON_PACKAGES = {
472
- lucide: "lucide-react",
473
- tabler: "@tabler/icons-react",
474
- hugeicons: "@hugeicons/react",
475
- remix: "@remixicon/react"
476
- };
477
- function iconPackageFor(library) {
478
- if (library === null) {
479
- return "lucide-react";
480
- }
481
- return ICON_PACKAGES[library] ?? library;
482
- }
483
- var getDocsSchema = z.object({
484
- name: z.string().describe('Component or block name (e.g. "select", "signin-01")'),
485
- type: z.enum(["component", "block"]).default("component").describe("Which docs section to read from")
486
- });
487
- async function getDocsTool(config, input) {
488
- const section = input.type === "block" ? "blocks" : "components";
489
- const url = `${config.docsUrl}/llms.mdx/docs/${section}/${input.name}`;
490
- try {
491
- const response = await fetch(url, {
492
- headers: { "User-Agent": "keystoneui-mcp" },
493
- signal: AbortSignal.timeout(3e4)
494
- });
495
- if (!response.ok) {
496
- return `**${input.name}**: no ${input.type} docs found (${response.status}). Try search_components to find the right name.`;
497
- }
498
- return await response.text();
499
- } catch {
500
- return `**${input.name}**: could not reach ${url}.`;
501
- }
502
- }
503
- var emptySchema = z.object({});
504
- var TOOL_SPECS = {
505
- list_components: {
506
- description: "List all available Keystone UI components, blocks, and named examples with pagination. Returns name, description, categories, and dependency info for each item.",
507
- schema: listComponentsSchema
508
- },
509
- search_components: {
510
- description: "Fuzzy search components, blocks, 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.",
511
- schema: searchComponentsSchema
512
- },
513
- view_component: {
514
- description: "Get full details for one or more Keystone UI components, including complete source code, dependencies, and registry dependencies. Use this to understand how a component works before using or customizing it.",
515
- schema: viewComponentSchema
516
- },
517
- get_add_command: {
518
- description: "Generate the shadcn CLI command to install one or more Keystone UI components into a project.",
519
- schema: getAddCommandSchema
520
- },
521
- get_examples: {
522
- description: "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). Use after view_component to see real-world usage patterns.",
523
- schema: getExamplesSchema
524
- },
525
- get_docs: {
526
- description: "Fetch the full documentation page for a component or block, including 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.",
527
- schema: getDocsSchema
528
- },
529
- get_project_context: {
530
- description: "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.",
531
- schema: emptySchema
532
- },
533
- get_theme_info: {
534
- description: "Get Keystone UI theme configuration: CSS setup, semantic color tokens (OKLCH), radius scale, dark mode setup, and custom tokens.",
535
- schema: emptySchema
536
- },
537
- audit_checklist: {
538
- description: "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.",
539
- schema: emptySchema
540
- }
541
- };
542
- function getProjectContextTool() {
543
- return formatProjectContext(detectProjectContext());
544
- }
545
-
546
- export {
547
- loadProjectConfig,
548
- readPackageVersion,
549
- detectProjectContext,
550
- listComponentsTool,
551
- searchComponentsTool,
552
- viewComponentTool,
553
- getAddCommandTool,
554
- getExamplesTool,
555
- getThemeInfoTool,
556
- auditChecklistTool,
557
- getDocsTool,
558
- TOOL_SPECS,
559
- getProjectContextTool
560
- };