RM

richardkmichael/mcp-tailwindplus

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

43 stars 4 forks Качество 83 Тренд 20MIT

richardkmichael / mcp-tailwindplus - кандидат на сервер MCP, импортированный из https://github.com/richardkmichael/mcp-tailwindplus.

Обзор

richardkmichael / mcp-tailwindplus - кандидат на сервер MCP, импортированный из https://github.com/richardkmichael/mcp-tailwindplus.

Обзор (машинный перевод)

Сервер MCP (Model Context Protocol) для компонентов пользовательского интерфейса TailwindPlus.

Быстрый старт

  1. Получить компоненты TailwindPlus JSON файл с помощью TailwindPlus Downloader.

2.Установить uv для uvx.

  1. Добавить код Клода:

[[Т2]]

  1. Храните настройки TailwindPlus в памяти Клода. Это учит Клода правильно использовать фильтры инструментов и ресурсов.

Общий конфигуратор (команда)

Добавить с объемом проекта и установить env MCP_TAILWINDPLUS_DATA=/path/to/tailwindplus-components.json:

[[Т4]]

Это позволит .mcp.json быть связанным с хранилищем, и при необходимости могут использоваться различные файлы компонентов.

Другие клиенты

Чтобы настроить его в другом клиенте MCP:

Чтобы бегать напрямую:

##Клод Десктоп

Claude Desktop требует HTTPS для серверов MCP на основе HTTP и не разрешает Локальный хостинг URL. Используйте ngrok для разоблачения сервера:

Затем добавьте URL-адрес ngrok ([T6]) в качестве настройки

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

TailwindPlus MCP Server

An MCP (Model Context Protocol) server for TailwindPlus UI components.

Quick Start

  1. Obtain a TailwindPlus components JSON file using the TailwindPlus Downloader.

  2. Install uv for uvx.

  3. Add to Claude Code:

claude mcp add tailwindplus uvx -- git+https://[email protected]/richardkmichael/mcp-tailwindplus@latest --tailwindplus-data /path/to/tailwindplus-components.json

  1. Optionally, set your project’s TailwindPlus settings by adding them to the command, for example --framework react --tailwind-version 4 --mode system. The server tells Claude to use them, and offers them first when completing resource URIs. See Project Settings.

Shared config (team)

Add with project scope and the project’s settings, and set env MCP_TAILWINDPLUS_DATA=/path/to/tailwindplus-components.json:

claude mcp add -s project tailwindplus uvx -- git+https://[email protected]/richardkmichael/mcp-tailwindplus@latest --framework react --tailwind-version 4 --mode system

This will allow .mcp.json to be commited to the repository, and but different component files can be used if necessary.

Other clients

To configure it in another MCP client:

{
  "mcpServers": {
    "tailwindplus": {
      "command": "uvx",
      "args": [
        "git+https://github.com/richardkmichael/mcp-tailwindplus@latest",
        "--tailwindplus-data",
        "/path/to/tailwindplus-components.json"
      ]
    }
  }
}

Or, to run directly:

uvx git+https://github.com/richardkmichael/mcp-tailwindplus@latest --tailwindplus-data /path/to/tailwindplus-components.json

Claude Desktop

Claude Desktop requires HTTPS for HTTP-based MCP servers and does not permit localhost URLs. Use ngrok to expose the server:

# Terminal 1: start the MCP server over HTTP, accepting requests the tunnel forwards
mcp-tailwindplus --transport http --allowed-host "*.ngrok-free.app"

# Terminal 2: tunnel via ngrok (terminates TLS at its edge)
ngrok http 8000

Then add the ngrok URL (https://.ngrok-free.app/mcp) as a custom connector in Claude Desktop (Settings > Connectors > Add custom connector).

ngrok handles TLS termination, so the MCP server itself runs plain HTTP. Over HTTP, the server rejects requests naming a host other than its bind address, localhost, or a host given with --allowed-host, so a web page cannot reach it through DNS rebinding.

The tunnel makes the server, and so your licensed TailwindPlus components, reachable by anyone who has the URL, without authentication. Stop the tunnel when you are done.

Claude Desktop also supports MCP Apps, which renders component previews visually in the conversation (rather than returning raw HTML). This activates automatically when using the get_component_preview_by_full_name tool.

Tips

Открыть полный README на GitHub

Установка

uvx git+https://github.com/richardkmichael/mcp-tailwindplus@latest --tailwindplus-data /path/to/tailwindplus-components.json
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "tailwindplus": { "command": "uvx", "args": [ "git+https://github.com/richardkmichael/mcp-tailwindplus@latest", "--tailwindplus-data", "/path/to/tailwindplus-components.json" ] } } }