MCP PHP SDK

Transport

Table of Contents

Namespaces

Http
Stdio

Interfaces

StatelessAwareTransportInterface
A transport that can carry the modern (SEP-2575) lifecycle as well as the handshake one.
TransportInterface

Classes

BaseTransport
Provides a skeletal implementation of the TransportInterface to minimize the effort required to implement this interface.
CallbackStream
A PSR-7 StreamInterface that executes a callback when read.
InMemoryTransport
Provides a skeletal implementation of the TransportInterface to minimize the effort required to implement this interface.
StatelessHttpTransport
Carries the modern (SEP-2575) lifecycle over HTTP.
StdioTransport
Provides a skeletal implementation of the TransportInterface to minimize the effort required to implement this interface.
StreamableHttpTransport
Carries MCP over HTTP, in either protocol era.

Traits

ManagesTransportCallbacks
A trait for managing the various callbacks provided by the Protocol layer.
ReadsBoundedBody
Reads a request body whole, bounded by a byte cap.
On this page

Search results