Skip to main content
Glama
Starwind UI MCP Server

Starwind UI MCP Server

by starwind-ui

Starwind UI v3 および Starwind Pro のためのTypeScript Model Context Protocolサーバーです。AIクライアントに対して、AstroおよびReactプロジェクト向けの現在のフレームワーク対応ガイダンスを提供します。

クイックスタート

メンテナンスされているクライアントセットアップガイドについては、Starwind UI MCP ドキュメントを参照してください。

Codex (~/.codex/config.toml):

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

Claude Code (.mcp.json) または Cursor (.cursor/mcp.json):

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

設定を変更した後は、クライアントを再起動するか、MCPサーバーをリロードしてください。

Related MCP server: shadcn-ui MCP Server

v3モデル

Starwind UI v3には3つの関連するサーフェスがあります。MCPはそれらを区別します:

サーフェス

意味

MCPの動作

Styled components

Astroおよび/またはReactの実装を持つコピー所有のUIコンポーネント

starwind_search と starwind_add で検索およびインストール

Primitives

低レベルのAstroおよびReactアダプター。該当する場合はStarwind Runtimeをバックエンドとする

surface: "primitive" で検索。v3の primitives add コマンドでインストール

Runtime

フレームワークに依存しない動作API

Runtimeトピックまたはサーフェスを使用して starwind_docs で取得

サーバーはこれらのレイヤーをバージョン管理された ai-manifest.json に対して検証し、検証済みデータをキャッシュします。サイトが利用できない場合は、バンドルされたv3スナップショットにフォールバックします。

ツール

ツール

目的

starwind_init

既存のAstroまたはReactプロジェクト向けにv3初期化コマンドを生成します。Proはオプトインです。

starwind_add

リクエストを検証し、styled components、primitives、またはAstro専用Proブロックのインストールまたは遅延インストールコマンドを生成します。

starwind_search

フレームワークメタデータとフィルターを使用して、styled components、primitives、およびProブロックを検索します。

starwind_docs

正確なコンポーネント、primitive、Runtime、移行、およびフレームワークのドキュメントを解決します。

starwind_migrate

プロジェクトを検査し、安全でインタラクティブを優先したv2からv3への移行ガイダンスを生成します。

ツール呼び出しは、読み取り可能なJSONテキストとMCP structuredContent の両方を返します。

要件と動作

  • 生成されたv3 CLIコマンドにはNode.js 22.12.0以降が必要です。

  • starwind_init は既存のAstro 5+またはReact 18+プロジェクトを対象としており、framework が指定されない限りCLIがフレームワークを自動検出します。

  • 無料の @starwind-pro/* カタログブロックは、通常の初期化後に動作します。有料ブロックには明示的な承認が必要です。pro: true は必要な場合にのみ渡してください。

  • Starwind Proブロックは現在Astroを対象としています。React検索ではそれらが除外され、React追加リクエストでは明示的に拒否されます。

  • 移行はデフォルトでインタラクティブです。yes: true は、バックアップして上書きする動作が意図されている場合にのみ設定してください。

  • パッケージマネージャーとプロジェクトのコンテキストは、可能な場合はローカルで検出され、addコマンドは解決されたパッケージマネージャーをCLIに渡します。どのツールも生成されたコマンドを実行しません。

無料版からProへのアップグレード

MCPは、有料セットアップを強制することなくProを発見可能に保ちます。検索結果はProカタログにリンクし、無料のProブロックは直接インストール可能なままです。有料の結果には、購入およびインストールリンクを含む構造化された proUpgrade パスが含まれます。

既存のAstroプロジェクトの場合、MCPは以下を推奨します:

pnpm dlx starwind@latest setup --yes

セットアップコマンドはプロジェクトのパッケージマネージャーを自動検出するため、--package-manager フラグは必要ありません。これによりProレジストリと .env.local が準備されます。STARWIND_LICENSE_KEY プレースホルダーを購入したキーに置き換え、返された deferredCommand を実行してください。このキーは機密情報として扱ってください。.env.local をソース管理から除外し、キーをログやクライアント側コードに決して公開しないでください。pro: true で初期化されたプロジェクトは、代わりに同等の init --pro コマンドを受け取ります。

開発

pnpm build
pnpm lint
pnpm test:run

オプトインのプロダクションマニフェストコントラクトテストを実行するには:

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

ライセンス

MIT。LICENSE を参照してください。

セキュリティ

Available Tools

5 tools
starwind_addA

Generates validated Starwind UI v3 install commands for styled components, vendored primitives, or Starwind Pro blocks, with optional Astro or React targeting.

Inputs: components (required), to, cwd, pro, +5 more. Returns: result

starwind_docsB

Fetches current Starwind UI v3 documentation across styled components, primitives, Runtime, migration, and Astro or React framework guides.

Inputs: full, topic, surface. Returns: result

starwind_initA

Generates a Starwind UI v3 initialization command for an existing Astro or React project. The CLI auto-detects the framework unless an override is provided. Paid Pro authorization is opt-in and currently targets Astro.

Inputs: cwd, pro, framework, packageManager. Returns: result

starwind_migrateB

Generates the safe Starwind UI v3 migration command for a legacy Astro project. Interactive migration is the default; non-interactive overwrite behavior must be explicitly requested.

Inputs: cwd, yes, packageManager. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a clear, distinct purpose: initialization, adding components, searching, documentation, and migration. The only minor ambiguity is between starwind_init and starwind_add, as both generate CLI commands. However, starwind_init is specifically for project initialization, while starwind_add handles component and block installation, which is a reasonable distinction.

    Naming Consistency4/5

    All tools follow a consistent starwind_ prefix followed by an imperative verb (init, add, search, docs, migrate). This is a clean, predictable pattern. The slight deduction is because the imperative verb is not strictly a verb_noun pattern (e.g., starwind_search instead of starwind_search_components), but this is a minor and common stylistic choice.

    Tool Count5/5

    With 5 tools, the server is very well-scoped. It covers the core actions a developer would need when using the Starwind UI library within an MCP context: initializing, adding components, searching, and migrating. Each tool clearly earns its place, and the count feels appropriate for the scope of managing and interacting with a UI component library.

    Completeness4/5

    The tool set covers the primary development workflow: initializing, adding components, searching, accessing documentation, and managing migrations. This provides a comprehensive foundation. The only arguably missing piece might be a tool for direct configuration management or status checks. However, for an MCP interface, this set is remarkably complete and avoids common gaps in lifecycle management.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers