ds-pilot
ds-pilot
一个将您的设计系统(组件 + 令牌)暴露给 AI 代理的 MCP 服务器。防止代理创建重复的组件或硬编码本应作为令牌的值。
安装
npx @lyse-labs/ds-pilot init这将:
检测您的组件目录和令牌文件
在
.mcp.json中配置 MCP 服务器将设计系统说明添加到您的
CLAUDE.md中
Related MCP server: BrixUI MCP Server
使用方法
MCP 服务器(供 AI 代理使用)
npx @lyse-labs/ds-pilot serve --components ./src/components --tokens ./tokens.json配置完成后,您的 AI 代理可以:
search_components("button")— 查找现有组件get_component_props("Button")— 查看属性、类型、默认值list_tokens("color")— 列出所有颜色令牌get_token("color.primary")— 获取特定令牌值
CLI(供您使用)
# List all components
npx @lyse-labs/ds-pilot list components --dir ./src/components
# List tokens filtered by type
npx @lyse-labs/ds-pilot list tokens --file ./tokens.json --type color
# Search components
npx @lyse-labs/ds-pilot search button --dir ./src/components
# Show component props
npx @lyse-labs/ds-pilot props Button --dir ./src/components支持的格式
组件
React (
.tsx,.ts,.jsx,.js)Vue / Nuxt (
.vue,带有<script setup lang="ts">)带有类型、默认值和结构化变体的属性
命名导出和默认导出
令牌
DTCG JSON (W3C 标准)
普通嵌套 JSON (Figma 导出)
CSS 自定义属性
别名解析和组元数据
工作原理
扫描器读取您的代码库并提取组件名称、属性和令牌值
MCP 服务器将这些数据作为 AI 代理可以调用的工具暴露出来
CLAUDE.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 Servers
- AlicenseNot gradedqualityAmaintenanceA read-only MCP server that provides AI coding agents with a queryable contract for design system tokens, components, patterns, and anti-patterns.241Apache 2.0
- AlicenseAqualityCmaintenanceAn MCP server that connects AI clients to Figma components, design tokens, and variables from the BrixUI Design System, enabling component browsing, searching, and token retrieval.411MIT
- AlicenseAqualityCmaintenanceMCP server for the coss ui design system, enabling AI agents to fetch components, props, and design tokens on demand for accurate, low-cost code generation.61MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that gives AI assistants structured access to a design system's tokens, components, guidelines, and patterns, enabling them to read, lint, and author design system data.1MIT
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
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/lyse-labs/ds-pilot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server