Starwind UI MCP Server
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 = trueClaude 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 |
Primitives | Astro- und React-Adapter auf niedrigerer Ebene, unterstützt durch Starwind Runtime, wo zutreffend | Suche mit |
Runtime | Framework-neutrale Verhaltens-APIs | Abruf mit |
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 |
| Generiert v3-Initialisierungsbefehle für ein bestehendes Astro- oder React-Projekt. Pro ist optional. |
| Validiert Anfragen und generiert Installations- oder Aufschub-Installationsbefehle für gestaltete Komponenten, Primitives oder Astro-exklusive Pro-Blöcke. |
| Durchsucht gestaltete Komponenten, Primitives und Pro-Blöcke mit Framework-Metadaten und Filtern. |
| Ruft genaue Dokumentation zu Komponenten, Primitives, Runtime, Migration und Framework ab. |
| 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_initzielt auf bestehende Astro 5+- oder React 18+-Projekte ab und lässt die CLI das Framework automatisch erkennen, sofern nichtframeworkangegeben wird.Kostenlose
@starwind-pro/*-Katalogblöcke funktionieren nach normaler Initialisierung. Kostenpflichtige Blöcke erfordern eine explizite Autorisierung; übergibpro: truenur, 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: truenur, 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 --yesDer 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:runFühre den optionalen Produktions-Manifest-Kontrolltest aus mit:
RUN_LIVE_CONTRACT_TESTS=1 pnpm test:run src/utils/starwind_live_contract.test.tsLizenz
MIT. Siehe LICENSE.
Sicherheit
Available Tools
5 toolsstarwind_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
starwind_searchC
Searches Starwind UI v3 styled components, Primitive adapters, and Starwind Pro blocks with framework-aware results.
Inputs: cwd, plan, limit, query, +4 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
Serves your design system and coding standards to coding agents, so they stop guessing.
React + Tailwind UI components and recipes your AI coding tool can search and install.
React + Tailwind UI components and recipes your AI coding tool can search and install.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA server that helps AI models better understand Vite/Nuxt applications, providing enhanced context awareness for development support.916MIT
- AlicenseAqualityDmaintenanceHelps AI assistants access shadcn/ui component documentation and examples through a TypeScript-based MCP server that provides reference information for component details, usage examples, and search capabilities.41,124 npm60MIT
- AlicenseAqualityDmaintenanceProvides reference information for shadcn/ui components through a Model Context Protocol server that helps AI assistants access component documentation and examples.4MIT
- AlicenseAqualityBmaintenanceServer that enables AI assistants to interact with Storybook design systems. Extract component HTML, analyze styles, and help with design system adoption and refactoring.9465 npm73MIT