@hcsy/sparta-ui-mcp-server
v0.1.2
Published
Sparta UI MCP server for AI-assisted UI development
Maintainers
Readme
Sparta UI MCP Server
本项目是给 Sparta UI 组件库做的 MCP 服务,目前是给 AI agent 使用。
功能
1. getAllComponents
返回 Sparta UI 所有可用的组件名称列表。
2. getComponentInfo
返回组件的详情 markdown 文档。
参数:
componentName(必需): 组件名称,如 "button"、"input"、"modal" 等theme(可选): 主题名称,默认值为 "base"
安装
npm install开发
# 开发模式(监听文件变化并编译)
npm run dev
# 构建生产版本
npm run build
# 运行代码检查
npm run lint
# 自动修复代码问题
npm run lint:fix使用
构建后可以通过以下方式运行:
node dist/index.js