McpAppHost
What the host does for a view. Every method has a safe default (decline, ignore), so a host implements only what it offers.
Functions
Link copied to clipboard
Whether the view may run tool now. The default follows the library's rule — tools that change data ask the user — so read-only tools pass and others are declined unless the host asks the user.
Link copied to clipboard
ui/request-display-mode: switch to mode if possible; returns the resulting mode.
Link copied to clipboard
ui/notifications/request-teardown: the view asks to be closed.
Link copied to clipboard
ui/notifications/size-changed, in CSS pixels.
Link copied to clipboard
ui/update-model-context: what the model should know in later turns (replaces the previous one).