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.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

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。
安装前请注意
服务器只生成命令而不执行,运行前请自行检查。迁移默认交互式,设置 yes: true 会启用备份并覆盖的行为。付费 Pro 区块需要明确授权并购买;STARWIND_LICENSE_KEY 属敏感信息,不应进入版本控制、日志或客户端代码。Pro 区块目前仅支持 Astro。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Starwind UI MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Starwind UI MCP Server]

[npm] [GitHub stars]

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):

toml
[mcp_servers.starwind_ui]command = "npx"args = ["-y", "@starwind-ui/mcp"]enabled = true

Claude Code (.mcp.json) or Cursor (.cursor/mcp.json):

json
{  "mcpServers": {    "starwind-ui": {      "command": "npx",      "args": ["-y", "@starwind-ui/mcp"]    }  }}

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:

SurfaceWhat it representsMCP behavior
Styled componentsCopy-owned UI components with Astro and/or React implementationsSearch and install with starwind_search and starwind_add
PrimitivesLower-level Astro and React adapters, backed by Starwind Runtime where applicableSearch with surface: "primitive"; install with the v3 primitives add command
RuntimeFramework-neutral behavior APIsFetch with starwind_docs using the Runtime topic or surface

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

ToolPurpose
starwind_initGenerate v3 initialization commands for an existing Astro or React project. Pro is opt-in.
starwind_addValidate requests and generate installation or deferred-install commands for styled components, primitives, or Astro-only Pro blocks.
starwind_searchSearch styled components, primitives, and Pro blocks with framework metadata and filters.
starwind_docsResolve exact component, primitive, Runtime, migration, and framework documentation.
starwind_migrateInspect a project and generate safe, interactive-first v2-to-v3 migration guidance.

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_init targets existing Astro 5+ or React 18+ projects and lets the CLI auto-detect the framework unless framework is supplied.
  • Free @starwind-pro/* catalog blocks work after ordinary initialization. Paid blocks require explicit authorization; pass pro: true only 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: true only 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:

bash
pnpm dlx starwind@latest setup --yes

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

bash
pnpm buildpnpm lintpnpm test:run

Run the opt-in production manifest contract test with:

bash
RUN_LIVE_CONTRACT_TESTS=1 pnpm test:run src/utils/starwind_live_contract.test.ts

License

MIT. See LICENSE.

Security

[MseeP.ai Security Assessment Badge]

来源:README.md,提交 01986a9

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.5.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分