mcp-use TypeScript API
    Preparing search index...

    Type Alias OnNotificationCallback

    OnNotificationCallback: (notification: Notification) => void | Promise<void>

    Handles a notification sent by an MCP server.

    Type Declaration

      • (notification: Notification): void | Promise<void>
      • Parameters

        • notification: Notification

          The notification envelope supplied by the server.

        Returns void | Promise<void>