
Starwind UI MCP Server
io.github.starwind-ui由 GitHub 账号 starwind-ui 发布v0.5.1更新于 Oct 24, 2026
Framework-aware Starwind UI v3 tools for Astro and React setup, components, docs, and migration.
概览
Starwind UI 的 MCP 服务器,为 AI 助手提供面向 Astro 和 React 项目的 Starwind UI v3 组件、原语、文档与迁移指导。
- 可以做什么
- 按框架元数据与筛选条件搜索样式组件、原语和 Pro 区块
- 为 Astro 或 React 项目生成初始化与组件安装命令
- 解析具体的组件、原语、Runtime、迁移和框架文档
- 检查项目并给出以交互为先的 v2 到 v3 迁移建议
- 每次工具调用同时返回可读 JSON 和结构化内容
- 适用场景
- 在使用 Starwind UI v3 构建或维护 Astro、React 项目时,希望助手查询当前组件、文档以及初始化或迁移命令而不是凭空猜测。也适合规划 v2 到 v3 的升级。
- 运行要求
- 以 stdio 在本地运行,通常通过 npm 包 @starwind-ui/mcp 用 npx 启动;未声明认证或环境变量。生成的 v3 CLI 命令需要 Node.js 22.12.0 或更高版本,初始化面向已有的 Astro 5+ 或 React 18+ 项目。付费 Pro 区块需要已购买的许可证密钥并写入 .env.local。
安装
在 SourceWeft 中
- 打开 控制台中的 Starwind UI MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Official MCP Registry
·
io.github.starwind-ui/mcp
A TypeScript Model Context Protocol server for Starwind UI v3 and Starwind Pro. It gives AI clients current, framework-aware guidance for Astro and React projects.
Quick start
For the maintained client setup guide, see the Starwind UI MCP documentation.
Codex (~/.codex/config.toml):
Claude Code (.mcp.json) or Cursor (.cursor/mcp.json):
Restart the client or reload its MCP servers after changing the configuration.
v3 model
Starwind UI v3 has three related surfaces. The MCP keeps them distinct:
The server validates these layers against the versioned ai-manifest.json, caches validated data, and falls back to a bundled v3 snapshot if the site is unavailable.
Tools
Tool calls return both readable JSON text and MCP structuredContent.
Requirements and behavior
- Generated v3 CLI commands require Node.js 22.12.0 or newer.
starwind_inittargets existing Astro 5+ or React 18+ projects and lets the CLI auto-detect the framework unlessframeworkis supplied.- Free
@starwind-pro/*catalog blocks work after ordinary initialization. Paid blocks require explicit authorization; passpro: trueonly when it is required. - Starwind Pro blocks currently target Astro. React searches omit them, and React add requests reject them explicitly.
- Migration is interactive by default. Set
yes: trueonly when backup-and-overwrite behavior is intended. - Package-manager and project context are detected locally when possible, and add commands pass the resolved package manager to the CLI. No tool executes the generated command.
Upgrading from free to Pro
The MCP keeps Pro discoverable without forcing paid setup. Search results link to the Pro catalog, free Pro blocks remain directly installable, and paid results include a structured proUpgrade path with purchase and installation links.
For an existing Astro project, the MCP recommends:
The setup command auto-detects the project's package manager, so it does not need a --package-manager flag. It prepares the Pro registry and .env.local; replace the STARWIND_LICENSE_KEY placeholder with the purchased key, then run the returned deferredCommand. Treat the key as sensitive: keep .env.local out of source control and never expose the key in logs or client-side code. A project initialized with pro: true receives the equivalent init --pro command instead.
Development
Run the opt-in production manifest contract test with:
License
MIT. See LICENSE.
Security
来源:README.md,提交 01986a9
工具
0版本历史
1- v0.5.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分