MCP PHP SDK

ClientCapabilities implements JsonSerializable

Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

Table of Contents

Interfaces

JsonSerializable

Properties

$elicitation  : bool|null
$experimental  : array<string|int, mixed>|null
$roots  : bool|null
$rootsListChanged  : bool|null
$sampling  : bool|null

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array{roots?: object, sampling?: object, elicitation?: object, experimental?: object}

Properties

$experimental read-only

public array<string|int, mixed>|null $experimental = null

Methods

__construct()

public __construct([bool|null $roots = false ][, bool|null $rootsListChanged = null ][, bool|null $sampling = null ][, bool|null $elicitation = null ][, array<string, mixed> $experimental = null ]) : mixed
Parameters
$roots : bool|null = false
$rootsListChanged : bool|null = null
$sampling : bool|null = null
$elicitation : bool|null = null
$experimental : array<string, mixed> = null

fromArray()

public static fromArray(array{roots?: array{listChanged?: bool}, sampling?: bool, elicitation?: bool, experimental?: array$data) : self
Parameters
$data : array{roots?: array{listChanged?: bool}, sampling?: bool, elicitation?: bool, experimental?: array}
Return values
self

jsonSerialize()

public jsonSerialize() : array{roots?: object, sampling?: object, elicitation?: object, experimental?: object}
Return values
array{roots?: object, sampling?: object, elicitation?: object, experimental?: object}

        
On this page

Search results