MCP PHP SDK

Server

FinalYes
Tags
author

Christopher Hertel mail@christopher-hertel.de

Kyrian Obikwelu koshnawaza@gmail.com

Table of Contents

Properties

$handshakeVersions  : array<string|int, mixed>|null
$logger  : LoggerInterface
$protocol  : Protocol
$statelessProtocol  : StatelessProtocol|null

Methods

__construct()  : mixed
builder()  : Builder
run()  : TResult

Properties

$handshakeVersions read-only

private array<string|int, mixed>|null $handshakeVersions = null

$logger read-only

private LoggerInterface $logger = new NullLogger()

Methods

__construct()

public __construct(Protocol $protocol[, LoggerInterface $logger = new NullLogger() ][, StatelessProtocol|null $statelessProtocol = null ][, array<int, ProtocolVersion>|null $handshakeVersions = null ]) : mixed
Parameters
$protocol : Protocol
$logger : LoggerInterface = new NullLogger()
$statelessProtocol : StatelessProtocol|null = null

the modern-era (SEP-2575) dispatcher, absent on a server that serves the handshake era alone

$handshakeVersions : array<int, ProtocolVersion>|null = null

revisions initialize negotiates, all of them by default

On this page

Search results