setup notification handlers in App & AppBridge
This commit is contained in:
parent
535dae6a73
commit
ac3863092a
1 changed files with 89 additions and 45 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue