SU

starwind-ui/starwind-ui-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

35 stars 17 forks 质量 74 趋势 14MIT

starwind-ui/starwind-ui-mcp 是从 https://github.com/starwind-ui/starwind-ui-mcp. 导入的 MCP 服务器候选服务器。

概览

starwind-ui/starwind-ui-mcp 是从 https://github.com/starwind-ui/starwind-ui-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

官方MCP注册处 · io.github.starwind-ui/mcp

一款适用于 Starwind UI v3 和 Starwind Pro 的 TypeScript 模型上下文协议服务器。它为 AI 客户端提供了当前、框架感知的指导,适用于 Astro 和 React 项目。

快速开始

关于维护的客户端设置指南,请参见 Starwind UI MCP 文档。

法典(~/.codex/config.toml):

Claude 代码([.mcp.json)或光标(.cursor/mcp.json):

更改配置后重启客户端或重新加载其MCP服务器。

V3 型号

Starwind UI v3 有三个相关的表面。MCP 保持它们的区别:

表面 它代表什么 MCP 行为
样式组件 带有 Astro 和/或 React 实现的复制拥有的 UI 组件 使用 starwind_search 和 starwind_add 进行搜索和安装
原语 低级别的 Astro 和 React 适配器,在适用时支持 Starwind 运行时 使用 surface: "primitive" 搜索;使用 v3 primitives add 命令安装
运行时 框架中立行为 API 使用 starwind_docs 使用运行时主题或表面进行取物

服务器会根据版本化的“ai-manifest”验证这些层。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 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):

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

Claude Code (.mcp.json) or Cursor (.cursor/mcp.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:

Surface What it represents MCP behavior
Styled components Copy-owned UI components with Astro and/or React implementations Search and install with starwind_search and starwind_add
Primitives Lower-level Astro and React adapters, backed by Starwind Runtime where applicable Search with surface: "primitive"; install with the v3 primitives add command
Runtime Framework-neutral behavior APIs Fetch 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

Tool Purpose
starwind_init Generate v3 initialization commands for an existing Astro or React project. Pro is opt-in.
starwind_add Validate requests and generate installation or deferred-install commands for styled components, primitives, or Astro-only Pro blocks.
starwind_search Search styled components, primitives, and Pro blocks with framework metadata and filters.
starwind_docs Resolve exact component, primitive, Runtime, migration, and framework documentation.
starwind_migrate Inspect a project and generate safe, interactive-first v2-to-v3 migration guidance.
在 GitHub 查看完整 README

安装

npx -y @starwind-ui/mcp
新手?先看 mcpskill.org 教程 →

配置

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