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:
@@ -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'".
|
||||
Reference in New Issue
Block a user