MCP PHP SDK

RootsListChangedNotification extends Notification

A notification from the client to the server, informing it that the list of roots has changed.

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

This notification should be sent whenever the client adds, removes, or modifies any root. The server should then request an updated list of roots using the ListRootsRequest.

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

Table of Contents

Properties

$meta  : array<string, mixed>|null

Methods

fromArray()  : self
getMethod()  : string
jsonSerialize()  : NotificationData
fromParams()  : Notification
getParams()  : array<string, mixed>|null

Properties

Methods

fromArray()

public static fromArray(NotificationData $data) : self
Parameters
$data : NotificationData
Return values
self

jsonSerialize()

public jsonSerialize() : NotificationData
Return values
NotificationData
On this page

Search results