MCP PHP SDK

InputRequiredResult implements ResultInterface

Tells the client the server needs more input before it can finish (MRTR).

The modern era removed server-initiated requests, so the ask travels back in the result and the client re-sends the original call with the answers. The requestState round-trips through the client and is therefore attacker-controlled on return — see RequestStateCodec.

Tags
see
https://modelcontextprotocol.io/specification/2026-07-28/basic/patterns/mrtr
author

Christopher Hertel mail@christopher-hertel.de

Table of Contents

Interfaces

ResultInterface
Base class for all specific MCP result objects (the value of the 'result' field).

Constants

RESULT_TYPE  : mixed = 'input_required'

Properties

$inputRequests  : array<string|int, mixed>
$requestState  : string|null

Methods

__construct()  : mixed
jsonSerialize()  : array{resultType: string, inputRequests?: array, requestState?: string}

Constants

Properties

Methods

jsonSerialize()

public jsonSerialize() : array{resultType: string, inputRequests?: array, requestState?: string}
Return values
array{resultType: string, inputRequests?: array, requestState?: string}
On this page

Search results