ResourceTemplateHandlerInterface extends ElementHandlerInterface
Contract for explicit resource-template handlers paired with an `Mcp\Schema\ResourceTemplate` definition via `Mcp\Server\Builder::add()`.
Tags
Table of Contents
Methods
- read() : mixed
Methods
read()
public
read(string $uri, array<string, string> $variables, ClientGateway $gateway) : mixed
Parameters
- $uri : string
- $variables : array<string, string>
- $gateway : ClientGateway