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,34 @@
|
||||
# Hand-written view (board.html) in Chromium, AppBridge as the host, strict CSP
|
||||
|
||||
## rows after the tool result
|
||||
KB-01 Mechanical keyboard 4 +10
|
||||
MN-27 27 inch monitor 25 +10
|
||||
HB-04 USB4 hub 0 +10
|
||||
|
||||
## rows after clicking +10 on KB-01
|
||||
KB-01 Mechanical keyboard 14 +10
|
||||
MN-27 27 inch monitor 25 +10
|
||||
HB-04 USB4 hub 0 +10
|
||||
|
||||
status line: Restocked KB-01 by 10, now 14 in stock.
|
||||
|
||||
## host log (repeated size-changed lines removed)
|
||||
host: tool show_inventory -> ui://inventory/board.html, declared csp none
|
||||
view -> host: ui/notifications/sandbox-proxy-ready
|
||||
view -> host: ui/initialize
|
||||
view -> host: ui/notifications/initialized
|
||||
view -> host: ui/notifications/size-changed
|
||||
host: tool-input and tool-result delivered
|
||||
view -> host: tools/call restock_item {"sku":"KB-01","quantity":10} (id 2)
|
||||
view -> host: ui/update-model-context
|
||||
host: model context = The user restocked KB-01 by 10 from the stock board.
|
||||
|
||||
## probes run inside the view's frame
|
||||
read host page DOM: SecurityError
|
||||
fetch undeclared origin: TypeError: Failed to fetch
|
||||
fetch the MCP server directly: TypeError: Failed to fetch
|
||||
ui/message, content as one object (spec text): error -32602
|
||||
ui/message, content as an array (SDK types): ok
|
||||
eval(): EvalError
|
||||
fetch from the sandbox origin ('self'): TypeError
|
||||
fetch undeclared origin: TypeError
|
||||
Reference in New Issue
Block a user