@maz-ui/mcp 5.1.0-beta.0 → 5.1.0-beta.1
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 +1 -1
- package/dist/cli.mjs +3 -1
- package/dist/index.d.mts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.mjs +3 -1
- package/dist/shared/{mcp.DzqVbCaL.mjs → mcp.DseFuKdl.mjs} +696 -74
- package/docs/README.md +37 -37
- package/docs/agents/agents-md.md +4 -4
- package/docs/agents/claude-rule.md +4 -4
- package/docs/components/maz-accordion.md +2 -0
- package/docs/components/maz-btn-group.md +1 -0
- package/docs/components/maz-btn.md +3 -1
- package/docs/components/maz-card-spotlight.md +2 -2
- package/docs/components/maz-circular-progress-bar.md +2 -2
- package/docs/components/maz-drawer.md +3 -2
- package/docs/components/maz-fullscreen-loader.md +2 -2
- package/docs/components/maz-loading-bar.md +2 -2
- package/docs/components/maz-pagination.md +2 -2
- package/docs/components/maz-radio.md +2 -2
- package/docs/components/maz-sidebar-content.md +2 -2
- package/docs/components/maz-sidebar-footer.md +2 -2
- package/docs/components/maz-sidebar-group.md +2 -2
- package/docs/components/maz-sidebar-header.md +2 -2
- package/docs/components/maz-sidebar-menu-button.md +2 -2
- package/docs/components/maz-sidebar-menu-item.md +2 -2
- package/docs/components/maz-sidebar-menu-sub.md +2 -2
- package/docs/components/maz-sidebar-menu.md +2 -2
- package/docs/components/maz-sidebar-separator.md +2 -2
- package/docs/components/maz-sidebar-trigger.md +2 -2
- package/docs/components/maz-spinner.md +2 -2
- package/docs/components/maz-stepper.md +5 -0
- package/docs/components/maz-table-cell.md +2 -2
- package/docs/components/maz-table-row.md +2 -2
- package/docs/components/maz-table-title.md +2 -2
- package/docs/components/maz-table-virtualizer.md +2 -2
- package/docs/components/maz-tabs-bar.md +2 -2
- package/docs/components/maz-tabs-content-item.md +2 -2
- package/docs/components/maz-tabs-content.md +2 -2
- package/docs/components/maz-ui-provider.md +2 -2
- package/docs/composables/use-aos.md +2 -2
- package/docs/composables/use-breakpoints.md +2 -2
- package/docs/composables/use-toast.md +2 -2
- package/docs/composables/use-user-visibility.md +4 -4
- package/docs/composables/use-wait.md +2 -2
- package/docs/directives/fullscreen-img.md +4 -4
- package/docs/ecosystem/icons/icon-set.md +4 -4
- package/docs/ecosystem/icons/index.md +4 -4
- package/docs/ecosystem/mcp.md +1 -1
- package/docs/ecosystem/nuxt.md +5 -1
- package/docs/ecosystem/translations.md +2 -2
- package/docs/ecosystem/utils/country-code-to-unicode-flag.md +2 -2
- package/docs/guide/ai-agents.md +6 -4
- package/docs/guide/tailwind.md +25 -1
- package/docs/manifest.json +1 -1
- package/docs/reference/tailwind-tokens.md +1 -1
- package/docs/rules.md +5 -3
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ To use it without writing anything in your projects, register the server once fo
|
|
|
26
26
|
| `search_docs` | Find what maz-ui provides for a need in plain words ("confirm before delete", "phone input", "debounce search") |
|
|
27
27
|
| `get_component_api` | Exact API of up to 10 components: props, accepted values, `v-model`, events, slots, exposed |
|
|
28
28
|
| `find_icons` | Icons of `@maz-ui/icons` by meaning, with imports |
|
|
29
|
-
| `get_theme_tokens` |
|
|
29
|
+
| `get_theme_tokens` | The theme of your project (preset, `@theme` tokens, variants, utilities) and every Tailwind class and CSS variable of the maz-ui theme |
|
|
30
30
|
| `get_doc` | Any documentation page, whole or by sections |
|
|
31
31
|
| `list_docs` | Catalog of everything maz-ui provides |
|
|
32
32
|
| `get_setup_guide` | Install maz-ui in a Vue or Nuxt app, with or without Tailwind |
|
package/dist/cli.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import 'node:path';
|
|
|
3
3
|
import 'node:util';
|
|
4
4
|
import '@maz-ui/node';
|
|
5
5
|
import '@maz-ui/utils/helpers/getErrorMessage';
|
|
6
|
-
export { H as HELP, m as main, i as runCli, k as runInit, n as runReview } from './shared/mcp.
|
|
6
|
+
export { H as HELP, m as main, i as runCli, k as runInit, n as runReview } from './shared/mcp.DseFuKdl.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:url';
|
|
9
9
|
import 'zod';
|
|
@@ -12,3 +12,5 @@ import '@vue/compiler-dom';
|
|
|
12
12
|
import 'tinyglobby';
|
|
13
13
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
14
14
|
import '@modelcontextprotocol/sdk/server/stdio.js';
|
|
15
|
+
import 'node:child_process';
|
|
16
|
+
import '@babel/parser';
|
package/dist/index.d.mts
CHANGED
|
@@ -219,25 +219,30 @@ interface LoadKnowledgeOptions {
|
|
|
219
219
|
cwd?: string;
|
|
220
220
|
/** Bundle shipped with @maz-ui/mcp */
|
|
221
221
|
bundledDir?: string;
|
|
222
|
+
/** Version of the bundled docs, default: the version of @maz-ui/mcp (released together with maz-ui) */
|
|
223
|
+
bundledVersion?: string;
|
|
222
224
|
}
|
|
223
225
|
declare class Knowledge {
|
|
224
226
|
readonly manifest: Manifest;
|
|
225
227
|
readonly source: KnowledgeSource;
|
|
228
|
+
private readonly documentedVersion;
|
|
226
229
|
readonly docsById: Map<string, DocEntry>;
|
|
227
230
|
readonly componentsByName: Map<string, ComponentApi>;
|
|
228
231
|
readonly iconNames: Set<string>;
|
|
229
232
|
private readonly cache;
|
|
230
|
-
|
|
233
|
+
/**
|
|
234
|
+
* @param manifest manifest of the docs bundle
|
|
235
|
+
* @param source where the bundle was found
|
|
236
|
+
* @param documentedVersion version of the documented maz-ui, read from a package.json at runtime when possible: the
|
|
237
|
+
* docs are generated before the release bumps the version, so `manifest.version` can be the previous one
|
|
238
|
+
*/
|
|
239
|
+
constructor(manifest: Manifest, source: KnowledgeSource, documentedVersion?: string);
|
|
231
240
|
get version(): string;
|
|
232
241
|
get docs(): DocEntry[];
|
|
233
242
|
readDoc(id: string): string;
|
|
234
243
|
readFile(relativePath: string): string | undefined;
|
|
235
244
|
}
|
|
236
|
-
/**
|
|
237
|
-
* Finds the maz-ui package installed in the project: in the `node_modules`
|
|
238
|
-
* of the project root and of its direct workspace folders (`apps/*`,
|
|
239
|
-
* `packages/*`, for monorepos without hoisting), then in the parent folders.
|
|
240
|
-
*/
|
|
245
|
+
/** Finds the maz-ui package installed in the project, monorepo workspace folders included */
|
|
241
246
|
declare function findProjectMazUi(cwd: string): {
|
|
242
247
|
directory: string;
|
|
243
248
|
version: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -219,25 +219,30 @@ interface LoadKnowledgeOptions {
|
|
|
219
219
|
cwd?: string;
|
|
220
220
|
/** Bundle shipped with @maz-ui/mcp */
|
|
221
221
|
bundledDir?: string;
|
|
222
|
+
/** Version of the bundled docs, default: the version of @maz-ui/mcp (released together with maz-ui) */
|
|
223
|
+
bundledVersion?: string;
|
|
222
224
|
}
|
|
223
225
|
declare class Knowledge {
|
|
224
226
|
readonly manifest: Manifest;
|
|
225
227
|
readonly source: KnowledgeSource;
|
|
228
|
+
private readonly documentedVersion;
|
|
226
229
|
readonly docsById: Map<string, DocEntry>;
|
|
227
230
|
readonly componentsByName: Map<string, ComponentApi>;
|
|
228
231
|
readonly iconNames: Set<string>;
|
|
229
232
|
private readonly cache;
|
|
230
|
-
|
|
233
|
+
/**
|
|
234
|
+
* @param manifest manifest of the docs bundle
|
|
235
|
+
* @param source where the bundle was found
|
|
236
|
+
* @param documentedVersion version of the documented maz-ui, read from a package.json at runtime when possible: the
|
|
237
|
+
* docs are generated before the release bumps the version, so `manifest.version` can be the previous one
|
|
238
|
+
*/
|
|
239
|
+
constructor(manifest: Manifest, source: KnowledgeSource, documentedVersion?: string);
|
|
231
240
|
get version(): string;
|
|
232
241
|
get docs(): DocEntry[];
|
|
233
242
|
readDoc(id: string): string;
|
|
234
243
|
readFile(relativePath: string): string | undefined;
|
|
235
244
|
}
|
|
236
|
-
/**
|
|
237
|
-
* Finds the maz-ui package installed in the project: in the `node_modules`
|
|
238
|
-
* of the project root and of its direct workspace folders (`apps/*`,
|
|
239
|
-
* `packages/*`, for monorepos without hoisting), then in the parent folders.
|
|
240
|
-
*/
|
|
245
|
+
/** Finds the maz-ui package installed in the project, monorepo workspace folders included */
|
|
241
246
|
declare function findProjectMazUi(cwd: string): {
|
|
242
247
|
directory: string;
|
|
243
248
|
version: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DocSearch, K as Knowledge, T as TOOLS, b as buildInstructions, c as countBySeverity, a as createContext, d as createMazUiMcpServer, f as filterBySeverity, e as findProjectMazUi, g as formatFindings, l as loadKnowledge, m as main, r as reviewCode, h as reviewFiles, i as runCli, s as searchIcons, j as startStdioServer } from './shared/mcp.
|
|
1
|
+
export { D as DocSearch, K as Knowledge, T as TOOLS, b as buildInstructions, c as countBySeverity, a as createContext, d as createMazUiMcpServer, f as filterBySeverity, e as findProjectMazUi, g as formatFindings, l as loadKnowledge, m as main, r as reviewCode, h as reviewFiles, i as runCli, s as searchIcons, j as startStdioServer } from './shared/mcp.DseFuKdl.mjs';
|
|
2
2
|
export { setupAgents } from '@maz-ui/node';
|
|
3
3
|
import 'node:buffer';
|
|
4
4
|
import 'node:path';
|
|
@@ -12,3 +12,5 @@ import '@vue/compiler-dom';
|
|
|
12
12
|
import 'tinyglobby';
|
|
13
13
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
14
14
|
import '@modelcontextprotocol/sdk/server/stdio.js';
|
|
15
|
+
import 'node:child_process';
|
|
16
|
+
import '@babel/parser';
|