@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.
Files changed (57) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.mjs +3 -1
  3. package/dist/index.d.mts +11 -6
  4. package/dist/index.d.ts +11 -6
  5. package/dist/index.mjs +3 -1
  6. package/dist/shared/{mcp.DzqVbCaL.mjs → mcp.DseFuKdl.mjs} +696 -74
  7. package/docs/README.md +37 -37
  8. package/docs/agents/agents-md.md +4 -4
  9. package/docs/agents/claude-rule.md +4 -4
  10. package/docs/components/maz-accordion.md +2 -0
  11. package/docs/components/maz-btn-group.md +1 -0
  12. package/docs/components/maz-btn.md +3 -1
  13. package/docs/components/maz-card-spotlight.md +2 -2
  14. package/docs/components/maz-circular-progress-bar.md +2 -2
  15. package/docs/components/maz-drawer.md +3 -2
  16. package/docs/components/maz-fullscreen-loader.md +2 -2
  17. package/docs/components/maz-loading-bar.md +2 -2
  18. package/docs/components/maz-pagination.md +2 -2
  19. package/docs/components/maz-radio.md +2 -2
  20. package/docs/components/maz-sidebar-content.md +2 -2
  21. package/docs/components/maz-sidebar-footer.md +2 -2
  22. package/docs/components/maz-sidebar-group.md +2 -2
  23. package/docs/components/maz-sidebar-header.md +2 -2
  24. package/docs/components/maz-sidebar-menu-button.md +2 -2
  25. package/docs/components/maz-sidebar-menu-item.md +2 -2
  26. package/docs/components/maz-sidebar-menu-sub.md +2 -2
  27. package/docs/components/maz-sidebar-menu.md +2 -2
  28. package/docs/components/maz-sidebar-separator.md +2 -2
  29. package/docs/components/maz-sidebar-trigger.md +2 -2
  30. package/docs/components/maz-spinner.md +2 -2
  31. package/docs/components/maz-stepper.md +5 -0
  32. package/docs/components/maz-table-cell.md +2 -2
  33. package/docs/components/maz-table-row.md +2 -2
  34. package/docs/components/maz-table-title.md +2 -2
  35. package/docs/components/maz-table-virtualizer.md +2 -2
  36. package/docs/components/maz-tabs-bar.md +2 -2
  37. package/docs/components/maz-tabs-content-item.md +2 -2
  38. package/docs/components/maz-tabs-content.md +2 -2
  39. package/docs/components/maz-ui-provider.md +2 -2
  40. package/docs/composables/use-aos.md +2 -2
  41. package/docs/composables/use-breakpoints.md +2 -2
  42. package/docs/composables/use-toast.md +2 -2
  43. package/docs/composables/use-user-visibility.md +4 -4
  44. package/docs/composables/use-wait.md +2 -2
  45. package/docs/directives/fullscreen-img.md +4 -4
  46. package/docs/ecosystem/icons/icon-set.md +4 -4
  47. package/docs/ecosystem/icons/index.md +4 -4
  48. package/docs/ecosystem/mcp.md +1 -1
  49. package/docs/ecosystem/nuxt.md +5 -1
  50. package/docs/ecosystem/translations.md +2 -2
  51. package/docs/ecosystem/utils/country-code-to-unicode-flag.md +2 -2
  52. package/docs/guide/ai-agents.md +6 -4
  53. package/docs/guide/tailwind.md +25 -1
  54. package/docs/manifest.json +1 -1
  55. package/docs/reference/tailwind-tokens.md +1 -1
  56. package/docs/rules.md +5 -3
  57. package/package.json +4 -2
@@ -1,6 +1,6 @@
1
1
  # Tailwind CSS theme reference
2
2
 
3
- > Every Tailwind utility, variant and CSS variable provided by the maz-ui 5.0.1-beta.0 theme. Generated from the `maz-ui/tailwindcss/*.css` sources: it is always in sync with the installed version.
3
+ > Every Tailwind utility, variant and CSS variable provided by the maz-ui theme. Generated from the `maz-ui/tailwindcss/*.css` sources: it is always in sync with the installed version.
4
4
 
5
5
  ## Setup
6
6
 
package/docs/rules.md CHANGED
@@ -5,7 +5,7 @@ description: "How to use maz-ui and its ecosystem in this project: look-up workf
5
5
 
6
6
  # maz-ui rules for AI agents
7
7
 
8
- > maz-ui 5.0.1-beta.0 is installed: these rules and the docs in `node_modules/maz-ui/docs` match this version.
8
+ > These rules and the docs in `node_modules/maz-ui/docs` match the installed version of maz-ui (`node_modules/maz-ui/package.json`).
9
9
 
10
10
  This project is built with **maz-ui** and its ecosystem (`@maz-ui/themes`, `@maz-ui/icons`, `@maz-ui/utils`, `@maz-ui/translations`, `@maz-ui/nuxt`). Reuse what it provides instead of re-implementing it: most UI elements, helpers, icons and styles you need already exist.
11
11
 
@@ -13,7 +13,7 @@ This project is built with **maz-ui** and its ecosystem (`@maz-ui/themes`, `@maz
13
13
 
14
14
  Before creating a component, composable, helper, icon or style, check what maz-ui offers:
15
15
 
16
- - **MCP server `maz-ui`** (when available): `search_docs` (describe the need: "confirm before delete", "phone input"), `get_component_api` (exact props, events, slots), `find_icons`, `get_theme_tokens` (Tailwind classes), `get_doc`, `review_code`.
16
+ - **MCP server `maz-ui`** (when available): `search_docs` (describe the need: "confirm before delete", "phone input"), `get_component_api` (exact props, events, slots), `find_icons`, `get_theme_tokens` (Tailwind classes of the project and of maz-ui), `get_doc`, `review_code`.
17
17
  - **Version-matched docs** in `node_modules/maz-ui/docs/` (start with `README.md`; in a monorepo, resolve `maz-ui` from the app package). Read the relevant page before using an API.
18
18
 
19
19
  Never guess an API: only use props, events, slots and imports that are documented.
@@ -35,7 +35,9 @@ Use `@maz-ui/utils` and maz-ui composables instead of lodash, VueUse or hand-wri
35
35
 
36
36
  ### Styling with Tailwind
37
37
 
38
- The maz-ui theme is exposed to Tailwind (`@import 'maz-ui/tailwindcss/theme.css'`). Only use its tokens:
38
+ The maz-ui theme is exposed to Tailwind (`@import 'maz-ui/tailwindcss/theme.css'`) and the project usually extends it. Only use theme tokens:
39
+
40
+ - **Project tokens first**: the Tailwind entry of the project (the CSS file that imports `maz-ui/tailwindcss/theme.css`) adds its own `@theme` tokens (fonts, animations, colors...), `@custom-variant` and `@utility`, and the `definePreset` file sets the brand values of the maz-ui tokens. `get_theme_tokens` lists both; without the MCP server, read these files. When a value is missing, add a token to the project `@theme` and use its class instead of an arbitrary value.
39
41
 
40
42
  - Colors: `primary`, `secondary`, `accent`, `info`, `success`, `warning`, `destructive`, `contrast` (each with `-foreground` and `-50` to `-950`), `surface`, `foreground`, `muted`, `divider`, `overlay`, plus `bg-container` and `bg-input`. Example: `bg-surface text-foreground border-divider`, `bg-primary text-primary-foreground`, `text-muted`.
41
43
  - Never use the default Tailwind palette (`bg-blue-500`, `text-gray-600`, `bg-white`, `text-black`) nor hard-coded colors (`#fff`, `rgb()`, `bg-[#...]`). Theme colors already adapt to dark mode: do not add `dark:` color overrides.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/mcp",
3
3
  "type": "module",
4
- "version": "5.1.0-beta.0",
4
+ "version": "5.1.0-beta.1",
5
5
  "description": "MCP server and CLI that give AI coding agents the version-matched knowledge of maz-ui and its ecosystem: search, component APIs, icons, Tailwind theme tokens, setup guides and code review",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -51,7 +51,8 @@
51
51
  "node": ">=22.12.0"
52
52
  },
53
53
  "dependencies": {
54
- "@maz-ui/node": "5.1.0-beta.0",
54
+ "@babel/parser": "^8.0.8",
55
+ "@maz-ui/node": "5.1.0-beta.1",
55
56
  "@maz-ui/utils": "5.0.0",
56
57
  "@modelcontextprotocol/sdk": "^1.32.1",
57
58
  "@vue/compiler-dom": "^3.5.44",
@@ -60,6 +61,7 @@
60
61
  "zod": "^4.6.7"
61
62
  },
62
63
  "devDependencies": {
64
+ "@babel/types": "^8.0.8",
63
65
  "@maz-ui/eslint-config": "5.0.0",
64
66
  "@modelcontextprotocol/inspector": "^2.11.0",
65
67
  "agent-docs": "5.0.0",