Starwind UI MCP Server

by starwind-ui
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides integration with Windsurf (a Codeium product), allowing setup of the MCP server for enhanced AI capabilities when working with Starwind UI components

  • Detects and uses npm package manager for component installation and updates through the get_package_manager tool

  • Uses pnpm as the default package manager for the project, with built-in detection and support for handling Starwind UI components

Starwind UI MCP サーバー

Starwind UI 用の Model Context Protocol (MCP) サーバーの TypeScript 実装。開発者が Starwind UI コンポーネントを操作するのに役立つツールを提供します。

クイックスタート

# Install dependencies pnpm install # Build the TypeScript code pnpm build # Start the server pnpm start

IDEをセットアップする

IDEでローカルMCPサーバーを使用するための設定手順はIDEによって異なります。Windsurfの例を以下に示します。

{ "mcpServers": { "starwind ui": { "command": "node", "args": ["c:\\path\\to\\folder\\starwind-ui-mcp\\dist\\server.js"], "env": {} } } }

詳細な手順:

MCPとは何ですか?

モデルコンテキストプロトコル(MCP)は、ローカルサーバーを介してAI機能を拡張するためのプロトコルです。この実装は、Starwind UIとの連携時にAIアシスタント機能を強化するためのStarwind UI固有のツールを提供します。MCP自体の詳細については、公式ドキュメントをご覧ください。

特徴

  • ツールベースのアーキテクチャ- 新しいツールを簡単に追加できるモジュール設計
  • Starwind UI ドキュメント ツール- Starwind UI コンポーネントのドキュメント リンクにアクセスします
  • パッケージ マネージャーの検出- 適切なパッケージ マネージャー (npm、yarn、pnpm) を検出して使用します。
  • LLM データ フェッチャー- キャッシュとレート制限を使用して LLM の Starwind UI 情報を取得します
  • TypeScript 実装- 型安全性と開発者エクスペリエンスを向上させるために TypeScript を使用して構築されています
  • 標準 I/O トランスポート- AI アシスタントとの通信に stdio を使用します

利用可能なツール

ツール名説明
init_project新しいStarwind UIプロジェクトを初期化します
install_componentStarwind UIコンポーネントのインストールコマンドを生成します
update_componentStarwind UIコンポーネントの更新コマンドを生成します
get_documentationStarwind UI コンポーネントとガイドのドキュメント リンクを返します
fetch_llm_datastarwind.dev から LLM データを取得します (レート制限あり、キャッシュあり)
get_package_manager現在のパッケージマネージャー情報を検出して返します

発達

このプロジェクトは、開発目的でパッケージマネージャーとしてPNPMを使用するように設定されています。PNPMを使用していない場合は、package.jsonファイルを適切なパッケージマネージャーコマンドで更新する必要があります。

プロジェクト構造

src/ ├── config/ # Server configuration │ └── settings.ts # Configuration settings ├── tools/ # MCP tools implementations │ ├── index.ts # Tool registration │ └── *.ts # Individual tool implementations ├── utils/ # Utility functions └── server.ts # Main MCP server implementation

新しいツールの追加

独自のツールをサーバーに追加するには:

  1. src/tools/ディレクトリに新しいツールファイルを作成する
  2. src/tools/index.tsにツールを登録する
  3. src/config/settings.tsでツールを有効にする
  4. pnpm buildでサーバーを再構築する
  5. pnpm startでサーバーを再起動します。

ライセンス

MIT ライセンス - 詳細については LICENSE ファイルを参照してください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Starwind UI コンポーネントを操作する際の AI アシスタントの機能を強化し、プロジェクトの初期化、コンポーネントのインストール、ドキュメントへのアクセスなどのツールを提供する TypeScript サーバーです。

  1. Quick Start
    1. Setup Your IDE
  2. What is MCP?
    1. Features
      1. Available Tools
        1. Development
          1. Project Structure
            1. Adding New Tools
              1. License
                ID: 3931n8mhge