MCP PHP SDK

LoggingNotificationHandler implements NotificationHandlerInterface

Handler for logging message notifications from the server.

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

Table of Contents

Interfaces

NotificationHandlerInterface
Interface for handling notifications from the server.

Properties

$callback  : mixed

Methods

__construct()  : mixed
handle()  : void
Handle the notification.
supports()  : bool
Check if this handler supports the given notification.

Properties

Methods

On this page

Search results