Astryx Documentation MCP Server
Astryx Documentation MCP Server & AI Agent Skill
Полнофункциональный сервер Model Context Protocol (MCP) и навык AI-агента для Meta Astryx Design System. Этот проект индексирует собранную документацию, спецификации компонентов, руководства по StyleX и справочники CLI, предоставляя структурированные инструменты и рекомендации по промптам для AI-ассистентов и агентов разработки (Claude Desktop, Cursor, Project IDX, Gemini CLI, Antigravity, Windsurf).
🚀 Возможности и инструменты MCP
MCP-сервер предоставляет четыре инструмента через stdio:
search_astryx_docsОписание: Полнотекстовый поиск и поиск по ключевым словам по всей документации Astryx, руководствам и API компонентов.
Параметры:
query: string(например,'Button','defineTheme','StyleX','asChild').
get_astryx_componentОписание: Получение руководств по применению, работа с интерфейсами пропсов, данными импортов и примерами кода для конкретного компонента.
Параметры:
componentName: string(например,'Button','AppShell','Table','Avatar','Dialog','Input').
get_theme_guideОписание: Получение информации о шести встроенных темах (Neutral, Butter, Stone, Gothic, Y2K, Matcha), дизайн-токенах CSS-переменных и пользовательских определениях тем с помощью
defineTheme.Параметры:
themeName?: string(например,'butter','neutral','defineTheme').
get_cli_commandsОписание: Документация для
@astryxdesign/cliи команд (init,doctor,template,manifest,theme build,swizzle).Параметры:
command?: string(например,'init','doctor','template','manifest','theme build','swizzle').
🤖 Astryx Agent Skill (astryx-skill)
Находится в astryx-skill/SKILL.md и предоставляет эталонные паттерны и правила кодирования:
Подпутевые импорты:
import { Button } from '@astryxdesign/core/Button';Каскадные слои: Предписывает
@import '@astryxdesign/core/astryx.css';внутри@layer astryx-base.Переопределение стиле́й через StyleX: Используйте StyleX через проп
xstyleвместо произвольных инлайн-стилей.Провайдер темы: Стандартизированная структура приложения
<Theme mode="system" theme={neutralTheme}>.
🌐 Интерактивный вводный веб-сайт
В index.html включён интерактивный презентационный сайт, предлагающий пользователю:
Живой обзор тем: Проверьте 6 тем дизайна Astryx (Neutral, Butter, Stone, Gothic, Y2K, Matcha).
Площадка компонентов: Интерактивное управление пропами с генерацией TSX-кода в реальном времени.
Симулятор stdio для MCP-сервера: Интерактивный тестовый запуск инструментов поиска.
Матрица публикации в один клик: Простая настройка для GitHub Pages, Vercel, Netlify и Cloudflare Pages.
🛠️ Начало работы
Необходимые условия
Node.js >= 18.0.0
npm / pnpm / yarn
Установка
git clone https://github.com/georgemathunjaga/astryx-mcp-and-skill.git
cd astryx-mcp-and-skill
npm installСборка и запуск
# Build TypeScript and bundle crawl data to dist/
npm run build
# Start the MCP server using node (stdio)
npm start
# Run in development mode with live TypeScript compilation
npm run dev
# Run automated integration tests
npm test🔌 Подключение к AI-IDE и клиентам
1. Claude Desktop
Добавьте следующее содержимое в claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"astryx-docs": {
"command": "node",
"args": ["E:/workspace/public-repos/astryx-mcp/dist/index.js"]
}
}
}2. Google Project IDX / Gemini CLI / Cursor
Добавьте в .cursor/mcp.json вашего проекта или в mcp.json:
{
"mcpServers": {
"astryx-docs": {
"command": "node",
"args": ["E:/workspace/public-repos/astryx-mcp/dist/index.js"]
}
}
}📂 Структура проекта
astryx-mcp/
├── astryx-skill/ # Astryx Agent Skill instructions
│ ├── SKILL.md
│ └── astryx-skill.md
├── index.html # Interactive Intro Website
├── styles.css # Master CSS Design System
├── app.js # Interactive Website Logic & MCP Simulator
├── dist/ # Compiled JavaScript output & assets
│ ├── index.js
│ └── data/
│ └── astryx_crawl.json
├── src/
│ ├── data/
│ │ └── astryx_crawl.json # Crawled Astryx documentation dataset
│ └── index.ts # MCP Server definition and tool handlers
├── test/
│ └── mcp-test.js # MCP Stdio verification suite
├── package.json
├── tsconfig.json
└── README.md📄 Лицензия
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
A design-style library for AI agents: search real styles, fetch a ready-to-apply design spec.
Search @imqueue docs and scaffold typed services & clients from your AI coding agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/georgemathunjaga/astryx-mcp-and-skill'
If you have feedback or need assistance with the MCP directory API, please join our Discord server