Layro

io.github.Layropro由 GitHub 帳號 Layropro 發布v1.3.0更新於 Oct 29, 2026

React + Tailwind UI components and recipes your AI coding tool can search and install.

發布方自己的服務:Layro

已驗證Streamable HTTP可網頁執行開發者工具媒體與設計

概覽

AI 產生的概覽

Layro 讓 AI 程式助理搜尋、檢視並安裝可直接上線的 React + Tailwind CSS v4 UI 元件、範本與配方。

可以做什麼
  • 依功能搜尋 Layro 元件,並瀏覽分類及其中的元件與函式庫約定。
  • 檢視單一元件的細節:適用情境、props、變體、npm 相依套件、安裝的檔案、版面行為、搭配元件與配方。
  • 取得元件完整原始碼及其匯入的所有檔案,或取得 shadcn CLI 安裝步驟與 registry 設定。
  • 查詢呼叫方是否有權取得某個元件或範本,並列出、檢視範本及其授權方式。
  • 取得主題色彩 token 與改色指引,並取得可直接執行的配方,例如聊天應用外殼、儀表板與帳單頁面。
適用情境
適合在以 Tailwind 建置 React 或 Next.js 介面時,讓助理重用現成元件而非從零撰寫,或直接用現成配方拼出完整頁面。
執行需求
遠端 streamable HTTP 端點 layropro.com,不需本機套件。搜尋不需憑證;取得元件程式碼與安裝需在 Authorization 標頭帶上 Layro 帳號的 CLI token,免費元件需免費帳號,Pro 元件需終身授權帳號。透過 CLI 安裝另需 shadcn CLI 與 npm。
安裝前請注意
連線會在 Authorization 標頭攜帶 Layro CLI token;伺服器也可能發出短期安裝 token 供 CLI 指令使用,不應寫入檔案或貼到對話中。安裝會把元件檔案寫入專案並加入 npm 相依套件。存取權限由伺服器判定,Pro 元件需要付費的終身授權。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Layro,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.Layropro%2Flayro/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "layro": {
      "type": "http",
      "url": "https://layropro.com/api/mcp"
    }
  }
}

工具

10

search_components

Search Layro components

Find Layro React + Tailwind components by what they do. Returns the best matches first with slug, category, access (free or pro) and version. Start here, then call get_component for details.

輸入參數limitquery必填category

get_component

Get a Layro component

Everything about one component except its source: when to use it, props, variants, npm dependencies, the files it installs, a typechecked usage example with real props, how it sizes and scrolls (layout), the components it pairs with and the recipes it appears in.

輸入參數slug必填

get_component_code

Get a Layro component's code

The complete source for one component and every file it imports, ready to save at the paths given. Free components need a free Layro account's token; Pro components need the caller's Layro lifetime access. Install with the shadcn CLI instead when you can run commands (see get_installation).

輸入參數slug必填include_dependencies

get_installation

Install Layro components

Installation for one or more components: the one-time @layro registry setup for components.json, the shadcn CLI command (always @layro/<slug>, never a bare URL), a ready-to-run agent command with a 15-minute install token when this connection carries a CLI token, the npm packages still missing (pass installed_packages from package.json), the files and where they go, and the theme setup.

輸入參數modeslugs必填package_managerinstalled_packages

list_categories

List Layro categories

The categories in the Layro catalogue with the components in each, plus the library contract: stack, theme, access, install path, and the accessibility and responsive behaviour every component has.

無需輸入參數。

search_templates

Search Layro templates

Find complete Layro React / Next.js templates: what each is, its stack, a live preview and how it is licensed.

輸入參數limitquery

get_template

Get a Layro template

One template's details and whether the caller may download it. Never returns the template's files.

輸入參數slug必填

check_access

Check Layro access

Whether the caller can take a component or template, and why: free, subscriber, lifetime, purchased or unauthorized.

輸入參數slug必填

get_theme

Get the Layro theme

The theme's colour tokens (light and dark values, and what each one colours), how to restyle Layro to a brand from your own CSS without editing components, the type scale, and the cn() config for it.

無需輸入參數。

get_recipe

Get a Layro recipe

Complete, runnable files that combine several Layro components the way they fit together: an AI chat app shell (Sidebar + Conversation History + AI Chat, with a phone drawer), a dashboard app and a billing page. Without a slug, lists the recipes. Every recipe typechecks against the components.

輸入參數slug

版本歷史

1
  1. v1.3.0最新Oct 29, 2026

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。

其他 Layro 整合