MCP PHP SDK

ElicitationRequestHandler implements RequestHandlerInterface

Handler for elicitation requests from the server.

The MCP server may request additional information from the user during tool execution. This handler wraps a user-provided callback that presents the requested schema to the user and returns their response.

Tags
author

Johannes Wachter johannes@sulu.io

Table of Contents

Interfaces

RequestHandlerInterface
Interface for handling requests from the server.

Properties

$callback  : ElicitationCallbackInterface
$logger  : LoggerInterface

Methods

__construct()  : mixed
handle()  : Response<string|int, ElicitResult>|Error
Handle the request and return a response or error.
supports()  : bool
Check if this handler supports the given request.

Properties

Methods

On this page

Search results