MCP-UI / MCP Apps¶
Official MCP extension (SEP-1865, 2026-01). Tools return interactive UI resources via the
ui://scheme; the host renders them inside a sandboxed iframe.
Python
from apogee_ai_comunication import (
IframeDescriptor, NativeUiProvider, ResourceDescriptor,
)
provider = NativeUiProvider()
provider.register_ui(
ResourceDescriptor(
uri="ui://demo/index",
name="demo",
mime_type="text/html",
contents="<h1>hi</h1>",
)
)
res = await provider.serve("ui://demo/index")
print(IframeDescriptor(src=res.uri).to_html())
NativeUiProvider rejects URIs that do not start with ui:// to enforce the
sandboxed-host contract.