final | |
---|---|
readonly | |
implements |
JsonSerializable, Arrayable |
Describes the name and version of an MCP implementation, with an optional title for UI representation.
Methods | ||
---|---|---|
public
|
__construct(non-empty-string $name, non-empty-string $version, null|non-empty-string $title = null)
|
# |
public
|
toArray(): array{name: non-empty-string, version: non-empty-string, title?: non-empty-string}
|
# |
public
|
jsonSerialize(): array{name: non-empty-string, version: non-empty-string, title?: non-empty-string}
|
# |
Properties | |||
---|---|---|---|
public
|
non-empty-string
|
$name
|
# |
public
|
non-empty-string
|
$version
|
# |
public
|
null|non-empty-string
|
$title
|
# |