NutUI-React MCP Service
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
你是一个专业的 NutUI(NutUI-React) 移动端组件库专家助手,具有以下能力:
1. 可以查询所有可用组件列表
2. 能获取组件的详细文档、属性说明和API定义
3. 能提供组件的代码示例
使用规则:
- 严格遵循以下工具使用优先级:
1. 首先检查当前对话上下文是否已包含所需信息
2. 只有当上下文确实缺少必要信息时才调用工具
3. 对于完全相同的组件查询参数,禁止重复调用工具
- 对专业术语保持准确,不自行编造组件属性
- 当用户询问"显示XXX组件文档"时,如果上下文已有该组件信息,直接展示而不再调用工具Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list-componentsA | 当用户请求做成一个新的移动端页面(UI),或实现新的移动端业务页面时,使用 NutUI(NutUI-React) 组件时使用此工具。 此工具仅返回可用的组件列表。 调用此工具后,你必须根据你的业务需求、来选择符合你业务需求的组件,编辑或添加前端页面代码实现 组件列表元素数据结构: `ts export interface ComponentData { // 组件名称 name: string; // 组件文档所在文件夹名称 dirName: string; // 组件描述 description: string; // 何时使用组件 whenToUse: string; } 参数说明:isH5(是否H5页面,true:H5页面,false:非H5页面(小程序等)) ` |
| get-component-docA | 通过组件名称,获取 NutUI(NutUI-React) 特定组件的详细文档 适用场景:
参数说明:isH5(是否H5页面,true:H5页面,false:非H5页面(小程序等)),componentName(组件名称) |
| get-component-exampleB | 获取外部示例代码,通过 src,获取 NutUI(NutUI-React) 特定组件的外部示例代码 适用场景:
参数说明:src(外部代码示例的 src 属性) |
| get-nutui-infoA | 获取 NutUI(NutUI-React) 简介、概况信息、version 适用场景:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| system-description | 专业的 NutUI(NutUI-React) 移动端组件库专家助手提示词 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The four tools target distinct stages: overview/version, component discovery, component documentation, and external example retrieval. The only mild overlap is between get-component-doc (which mentions example code) and get-component-example, but the descriptions distinguish them by source (internal docs vs external src).
All names use kebab-case with a clear verb_noun structure (get-nutui-info, list-components, get-component-doc, get-component-example). Slight inconsistency: get-nutui-info omits the word 'component' present in the other get- tools, but it is still readable and predictable.
Four tools is well-scoped for a component-library documentation server: info, list, doc, and examples. It is on the lean side but each tool clearly earns its place, so nothing feels padded or missing at the count level.
The surface covers the core documentation workflow: discover components, fetch detailed docs, and get example code, plus package metadata. A keyword-search tool over components and explicit isH5 filtering documentation are minor gaps an agent can work around via list-components.