UI5con 2026 MCP Apps

UI5con 2026 MCP Apps

Provides runnable samples demonstrating how MCP tools can return deterministic, interactive UIs using HTML, UI5 Web Components, UI Integration Cards, and host-orchestrated SAP transport data.

Category
访问服务器

README

UI5con 2026 MCP Apps Samples

Five runnable samples for learning how MCP tools can return deterministic, interactive UIs. The examples progress from plain HTML to UI5 Web Components, UI Integration Cards, a UI5 linter workflow, and host-orchestrated SAP transport data.

This repository contains the reusable sample code and learning material. Speaker notes, presentation files, editor-specific MCP configuration, generated output, helper scripts, and the original test suite are intentionally not part of this publication copy.

What an MCP App Adds

An ordinary MCP tool can return text and structured data. MCP Apps adds a prebuilt web UI that the host renders in a sandboxed iframe:

user asks for something
  -> model chooses an MCP tool
  -> server returns content + structuredContent
  -> tool metadata points to a ui:// resource
  -> host loads the prebuilt UI
  -> host bridge delivers the tool result to the iframe
  -> app renders structuredContent and may call another tool

The model chooses and connects tools; it does not generate the interface for each request. That separation keeps the UI predictable and lets non-UI hosts fall back to content.

Learning Path

Step Package Main tool What it demonstrates
00 00-html-time show_time Smallest complete MCP App and an app-to-server callback.
01 01-ui5-webc-project-overview show_ui5_project_overview UI5 Web Components, host theme synchronization, and structured rendering.
02 02-ui5-card-project-overview show_ui5_project_cards Declarative Object and List UI Integration Cards.
03 03-ui5-lint-findings show_ui5_lint_findings Live developer tooling, server composition, callbacks, and a narrow file write.
04 04-arc1-transport show_arc1_transport_list, show_arc1_transport Host-orchestrated ARC-1 data and confirmation-gated SAP actions.

New to MCP or MCP Apps? Read LEARNING.md first, then work through the package READMEs in numeric order.

Prerequisites

  • Node.js 22 and npm.
  • An MCP host that supports MCP Apps, such as Cursor, Claude Desktop, or MCPJam.
  • Network access for installing npm dependencies.
  • Sample 03 additionally launches @ui5/mcp-server with npx and can use a local ui5lint fallback.
  • Sample 04 needs a separately configured ARC-1 server for live SAP data. Its demo-data/ directory provides an explicitly labelled offline rehearsal fallback.

Install and Build

git clone https://github.com/marianfoo/UI5con_2026_MCPApps.git
cd UI5con_2026_MCPApps
npm ci
npm run build

The build has two outputs:

  • Vite bundles every iframe app into a single packages/<sample>/app/dist/index.html.
  • TypeScript compiles the MCP servers into dist/.

Rebuild after changing app or server source. Generated build output is ignored by Git.

Connect an MCP Host

Stdio: all samples

Use the root aggregator when exploring the repository:

command: node
args: /absolute/path/to/UI5con_2026_MCPApps/dist/src/stdio.js

The exact configuration screen differs by host. This repository intentionally does not ship an mcp.json, because absolute paths and local server credentials are machine-specific.

For a focused demo, expose only one sample by using its compiled entrypoint:

Sample Command after npm run build
00 npm run start:stdio:00
01 npm run start:stdio:01
02 npm run start:stdio:02
03 npm run start:stdio:03
04 npm run start:stdio:04

When the host starts the process itself, configure node with the corresponding absolute dist/packages/<sample>/src/stdio.js path instead of running the npm command manually.

Streamable HTTP

Start the aggregate server:

npm run start

Then connect an HTTP-capable client to:

http://127.0.0.1:3000/mcp

Each package also has a standalone HTTP command from npm run start:00 through npm run start:04; their ports are 3010 through 3014.

First Prompts to Try

Call show_time.
Call show_ui5_project_overview.
Call show_ui5_project_cards.
Call show_ui5_lint_findings.

Sample 04 needs ARC-1 data first; its README contains the complete safe orchestration prompt.

Verify the Publication Copy

The essential local verification is:

npm ci
npm run build

For MCP Apps protocol conformance, start the aggregate HTTP server in one terminal and run the MCPJam check in another:

npm run start
npm run test:mcpjam

Conformance verifies protocol behavior, but it cannot guarantee identical rendering or CSP behavior in every host. Test the samples in the hosts you intend to support.

Repository Structure

packages/<sample>/
  README.md             sample concepts, flow, setup, and experiments
  src/register.ts       tools, schemas, ui:// resource, and result builder
  src/<domain>.ts       types, normalization, fixtures, or manifests
  src/server.ts         standalone Streamable HTTP entrypoint
  src/stdio.ts          standalone stdio entrypoint
  app/index.html        fixed iframe document
  app/src/main.ts       MCP Apps bridge and rendering logic
  app/src/styles.css    app-specific presentation

src/mcp-host.ts         shared server and resource plumbing
src/register-all.ts     aggregate tool registration
src/server.ts           aggregate HTTP server
src/stdio.ts            aggregate stdio server

Security and Portability Rules

  • Treat structuredContent as a typed application contract, not generated markup.
  • Validate every server tool input, including calls originating from your own iframe.
  • Keep credentials and system connections on the server that owns them.
  • Preserve useful content for hosts without MCP Apps support.
  • Request only the CSP domains and iframe permissions a UI actually requires.
  • Require explicit confirmation for consequential writes.
  • Re-read authoritative data after a write rather than trusting optimistic UI state.
  • Test strict and permissive hosts separately; MCP compatibility does not make their browser sandbox policies identical.

Technology

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选