Skip to content

v5.2.0

Choose a tag to compare

@LouisMazel LouisMazel released this 01 Nov 13:52
· 476 commits to develop since this release

compare changes

✨ Features

  • @maz-ui/node: Start the installed @maz-ui/mcp and keep hand-edited rules (1e6a38a74)

    When the project installs @maz-ui/mcp, setupAgents writes MCP configs that start it through the project's package manager (pnpm exec maz-ui-mcp, yarn run maz-ui-mcp, npx --no-install maz-ui-mcp...), with no download and the version from the lockfile. Otherwise, they run npx -y @maz-ui/mcp@<version>, pinned with the new mcpVersion option. mcpServerCommand(rootDir, version) returns this command.

    Generated rules edited by hand are kept and no longer updated. To get the rules of a new version, delete the file or the AGENTS.md section.

    In a monorepo, files are written atomically. Rules or the pinned version are never downgraded by an app running an older maz-ui. Packages are now found in the workspaces listed in pnpm-workspace.yaml or in the workspaces field of package.json.

  • @maz-ui/mcp: Init starts the installed @maz-ui/mcp or pins its version (1c3b7222f)

    Install the package in the project (pnpm add -D @maz-ui/mcp), then run npx @maz-ui/mcp init. The MCP configs start the installed version through your package manager, in about a second. Otherwise, they run npx -y @maz-ui/mcp@<version>, pinned to the version of init. Using @latest would make npx query the registry at every start.

    An existing entry running @maz-ui/mcp@latest gets the new command and keeps its other fields. A command written by hand is left untouched.

  • @maz-ui/mcp: Tell agents which icon format to use for each usage (2d3a5b34f)

    find_icons and the server instructions recommend @maz-ui/icons/raw for icon props, static directly in a template, and lazy only for icons not visible at first render.

  • @maz-ui/mcp: Report buttons that show only an icon without an accessible name (f67e9a9ad)

    The new icon-button-label rule of review_code warns about a MazBtn with only an icon and no text, content, or aria-label.

  • @maz-ui/nuxt: Pin the maz-ui MCP server and explain how to start it faster (f65a0558d)

    The agents option pins the version of @maz-ui/mcp installed for the app in the MCP configs, and starts it through your package manager when the project root installs it. Its log suggests adding @maz-ui/mcp to the root's dev dependencies, and adding agents-md to agents.targets when AGENTS.md is not written.

  • agent-docs: Give AI agents the icon formats, the plugins to enable, and the role of each package (f8a01a36a)

  • Start the @maz-ui/mcp installed in the project from the Claude Code plugin (881e24597)

  • @maz-ui/node: Let setupAgents configure the agents of another tool (6fa96842b)

    setupAgents configures maz-ui by default. Any package that ships an MCP server and rules for AI agents can now be set up with the new tool option (an AgentsTool: name, MCP package, bin, and arguments) and its rules passed with agentDocs. It writes .claude/rules/<name>.md, the <name> section of AGENTS.md, and the <name> MCP server, with the same guarantees as for maz-ui. Several tools can be set up in the same project, and each manages only its own files, section, and server entry.

    mcpServerCommand, installsMcpPackage, readManagedVersion, and isEditedManagedContent take the tool as last argument, and the PackageManager type is exported. Nothing changes for maz-ui.

  • @maz-ui/mcp: Register the MCP server with init only in projects without maz-ui (9d660fa5b)

    The rules document the maz-ui components. In a project that only uses @maz-ui/utils or @maz-ui/node, init no longer fails and registers the MCP server, which serves the docs bundled with @maz-ui/mcp. Pass --docs to write the rules anyway.

    The fallback tool errors now point to the docs folder in use.

⚡ Performance

  • @maz-ui/mcp: Install a single package and answer agents right away (d624b026f)

    Runtime dependencies are bundled: npx @maz-ui/mcp downloads one package of less than 1 MB instead of a hundred, so the first start stays under the agents' start timeout, even behind a slow registry. The server answers on start and loads the search index, the Vue compiler, and Babel on first use.

📖 Documentation

  • docs: Document the fast start of the MCP server, monorepos, and icon formats (96c929315)

📦 Build

  • deps: Publish internal dependencies with caret ranges (aa5baf40a)

    workspace:* is published as the exact version, so a project that installs another version of an internal package (@maz-ui/utils...) gets two copies. workspace:^ is published as ^<version>, so package managers deduplicate them.

❤️ Contributors