loading…
Search for a command to run...
loading…
Assists in migrating HeroUI v2 and NextUI projects to HeroUI v3 beta through automated project scanning, file analysis, and guided code rewrites. It provides sp
Assists in migrating HeroUI v2 and NextUI projects to HeroUI v3 beta through automated project scanning, file analysis, and guided code rewrites. It provides specialized tools for auditing Tailwind configurations and comparing component changes using an integrated documentation corpus.
Version: 0.3.0
A Model Context Protocol (MCP) server to help migrate HeroUI v2 / NextUI projects toward HeroUI v3 beta with a practical workflow based on project scanning, file analysis, guided rewrites, component comparison, and documentation lookup.
HeroUI v3 introduces important changes compared with v2:
This server is designed to support a controlled, review-first migration workflow:
By default, the server exposes the main public tools below:
corpus_status — check whether generated documentation artifacts are present and usablescan_project — scan a codebase and identify files using legacy HeroUI/NextUI patternsanalyze_file — inspect a file and return findings about imports, components, props, hooks, and Tailwind usagerewrite_file — apply heuristic rewrites and return the rewritten code plus diagnosticscompare_component — compare a component across v2 and v3 and summarize migration statusaudit_tailwind — inspect a Tailwind config for legacy HeroUI patternsSome older compatibility/debugging tools still exist, but they are not enabled by default.
To enable them:
{
"mcpServers": {
"heroui-migration": {
"command": "node",
"args": ["/absolute/path/to/heroui-migration-mcp/dist/src/index.js"],
"env": {
"LEGACY_TOOLS_ENABLED": "true"
}
}
}
}
Clone this repository and install dependencies:
git clone https://github.com/sctg-development/heroui-migration-mcp.git
cd heroui-migration-mcp
npm install
npm run build
Before using the server seriously, generate the migration corpus and indexes:
npm run build-corpus -- --version all
npm run build-index -- --version all
npm run doctor
What these commands do:
build-corpus generates v2/v3 documentation artifacts in data/generatedbuild-index builds component indexes for faster and more reliable lookupsdoctor checks that the generated artifacts are present and healthyConfigure the server in your MCP client (e.g., Claude Desktop, Cursor, or other MCP-compatible editors):
{
"mcpServers": {
"heroui-migration": {
"command": "node",
"args": ["/absolute/path/to/heroui-migration-mcp/dist/src/index.js"]
}
}
}
Optional: Enable Legacy Tools (for backward compatibility)
{
"mcpServers": {
"heroui-migration": {
"command": "node",
"args": ["/absolute/path/to/heroui-migration-mcp/dist/src/index.js"],
"env": {
"LEGACY_TOOLS_ENABLED": "true"
}
}
}
}
Call corpus_status to confirm the generated documentation artifacts are ready.
Call scan_project on the app directory you want to migrate, for example apps/client.
Expected outcome:
Use analyze_file on the files reported by the scan.
Focus first on:
Use rewrite_file on files where the analysis indicates mostly safe changes.
Always review:
Use audit_tailwind on your Tailwind configuration before or during the migration.
Use compare_component whenever a component mapping is unclear or looks suspicious.
After each batch of changes:
The project also provides standalone CLI utilities:
# Build documentation corpus
npm run build-corpus -- --version all
# Build component indexes
npm run build-index -- --version all
# Check corpus health
npm run doctor
# Scan a target project
npm run scan-project -- --directory ./apps/client --force
# Audit Tailwind config
npm run audit-tailwind -- --file ./tailwind.config.ts
# Run the test suite
npm run test
# Run tests once
npm run test:run
# Production mode
npm run start
# Development mode with auto-reload
npm run dev
# Using the MCP Inspector (test interface)
npm run inspect
# Inspector in watch mode
npm run inspect:dev
# Compile TypeScript
npm run build
# Run tests
npm run test
# Run tests (non-watch)
npm run test:run
src/ ├── cli/ # command-line utilities ├── core/ # analysis, rewriting, migration logic, AST helpers ├── indexers/ # component/document indexing helpers ├── knowledge/ # mappings, aliases, migration knowledge ├── types/ # contracts and schemas ├── server.ts # MCP server registration └── index.ts # stdio entry point
data/ ├── generated/ # generated v2/v3 documentation corpus └── index/ # generated component indexes
Generated documentation is available in multiple formats:
| Format | Files | Purpose |
|---|---|---|
| Full Text | heroui-{v2,v3}-llms-full.txt |
Complete paginated documentation for LLMs |
| Components Only | heroui-{v2,v3}-llms-components.txt |
Component reference only |
| JSON Index | heroui-{v2,v3}-index.json |
Component metadata index |
| Web Variant | heroui-v3-web-llms-full.txt |
v3 Web-specific documentation |
| Native Variant | heroui-v3-native-llms-full.txt |
v3 React Native documentation |
This server is especially useful for:
Manual review is still recommended for:
scan_project, not rewrite_fileanalyze_file before rewriting complex filesThis project is released under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
Copyright © 2026 Ronan LE MEILLAT - SCTG Development
All source files include a header comment block with copyright information. The full license text is available in LICENSE.md.
For more details, see the full AGPL-3.0 License.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"heroui-migration-mcp": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.