MCP Apps in Java: Serve Interactive HTML UIs from a Spring AI MCP Server
Build an MCP App in Java with Spring AI 2.1.0: ui:// HTML resources linked to tools through MetaProvider, a button that calls an app-only tool back, CSP declarations, a script-injection demo, MCP Java SDK client tests and runs in Chromium against the official basic-host. No production chat host or model was used.