MCP PHP SDK

RootsListChangedNotification extends Notification

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

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