setup notification handlers in App & AppBridge

This commit is contained in:
Olivier Chafik 2025-11-24 14:59:58 +00:00
commit ac3863092a
No known key found for this signature in database

View file

@ -9,8 +9,7 @@ export interface UseAppOptions {
capabilities: McpUiAppCapabilities;
/**
* Called after client is created but before connection.
* Use this to register request/notification handlers via
* client.setRequestHandler() and client.setNotificationHandler().
* Use this to register handlers via app.ontoolinput, app.toolresult, etc.
*/
onAppCreated?: (app: App) => void;
}