Add mcp-apps module: Spring AI 2.1.0 MCP server with MCP Apps HTML views, app-only tool callbacks, CSP declarations, SDK client tests and a Chromium harness on the official AppBridge

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4RzcCS5JCAgcxLz7T
This commit is contained in:
Claude
2026-12-05 16:43:24 +05:30
parent 8fa3c5d682
commit 508fed3b98
46 changed files with 1730 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# SDK view (board-sdk.html), strict CSP
## with _meta.ui.csp.resourceDomains = [https://unpkg.com]
KB-01 Mechanical keyboard: 4
MN-27 27 inch monitor: 25
HB-04 USB4 hub: 0
host: tool show_inventory_sdk -> ui://inventory/board-sdk.html, declared csp {"resourceDomains":["https://unpkg.com"]}
host: tool-input and tool-result delivered
host: chat message = Which items should I reorder first?
## the same view when no domains are declared, 4 seconds later
view shows: Waiting for the tool result…
host: tool show_inventory_sdk -> ui://inventory/board-sdk.html, declared csp none
view -> host: ui/notifications/sandbox-proxy-ready
browser console:
Loading the script 'https://unpkg.com/@modelcontextprotocol/[email protected]/dist/src/app-with-deps.js' violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'".