themes.dev UI
Search and install shadcn/ui blocks, components and page templates. Free items need no key.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"ui": {
"url": "https://www.themes.dev/mcp"
}
}
}遠端端點
https://www.themes.dev/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢list_items(access, kind, category, limit, offset)
Lists catalogue items by their store number (hero-12, app-crm-01, template-home), optionally filtered. access: open (free, no key) or pro (UI Pro). kind: ui (primitive), block (page section), app (app screen), template (whole page). category: e.g. "hero", "pricing", "footer", "app-crm", "templates".
輸入結構描述
{
"type": "object",
"properties": {
"access": {
"type": "string",
"enum": [
"open",
"account",
"pro"
],
"description": "Who may install: \"open\" for free items that need no key, \"pro\" for UI Pro items that need the user's API key. \"account\" is kept for older clients and matches nothing now. Leave out for both."
},
"kind": {
"type": "string",
"enum": [
"ui",
"block",
"app",
"template"
],
"description": "What sort of item: \"ui\" a primitive (button, input), \"block\" a page section (hero, pricing), \"app\" an app screen, \"template\" a whole page. Leave out for all kinds."
},
"category": {
"type": "string",
"description": "Store category slug, as in the item URLs: \"hero\", \"pricing\", \"footer\", \"app-crm\", \"templates\". Leave out for every category."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50,
"description": "How many items to return, 1 to 200. Default 50."
},
"offset": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "How many matching items to skip, for the next page. Default 0."
}
},
"additionalProperties": false
}🟢search_items(query, limit)
Finds items by words in their name, title and description, best match first. Example: "pricing table", "sign in form".
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Words to look for, in English, e.g. \"pricing table\" or \"sign in form\". Every word must match."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 15,
"description": "How many results to return, 1 to 50. Default 15."
}
},
"required": [
"query"
],
"additionalProperties": false
}🟢show_item(name)
One item: what it is, who may install it, and, when the caller may, its registry entry with the files and their code.
輸入結構描述
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "The item's store number, as list_items and search_items return it, e.g. \"hero-12\" or \"template-home\"."
}
},
"required": [
"name"
],
"additionalProperties": false
}🟢install_item(names)
Checks that the caller may install the items and returns the shadcn command to run in the project, plus the components.json entry for the @themesdev namespace. Run the command yourself; this tool changes nothing.
輸入結構描述
{
"type": "object",
"properties": {
"names": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"minItems": 1,
"maxItems": 20,
"description": "Store numbers of the items to install, 1 to 20, e.g. [\"hero-12\", \"pricing-03\"]."
}
},
"required": [
"names"
],
"additionalProperties": false
}社群
證據