Skip to main content
Glama
Starwind UI MCP Server

Starwind UI MCP Server

by starwind-ui

Ein TypeScript Model Context Protocol Server für Starwind UI v3 und Starwind Pro. Er bietet KI-Clients aktuelle, framework-bewusste Anleitungen für Astro- und React-Projekte.

Schnellstart

Eine Anleitung zur Einrichtung für verwaltete Clients findest du in der Starwind UI MCP-Dokumentation.

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

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

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

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

Starte den Client neu oder lade seine MCP-Server nach der Konfigurationsänderung neu.

Related MCP server: shadcn-ui MCP Server

v3-Modell

Starwind UI v3 hat drei zusammenhängende Oberflächen. Der MCP hält sie getrennt:

Oberfläche

Was sie darstellt

MCP-Verhalten

Gestaltete Komponenten

Kopiereigene UI-Komponenten mit Astro- und/oder React-Implementierungen

Suche und Installation mit starwind_search und starwind_add

Primitives

Astro- und React-Adapter auf niedrigerer Ebene, unterstützt durch Starwind Runtime, wo zutreffend

Suche mit surface: "primitive"; Installation mit dem v3-Befehl primitives add

Runtime

Framework-neutrale Verhaltens-APIs

Abruf mit starwind_docs unter Verwendung des Runtime-Themas oder der Oberfläche

Der Server validiert diese Ebenen gegen die versionierte ai-manifest.json, speichert validierte Daten zwischen und greift auf eine gebündelte v3-Snapshot zurück, falls die Website nicht verfügbar ist.

Werkzeuge

Werkzeug

Zweck

starwind_init

Generiert v3-Initialisierungsbefehle für ein bestehendes Astro- oder React-Projekt. Pro ist optional.

starwind_add

Validiert Anfragen und generiert Installations- oder Aufschub-Installationsbefehle für gestaltete Komponenten, Primitives oder Astro-exklusive Pro-Blöcke.

starwind_search

Durchsucht gestaltete Komponenten, Primitives und Pro-Blöcke mit Framework-Metadaten und Filtern.

starwind_docs

Ruft genaue Dokumentation zu Komponenten, Primitives, Runtime, Migration und Framework ab.

starwind_migrate

Untersucht ein Projekt und generiert sichere, interaktivitätsorientierte v2-zu-v3-Migrationsanleitungen.

Werkzeugaufrufe geben sowohl lesbaren JSON-Text als auch MCP structuredContent zurück.

Anforderungen und Verhalten

  • Generierte v3-CLI-Befehle erfordern Node.js 22.12.0 oder neuer.

  • starwind_init zielt auf bestehende Astro 5+- oder React 18+-Projekte ab und lässt die CLI das Framework automatisch erkennen, sofern nicht framework angegeben wird.

  • Kostenlose @starwind-pro/*-Katalogblöcke funktionieren nach normaler Initialisierung. Kostenpflichtige Blöcke erfordern eine explizite Autorisierung; übergib pro: true nur, wenn dies erforderlich ist.

  • Starwind Pro-Blöcke zielen derzeit auf Astro ab. React-Suchen lassen sie aus, und React-Add-Anfragen lehnen sie explizit ab.

  • Die Migration ist standardmäßig interaktiv. Setze yes: true nur, wenn ein Backup-und-Überschreiben-Verhalten beabsichtigt ist.

  • Paketmanager- und Projektkontext werden nach Möglichkeit lokal erkannt, und Add-Befehle übergeben den aufgelösten Paketmanager an die CLI. Kein Werkzeug führt den generierten Befehl aus.

Upgrade von kostenlos auf Pro

Der MCP hält Pro auffindbar, ohne eine kostenpflichtige Einrichtung zu erzwingen. Suchergebnisse verlinken zum Pro-Katalog, kostenlose Pro-Blöcke bleiben direkt installierbar, und kostenpflichtige Ergebnisse enthalten einen strukturierten proUpgrade-Pfad mit Kauf- und Installationslinks.

Für ein bestehendes Astro-Projekt empfiehlt der MCP:

pnpm dlx starwind@latest setup --yes

Der Einrichtungsbefehl erkennt den Paketmanager des Projekts automatisch, daher benötigt er kein --package-manager-Flag. Er bereitet das Pro-Register und .env.local vor; ersetze den Platzhalter STARWIND_LICENSE_KEY durch den gekauften Schlüssel und führe dann den zurückgegebenen deferredCommand aus. Behandle den Schlüssel als sensibel: halte .env.local aus der Versionskontrolle heraus und lege den Schlüssel niemals in Logs oder clientseitigem Code offen. Ein mit pro: true initialisiertes Projekt erhält stattdessen den entsprechenden Befehl init --pro.

Entwicklung

pnpm build
pnpm lint
pnpm test:run

Führe den optionalen Produktions-Manifest-Kontrolltest aus mit:

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

Lizenz

MIT. Siehe LICENSE.

Sicherheit

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