Spring AI 2.0.0-M3 introduces MCP Apps, a way to embed rich HTML/JavaScript UIs directly inside AI chat interfaces. Using @McpResource and @McpTool annotations on a Spring Boot MCP server, developers can serve interactive UI components (like a dice roller) that communicate bidirectionally with the AI assistant host via
Table of contents
MCP Apps in a NutshellInitializing the ProjectDefine the User InterfaceCreate the MCP ServerRunning the MCP AppConclusionResourcesSort: