Astryx Documentation MCP Server
Astryx-Dokumentations-MCP-Server & KI-Agenten-Skill
Ein umfassender Model Context Protocol (MCP)-Server und eine KI-Agenten-Fähigkeit für das Meta Astryx Design System. Dieses Projekt indexiert gescrapte Dokumentationen, Komponentenspezifikationen, StyleX-Anleitungen und CLI-Referenzen und stellt strukturierte Tools und Prompt-Richtlinien für KI-Assistenten und Codierungsagenten (Claude Desktop, Cursor, Project IDX, Gemini CLI, Antigravity, Windsurf) bereit.
🚀 Funktionen & MCP-Tools
Der MCP-Server stellt vier Tools über stdio bereit:
search_astryx_docsBeschreibung: Volltext- und Stichwortsuche in der gesamten Astryx-Dokumentation, den Anleitungen und den Komponenten-APIs.
Parameter:
query: string(z. B.'Button','defineTheme','StyleX','asChild').
get_astryx_componentBeschreibung: Ruft Nutzungsrichtlinien, Prop-Schnittstellen, Importe und Codebeispiele für eine bestimmte Komponente ab.
Parameter:
componentName: string(z. B.'Button','AppShell','Table','Avatar','Dialog','Input').
get_theme_guideBeschreibung: Ruft Informationen zu den 6 integrierten Themes (Neutral, Butter, Stone, Gothic, Y2K, Matcha), CSS-Variablen-Design-Tokens und benutzerdefinierten Theme-Definitionen mit
defineThemeab.Parameter:
themeName?: string(z. B.'butter','neutral','defineTheme').
get_cli_commandsBeschreibung: Dokumentation für
@astryxdesign/cliund Befehle (init,doctor,template,manifest,theme build,swizzle).Parameter:
command?: string(z. B.'init','doctor','template','manifest','theme build','swizzle').
Related MCP server: WordPress Design System MCP Server
🤖 Astryx-Agenten-Skill (astryx-skill)
Dieser Skill befindet sich in astryx-skill/SKILL.md und bietet maßgebliche Codierungsmuster und Regeln:
Subpath-Importe:
import { Button } from '@astryxdesign/core/Button';Cascade-Layer: Erzwingt
@import '@astryxdesign/core/astryx.css';unter@layer astryx-base.StyleX-Überschreibungen: Verwendet StyleX über die
xstyle-Prop anstelle von beliebigen Inline-Stilen.Theme-Provider: Standardisierte
<Theme mode="system" theme={neutralTheme}>-Anwendungsstruktur.
🌐 Interaktive Intro-Website
Eine interaktive Präsentationswebsite ist in index.html enthalten und bietet:
Live-Theme-Explorer: Testen Sie die 6 Astryx-Design-Themes (Neutral, Butter, Stone, Gothic, Y2K, Matcha).
Komponenten-Playground: Interaktive Prop-Steuerung mit Echtzeit-TSX-Codegenerierung.
MCP-Server-Stdio-Simulator: Interaktiver Test-Runner für Suchtools.
One-Click-Publishing-Matrix: Einfache Einrichtung für GitHub Pages, Vercel, Netlify und Cloudflare Pages.
🛠️ Erste Schritte
Voraussetzungen
Node.js >= 18.0.0
npm / pnpm / yarn
Installation
git clone https://github.com/georgemathunjaga/astryx-mcp-and-skill.git
cd astryx-mcp-and-skill
npm installBuild & Ausführen
# 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🔌 Verbindung zu KI-IDEs und Clients
1. Claude Desktop
Fügen Sie Folgendes zu Ihrer claude_desktop_config.json hinzu:
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
Fügen Sie zur .cursor/mcp.json oder mcp.json Ihres Projekts hinzu:
{
"mcpServers": {
"astryx-docs": {
"command": "node",
"args": ["E:/workspace/public-repos/astryx-mcp/dist/index.js"]
}
}
}📂 Projektstruktur
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📄 Lizenz
MIT
Available Tools
4 toolsget_astryx_componentB
Retrieve usage, props, imports, and code specifications for a specific Astryx component.
Inputs: componentName (required).
get_cli_commandsB
Get documentation for the @astryxdesign/cli tool and CLI commands (init, doctor, template, manifest, theme build, swizzle).
Inputs: command.
get_theme_guideA
Get details on Astryx themes (Neutral, Butter, Stone, Gothic, Y2K, Matcha) or custom defineTheme CSS custom property syntax.
Inputs: themeName.
search_astryx_docsB
Search across Meta Astryx design system documentation, guides, components, and API references.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct area of the documentation: broad search, component details, theme syntax, and CLI commands. There is no meaningful overlap between the four tools.
Tool names follow a clear verb-first pattern, using `search_` for the lookup tool and `get_` for the three resource-specific tools. Minor inconsistency comes from only some tools including the 'astryx' prefix, but the structure is still predictable.
Four tools is a well-scoped set for a documentation MCP server, covering search plus the three primary documented areas: components, themes, and CLI. Each tool serves a distinct purpose without unnecessary redundancy.
The tool surface covers the main ways someone would interact with Astryx documentation: searching, component reference, theme customization, and CLI usage. A potential gap is the absence of a direct `get_guide` tool for retrieving a full guide article, but the search tool mitigates that.
Maintenance
Related MCP Connectors
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Access and search Branch's official API documentation directly within any AI agent or client.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Give AI agents your deeepSpace design system: components, tokens, styles and code mappings.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Astro projects by providing runtime information, documentation search, route listing, and integration details.61MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with component documentation, usage examples, and design tokens from the WordPress Design System, enabling them to follow the latest design system guidance for creating user interfaces.GPL 2.0
- AlicenseNot gradedqualityCmaintenanceProvides a real API for coding agents to look up design system components, props, and tokens, preventing guessed answers.9MIT
- FlicenseNot gradedqualityBmaintenanceEnables intent-based semantic search over external design system documentation, allowing MCP-compatible AI assistants to retrieve relevant design tokens, component architectures, and code patterns via a single tool.-