MCP Vue UI Kit Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Vue UI Kit ServerWhat are the props for the AppButton component?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Vue UI Kit Server
MCP (Model Context Protocol) сервер для документации Vue UI компонентов. Позволяет AI-ассистентам (Cursor, Claude Desktop и др.) получать информацию о ваших компонентах, их props, events, slots и генерировать правильный код.
🎯 Зачем это нужно?
AI-ассистенты не знают про ваш UI-kit и пишут:
<button @click="submit">Отправить</button>С этим MCP сервером они будут использовать ваши компоненты:
<AppButton variant="primary" :loading="isLoading" @click="submit">
Отправить
</AppButton>Related MCP server: web-ui-component-spec-mcp
🚀 Быстрый старт
1. Клонирование и установка
git clone https://github.com/your-username/mcp-vue-ui-kit.git
cd mcp-vue-ui-kit
npm install2. Настройка путей к вашему UI-kit
Отредактируйте файл scripts/generate-docs.ts:
const PACKAGES_TO_DOCUMENT: PackageConfig[] = [
{
name: 'my-ui-kit',
alias: '@my-company/ui-kit',
path: '/path/to/your/ui-kit', // 👈 Укажите путь к вашему UI-kit
componentsGlob: 'src/components/**/*.vue',
},
];3. Генерация документации
npm run generateДокументация будет сохранена в папку data/.
4. Сборка сервера
npm run build5. Подключение к Cursor
Добавьте в файл .cursor/mcp.json вашего проекта:
{
"mcpServers": {
"ui-kit": {
"command": "node",
"args": ["/path/to/mcp-vue-ui-kit/dist/server.js"]
}
}
}Перезапустите Cursor.
🔧 Доступные Tools
Tool | Описание |
| Список компонентов с фильтрацией по пакету и категории |
| Детальная информация о компоненте (props, events, slots) |
| Поиск компонентов по имени, описанию или категории |
| Генерация примера использования компонента |
| Статистика документации UI Kit |
📁 Структура проекта
mcp-vue-ui-kit/
├── src/
│ └── server.ts # MCP сервер
├── scripts/
│ └── generate-docs.ts # Скрипт генерации документации
├── data/ # Сгенерированная документация
│ ├── index.json # Индекс всех компонентов
│ └── my-ui-kit/ # Документация по пакетам
│ ├── AppButton.json
│ └── ...
├── examples/ # Примеры структуры данных
├── package.json
├── tsconfig.json
└── README.md📝 Формат документации компонента
Каждый компонент сохраняется как JSON-файл:
{
"displayName": "AppButton",
"description": "Кнопка с поддержкой loading и иконок",
"package": "my-ui-kit",
"packageAlias": "@my-company/ui-kit",
"relativePath": "src/components/AppButton.vue",
"category": "elements",
"props": [
{
"name": "variant",
"type": { "name": "string" },
"required": false,
"defaultValue": { "value": "'default'" },
"values": ["default", "primary", "danger"]
}
],
"events": [
{ "name": "click", "type": { "names": ["MouseEvent"] } }
],
"slots": [
{ "name": "default", "description": "Содержимое кнопки" }
]
}💡 Примеры использования
Получить список компонентов форм
uikit_list_components(category: "form")Получить информацию о AppButton
uikit_get_component(name: "AppButton")Найти компоненты для модальных окон
uikit_search(query: "modal")Сгенерировать пример использования
uikit_generate_usage(name: "AppButton", framework: "vue")🔄 Обновление документации
При изменении компонентов запустите:
npm run generateРекомендуется добавить эту команду в CI/CD pipeline или git hooks.
⚙️ Переменные окружения
Переменная | Описание | По умолчанию |
| Путь к папке с документацией |
|
🐛 Отладка
Для запуска сервера в режиме разработки (без сборки):
npm run devЛоги выводятся в stderr.
📄 Лицензия
MIT
🤝 Contributing
Fork репозитория
Создайте feature branch (
git checkout -b feature/amazing-feature)Commit изменения (
git commit -m 'Add amazing feature')Push в branch (
git push origin feature/amazing-feature)Откройте Pull Request
This server cannot be deployed
Maintenance
Related MCP Connectors
Versioned documentation registry and semantic search for AI tools and coding assistants.
Serves your design system and coding standards to coding agents, so they stop guessing.
Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
Give your AI assistant access to real Helm chart data. No more hallucinated values.yaml files.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to private React component library documentation, props, and code examples through type-safe TypeScript integration.-
- AlicenseAqualityCmaintenanceProvides AI coding assistants with on-demand access to component specs, test scenarios, accessibility requirements, and build guides from the Web UI Component Specification.10MIT
- FlicenseNot gradedqualityDmaintenanceExposes SigmaUI Design System components to AI assistants, providing tools for component documentation, search, usage examples, and design tokens to accelerate Vue 3 and Nuxt 3 UI development.-
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with up-to-date Vue ecosystem documentation through the Model Context Protocol, enabling semantic search, API lookup, and cross-framework references.11-