mine-h5-ui-mcp
v2.19.1MCP server for mine-h5-ui component library
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_components 列出 mine-h5-ui 组件
列出 mine-h5-ui 组件库的全部组件与指南目录,可按分类或组件类型过滤。当你不确定有哪些组件可用时,先调用此工具。
| Parameter | Type | Description |
|---|---|---|
category | string | 组件分类,如 基础组件、表单组件、反馈组件、导航组件、展示组件、业务组件 |
kind | string | 组件类型:component 为模板组件,api 为命令式 API 组件 |
search_components 检索 mine-h5-ui 组件
按中文名、英文名、标签、Props 或示例关键字检索组件。编写页面或选择组件前,用此工具确定应使用哪些组件。
| Parameter | Type | Description |
|---|---|---|
query * | string | 检索词,支持中文或英文,例如 按钮、表单、toast、上传 |
category | string | 限定分类,如 表单组件 |
limit | integer | 返回数量,默认 8 |
get_component_api 获取 mine-h5-ui 组件 API
获取组件的 Props、Events、Slots、Methods 与类型定义,包含类型、可选值、默认值、必填性与版本。生成或修改组件代码前必须调用,不要凭记忆猜测 API。
| Parameter | Type | Description |
|---|---|---|
component * | string | 组件名,支持 MeButton、me-button、button、按钮 等写法 |
include | array | 需要返回的 API 分区,默认全部 |
include_examples | boolean | 是否同时返回示例标题与代码,默认 false |
get_component_examples 获取 mine-h5-ui 组件示例
获取组件官方文档中的代码示例,可按场景关键字过滤。生成页面或不确定写法时使用,优先复用官方示例而不是自行编写。
| Parameter | Type | Description |
|---|---|---|
component * | string | 组件名,支持 MeButton、button、按钮 等写法 |
limit | integer | 返回示例数量,默认 3 |
scenario | string | 场景关键字,如 校验、禁用、自定义颜色 |
get_component_doc 获取 mine-h5-ui 组件文档
获取组件的原始 Markdown 文档,或其中某个章节。需要完整说明、注意事项或示例上下文时使用。
| Parameter | Type | Description |
|---|---|---|
component * | string | 组件名,支持 MeButton、button、按钮 等写法 |
section | string | 章节标题或其前缀,例如 API、代码演示、Slots |
search_icons 检索 mine-h5-ui 图标
检索 mine-h5-ui 内置图标,返回可直接用于 <me-icon name="..."> 的名称。支持英文 class 名与 iconfont 中的中文名称。
| Parameter | Type | Description |
|---|---|---|
limit | integer | 返回数量,默认 20 |
offset | integer | 分页偏移,默认 0 |
query | string | 检索词,例如 close、关闭、loading;留空返回全部图标 |
get_guide 获取 mine-h5-ui 指南
获取安装、快速开始、主题、全局样式变量、开发指南、更新日志、样式类、API 方法、正则校验、组合式 API 等指南文档。
| Parameter | Type | Description |
|---|---|---|
topic * | string | 指南主题:introduce、install、start、theme、var、develop、logs、style、api、regExp、composable |