
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
概覽
本機 MCP 伺服器,為 AI 助理提供 UI5 Web Components for React 的文件、元件 API 與工具函式資訊,並可產生應用程式骨架。
- 可以做什麼
- 依官方 Vite、Next.js App Router 與 Next.js Pages Router 範本產生新應用程式,並提供逐步建置說明
- 依分類或套件瀏覽元件,附說明與匯入範例
- 查閱完整元件 API:含 TypeScript 型別的屬性與預設值、事件 detail 欄位、ref 方法、CSS part 選擇器與子型別
- 依章節瀏覽或依關鍵字搜尋內建文件與知識庫,長文件支援行範圍讀取
- 查詢基礎套件中的公用工具,例如裝置偵測、國際化與視窗斷點 hook、主題參數
- 適用情境
- 使用 UI5 Web Components for React 開發或維護 React 前端時,希望助理依據與版本相符的本機文件回答元件、樣式、slot 或 API 問題,而不是憑空猜測。也適合從官方範本快速建立新專案。
- 執行需求
- 以本機 Node.js 程序執行,通常透過 npx 啟動 npm 套件,需要 Node.js。未宣告帳號、API 金鑰或環境變數。預設使用 stdio 傳輸;可選的 HTTP 模式僅監聽本機,連接埠由命令列參數或 PORT 變數指定。文件已內建,查詢時不需連網。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Webcomponents React Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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
VS Code / Cursor
Add to .vscode/mcp.json:
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.
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.
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:
The server listens on http://localhost:7427/mcp. Change the port with --port (or the PORT environment variable):
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:
Features
Tools
-
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
-
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
-
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
-
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
-
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版本歷史
7- v2.28.2最新Oct 29, 2026
- v2.28.1Oct 22, 2026
- v2.28.0Oct 22, 2026
- v2.27.3Oct 9, 2026
- v2.27.2Sep 29, 2026
- v2.27.1Sep 25, 2026
- v2.26.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分