Skip to content

[AI-stack FB6] @netscript/fresh-ui: interactive MCP-App bridge (widget-action → tools/call → re-render, deferred) #272

Description

@rickylabs

Summary (deferred — post-v1)

The interactive MCP-App bridge in @netscript/fresh-ui: the bidirectional half deferred out of FB4 (#257). A rendered MCP-UI widget can dispatch an action → tools/call → the host re-renders the widget with the new resource, all without a full round-trip through a new connection.

Load-bearing gotcha (★)

Hand the new resource to the EXISTING AppBridgenever call connect() again. A second connect() throws "AppBridge is already connected". The bridge is connect-once / update-many against a streaming host: one connection, many resource updates.

Scope

@netscript/fresh-ui MCP-UI seam (bidirectional). wave:defer (post-v1, after FB4). POC reference: eis-chat #57 (lib/mcp.ts#L78-104 + mcp-widget.tsx#L185-195).

Part of #238 · Refs #244 (E5) #257 (FB4) · POC eis-chat#57

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions