Webcomponents React Mcp Server

io.github.UI5由 GitHub 账号 UI5 发布v2.28.2更新于 Oct 29, 2026

MCP server for UI5 Web Components for React - Developer documentation and API assistance

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地 MCP 服务器,为 AI 助手提供 UI5 Web Components for React 的文档、组件 API 与工具函数信息,并可生成应用脚手架。

可以做什么
  • 按官方 Vite、Next.js App Router 与 Next.js Pages Router 模板生成新应用,并给出分步搭建说明
  • 按分类或包浏览组件,附带说明与导入示例
  • 查阅完整组件 API:含 TypeScript 类型的属性与默认值、事件 detail 字段、ref 方法、CSS part 选择器与子类型
  • 按章节浏览或按关键词搜索内置文档与知识库,长文档支持行范围读取
  • 查询基础包中的公共工具,如设备检测、国际化与视口断点钩子、主题参数
适用场景
在使用 UI5 Web Components for React 开发或维护 React 前端时,希望助手基于与版本匹配的本地文档回答组件、样式、插槽或 API 问题,而不是凭空猜测。也适合从官方模板快速起步新项目。
运行要求
以本地 Node.js 进程运行,通常通过 npx 启动 npm 包,需要 Node.js。未声明账号、API 密钥或环境变量。默认使用 stdio 传输;可选 HTTP 模式仅监听本机,端口由命令行参数或 PORT 变量指定。文档已内置,查询时无需联网。
安装前请注意
create_app 只返回脚手架说明而非直接写文件,但照做会在项目中执行 degit 等命令。应将服务器版本固定为与已安装库版本一致,因为它只内置某一版本的文档,库升级后需同步更新。HTTP 模式为无状态且仅限本机,请勿将该端口对外暴露。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Webcomponents React Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

UI5 Web Components for React MCP Server

MCP server providing development assistance and API documentation for UI5 Web Components for React.

What is this?

This MCP server gives AI assistants direct access to UI5 Web Components for React documentation, component APIs, and utility information. It helps developers get accurate, up-to-date information about the library without leaving their IDE.

Setup

This server is available in the MCP Registry, which allows compatible clients to install it directly.

Claude Code

bash
claude mcp add ui5-wcr -- npx @ui5/webcomponents-react-mcp@latest

VS Code / Cursor

Add to .vscode/mcp.json:

json
{  "servers": {    "ui5-wcr": {      "command": "npx",      "args": ["@ui5/webcomponents-react-mcp@latest"]    }  }}

Pinning a Specific Version

The MCP server is available since @ui5/[email protected]. It shares the same version number and bundles documentation and API data for that specific release. Pinning the version to match your project ensures the AI assistant provides accurate information for the components and APIs you are actually using.

Append @<version> to install a specific version. Note that after updating @ui5/webcomponents-react, you need to update the pinned MCP server version accordingly.

bash

To match the version of @ui5/webcomponents-react installed in your project, run from the project root:

This requires @ui5/webcomponents-react to be installed in the project's node_modules.

bash
npx @ui5/webcomponents-react-mcp@$(node -p "require('@ui5/webcomponents-react/package.json').version")

Transport

The server supports two transports. Both run locally on the developer's machine.

stdio (default)

Used by the Setup configurations above. The client spawns the server as a subprocess and communicates over stdin/stdout. No flags are required.

HTTP (Streamable HTTP)

Some MCP clients connect over HTTP instead. Start the server with the --http flag to enable the Streamable HTTP transport:

bash
npx @ui5/webcomponents-react-mcp@latest --http

The server listens on http://localhost:7427/mcp. Change the port with --port (or the PORT environment variable):

bash
npx @ui5/webcomponents-react-mcp@latest --http --port 7500

It runs statelessly and binds to localhost only — reachable over a local HTTP port, but otherwise the same local-only, version-pinned server as the stdio mode. Point your HTTP-based client at the endpoint:

json
{  "servers": {    "ui5-wcr": {      "url": "http://localhost:7427/mcp"    }  }}

Features

Tools

  1. create_app - Scaffold a new application from an official template

    • Vite (TypeScript), Next.js App Router, Next.js Pages Router
    • Returns step-by-step setup instructions using degit
  2. list_components - Browse all available components

    • Filter by category (Data Display, Layouts & Floorplans, Inputs, Modals & Popovers, User Feedback, Charts, AI Components, Web Components)
    • Filter by package (@ui5/webcomponents-react, @ui5/webcomponents-react-charts, @ui5/webcomponents-ai-react)
    • Includes descriptions and import examples
  3. get_component_api - Full component API documentation

    • Props with TypeScript types, descriptions, and defaults
    • Event detail parameters (fields available on e.detail)
    • Ref methods and return types
    • CSS ::part() selectors for shadow DOM styling
    • Sub-type documentation for complex props (e.g. AnalyticalTable column definitions)
    • Upstream documentation links for components with complex behavioral logic
    • Case-insensitive component name matching
    • Returns structured JSON output
  4. get_documentation - Documentation, guides, and knowledge base

    • Browse by section name or search by keyword across all docs
    • Getting Started, Knowledge Base (styling, i18n, SSR, slots, FAQ, accessibility, and more), project templates
    • Full content read from bundled local files (no network required)
    • Line-range support (startLine/endLine) for large documents
  5. get_public_utils - Public utilities from @ui5/webcomponents-react-base

    • Device API (device detection, responsive breakpoints, resize/orientation handlers)
    • useI18nBundle hook (internationalization)
    • useViewportRange hook (responsive breakpoint detection)
    • ThemingParameters (CSS variables in JavaScript)

Resources

  • llms.txt - LLM-friendly documentation index with scope, key concepts, and quick-reference links

Usage

Once configured, your AI assistant will have access to the tools. You can ask questions like:

Create:

  • "Create a new Vite app with UI5 Web Components for React"
  • "Scaffold a Next.js app with a simple dashboard"

Documentation:

  • "How do I style components?"
  • "How do slots work?"

Components:

  • "List all available components"
  • "Show me chart components"
  • "What layout components are available?"
  • "Show me the API for AnalyticalTable"
  • "How do I use the DynamicPage component?"

Contributing

See CONTRIBUTING.md for development setup, scripts, architecture, and build pipeline details.

来源:packages/mcp-server/README.md,提交 7a09746

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

7
  1. v2.28.2最新Oct 29, 2026
  2. v2.28.1Oct 22, 2026
  3. v2.28.0Oct 22, 2026
  4. v2.27.3Oct 9, 2026
  5. v2.27.2Sep 29, 2026
  6. v2.27.1Sep 25, 2026
  7. v2.26.3Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分