mcp-use TypeScript API
    Preparing search index...

    Type Alias NotificationHandler

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

    Handles a notification received from an MCP server.

    Type Declaration

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

        • notification: Notification

          Notification envelope supplied by the server.

        Returns void | Promise<void>