search-registry-items
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSearch Registry Items
搜索注册表项
Look up indexed shadcn registry catalog entries via full-text search on item and . Returns the registry namespace and for .
namedescriptionaddCommandArgumentnpx shadcn@latest addDefault tool call:
json
CallMcpTool({ "server": "user-shoogle", "toolName": "search_registry_items", "arguments": { "query": "button" } })通过对项的和进行全文搜索,查找已索引的shadcn注册表目录条目。返回注册表命名空间以及用于的。
namedescriptionnpx shadcn@latest addaddCommandArgument默认工具调用:
json
CallMcpTool({ "server": "user-shoogle", "toolName": "search_registry_items", "arguments": { "query": "button" } })Workflow
工作流程
Progress:
- Call on
search_registry_itemswith a short keyword or name fragment (not a full sentence)user-shoogle - Present matches as the output table below — never dump raw JSON
- If multiple registries share the same name, ask which registry to use
- Install with (or the project's package runner)
npx shadcn@latest add {addCommandArgument} - Paginate only when needed (+=
offsetwhilelimit)pagination.hasMore
Skip search when the user already gave the exact add target (e.g. ) — go straight to / .
@cult-ui/gradient-buttonviewaddFor install and composition rules after search, use the shadcn skill.
步骤:
- 在上调用
user-shoogle,传入简短关键词或名称片段(非完整句子)search_registry_items - 以下面的输出表格形式展示匹配结果——绝不要直接输出原始JSON
- 若多个注册表存在同名项,询问用户选择哪个注册表
- 使用(或项目的包管理器)进行安装
npx shadcn@latest add {addCommandArgument} - 仅在需要时进行分页(当为真时,
pagination.hasMore+=offset)limit
当用户已提供明确的添加目标(如)时,跳过搜索步骤——直接进入/流程。
@cult-ui/gradient-buttonviewadd搜索后的安装和组合规则,请参考shadcn skill。
Gotchas
注意事项
- One MCP tool only. exposes
user-shoogle. Block and semantic MCP tools (search_registry_items,search) are not available — use shoogle.dev/search instead. Do not usesearch_vectorsfor this workflow.npx shadcn@latest search - Full-text on and
name. Matching uses full-text search across both fields — not item titles, and not semantic/vector search. A query likedescriptioncan match items namedcarouselor whose description mentions carousels.carousel - Keywords, not intent. Multi-concept natural-language queries like "login page with dark mode" won't work well. For semantic block discovery, send the user to shoogle.dev/search.
- Query the item name, not the registry prefix. Use , not
button. Filter by@acme/buttonin results.registry - Short fragments beat sentences. Prefer ,
button,hero. Empty or whitespace queries return nothing.data-table - No results? Try shorter fragments or synonyms (vs
dialog).modal - is the install target. Use it verbatim:
addCommandArgument. Do not reconstruct fromnpx shadcn@latest add cult-ui/gradient-button.@registry/name - Pagination cap is 100. Default page size is 100; mention when results span pages.
pagination.total
If MCP is unavailable, point to shoogle.dev/mcp-install. For parameter or response details, read references/TOOL-REFERENCE.md.
- 仅使用一个MCP工具。仅提供
user-shoogle工具。区块和语义MCP工具(search_registry_items、search)不可用——请改用shoogle.dev/search。本工作流程中请勿使用search_vectors。npx shadcn@latest search - 仅对和
name进行全文搜索。匹配基于这两个字段的全文检索——不匹配项标题,也不支持语义/向量搜索。类似description的查询可以匹配名为carousel的项,或描述中提及carousel的项。carousel - 仅支持关键词,不支持意图查询。类似“带深色模式的登录页面”这类多概念自然语言查询效果不佳。如需语义区块发现,请引导用户访问shoogle.dev/search。
- 查询项名称,而非注册表前缀。使用,而非
button。可在结果中按@acme/button筛选。registry - 简短片段优于完整句子。优先使用、
button、hero这类关键词。空查询或仅含空格的查询不会返回任何结果。data-table - **无结果时?**尝试更短的片段或同义词(如替代
dialog)。modal - 是安装目标。直接使用该参数:
addCommandArgument。请勿通过npx shadcn@latest add cult-ui/gradient-button重新构造。@registry/name - 分页上限为100。默认每页显示100条结果;当结果跨页时,需提及。
pagination.total
若MCP不可用,请引导用户访问shoogle.dev/mcp-install。如需参数或响应详情,请阅读references/TOOL-REFERENCE.md。
Output format
输出格式
Always respond with a markdown table:
| name | registry | add command | type | description |
|---|
- add command: when present
npx shadcn@latest add {addCommandArgument} - Use for empty descriptions
— - End with match count and page info when relevant
Example — user asks for button components across registries:
| name | registry | add command | type | description |
|---|---|---|---|---|
| button | shadcn | | registry:ui | A clickable button component |
| button | cult-ui | | registry:ui | Animated button variants |
Found 2 matches (showing 1–2 of 2). Which registry should I add from?
请始终以Markdown表格形式响应:
| 名称 | 注册表 | 添加命令 | 类型 | 描述 |
|---|
- 添加命令:当存在时,格式为
addCommandArgumentnpx shadcn@latest add {addCommandArgument} - 空描述使用填充
— - 相关时需在末尾显示匹配数量和分页信息
示例——用户询问各注册表中的按钮组件:
| 名称 | 注册表 | 添加命令 | 类型 | 描述 |
|---|---|---|---|---|
| button | shadcn | | registry:ui | 可点击的按钮组件 |
| button | cult-ui | | registry:ui | 带动画效果的按钮变体 |
找到2个匹配项(显示第1–2条,共2条)。请问您要从哪个注册表添加?
Out of scope
超出范围的场景
| Need | Use instead |
|---|---|
| Registry item by name or description | |
| Block keyword search | shoogle.dev/search |
| Semantic / layout discovery | shoogle.dev/search |
| Install a known item | shadcn CLI |
| Browse one registry | |
| 需求 | 替代方案 |
|---|---|
| 通过名称或描述查找注册表项 | |
| 区块关键词搜索 | shoogle.dev/search |
| 语义/布局发现 | shoogle.dev/search |
| 安装已知项 | shadcn CLI的 |
| 浏览单个注册表 | |