Receive daily AI-curated summaries of engineering articles from top tech companies worldwide.
Endigest AI Core Summary
This article introduces MCP Apps in Spring AI 2.0.0-M3, which enable embedding rich UI elements within chat interfaces for a hybrid user experience.
•MCP Apps consist of two elements: an MCP tool with metadata referencing an HTML resource, and an HTML/JS/CSS resource served by the MCP server
•The ext-apps.ts module provides functions like updateModelContext(), sendMessage(), and callServerTool() for UI-to-assistant communication via JSON-RPC
•A dice-rolling demo is used to illustrate how the HTML UI connects to the assistant host and pushes context updates into the chat history
•The @McpResource annotation serves HTML content, while @McpTool associates a tool with the MCP App; CSP metadata must whitelist external domains like unpkg.com
•
Spring AI 2.0.0-M3 introduced MCP annotations and tool/resource metadata support, contributed by community members Vadzim Shurmialiou and Alexandros Pappas
This summary was automatically generated by AI based on the original article and may not be fully accurate.