MCP PHP SDK

RootsCallbackInterface

Contract for callbacks used by 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.

Implementations return the list of filesystem roots the client exposes when requested by the server.

Tags
author

Johannes Wachter johannes@sulu.io

Table of Contents

Methods

__invoke()  : ListRootsResult

Methods

On this page

Search results