Astryx Documentation MCP Server
Astryx 文档 MCP 服务器与 AI 代理技能
一个全面的 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描述:检索关于 6 个内置主题(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 代理技能(astryx-skill)
位于 astryx-skill/SKILL.md,该技能提供了权威的编码模式和规则:
子路径导入:
import { Button } from '@astryxdesign/core/Button';级联层:强制在
@layer astryx-base下使用@import '@astryxdesign/core/astryx.css';。StyleX 覆盖:通过
xstyle属性使用 StyleX,而不是任意内联样式。主题提供者:标准化的
<Theme mode="system" theme={neutralTheme}>应用结构。
🌐 交互式介绍网站
包含在 index.html 中的交互式演示网站,具有以下特点:
实时主题浏览器:测试 6 个 Astryx 设计主题(Neutral、Butter、Stone、Gothic、Y2K、Matcha)。
组件游乐场:交互式属性控制,实时生成 TSX 代码。
MCP 服务器 Stdio 模拟器:交互式搜索工具测试运行器。
一键发布矩阵:为 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