MCP PHP SDK

Deprecated

Table of Contents

src/Capability/Logger/ClientLogger.php
src/Client/Handler/Notification/LoggingNotificationHandler.php
src/Client/Handler/Request/ListRootsRequestHandler.php
src/Client/Handler/Request/RootsCallbackInterface.php
src/Client/Handler/Request/SamplingCallbackInterface.php
src/Client/Handler/Request/SamplingRequestHandler.php
src/Schema/Content/SamplingMessage.php
src/Schema/Content/ToolResultContent.php
src/Schema/Content/ToolUseContent.php
src/Schema/Enum/LoggingLevel.php
src/Schema/Enum/SamplingContext.php
src/Schema/Enum/ToolChoiceMode.php
src/Schema/ModelHint.php
src/Schema/ModelPreferences.php
src/Schema/Notification/LoggingMessageNotification.php
src/Schema/Notification/RootsListChangedNotification.php
src/Schema/Request/CreateSamplingMessageRequest.php
src/Schema/Request/ListRootsRequest.php
src/Schema/Request/SetLogLevelRequest.php
src/Schema/Result/CreateSamplingMessageResult.php
src/Schema/Result/ListRootsResult.php
src/Schema/Root.php
src/Schema/ToolChoice.php
src/Server/ClientGateway.php
src/Server/Handler/Request/SetLogLevelHandler.php

ClientLogger.php

Line Element Reason
29 ClientLogger

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

LoggingNotificationHandler.php

Line Element Reason
25 LoggingNotificationHandler

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

ListRootsRequestHandler.php

Line Element Reason
38 ListRootsRequestHandler

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

RootsCallbackInterface.php

Line Element Reason
29 RootsCallbackInterface

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

SamplingCallbackInterface.php

Line Element Reason
25 SamplingCallbackInterface

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

SamplingRequestHandler.php

Line Element Reason
37 SamplingRequestHandler

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

SamplingMessage.php

Line Element Reason
38 SamplingMessage

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ToolResultContent.php

Line Element Reason
27 ToolResultContent

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ToolUseContent.php

Line Element Reason
22 ToolUseContent

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

LoggingLevel.php

Line Element Reason
25 LoggingLevel

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

SamplingContext.php

Line Element Reason
23 SamplingContext

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ToolChoiceMode.php

Line Element Reason
20 ToolChoiceMode

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ModelHint.php

Line Element Reason
24 ModelHint

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ModelPreferences.php

Line Element Reason
41 ModelPreferences

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

LoggingMessageNotification.php

Line Element Reason
24 LoggingMessageNotification

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

RootsListChangedNotification.php

Line Element Reason
27 RootsListChangedNotification

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

CreateSamplingMessageRequest.php

Line Element Reason
35 CreateSamplingMessageRequest

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ListRootsRequest.php

Line Element Reason
31 ListRootsRequest

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

SetLogLevelRequest.php

Line Element Reason
26 SetLogLevelRequest

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

CreateSamplingMessageResult.php

Line Element Reason
32 CreateSamplingMessageResult

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ListRootsResult.php

Line Element Reason
29 ListRootsResult

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

Root.php

Line Element Reason
30 Root

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

ToolChoice.php

Line Element Reason
23 ToolChoice

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

ClientGateway.php

Line Element Reason
107 ClientGateway::log()

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

148 ClientGateway::sample()

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Integrate with an LLM provider's API directly instead.

262 ClientGateway::listRoots()

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.

SetLogLevelHandler.php

Line Element Reason
34 SetLogLevelHandler

since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.

Search results