PaginatedEndpoint
A descriptor for a paginated RPC endpoint, tying together:
A paginated REQ request type (e.g. sh.ondr.mcp4k.schema.prompts.ListPromptsRequest),
A RES result type (e.g. sh.ondr.mcp4k.schema.prompts.ListPromptsResult),
A requestFactory function to build each request page by page,
A transform function converting the returned RES into higher-level ITEMS.
To see an example implementation of this interface, see sh.ondr.mcp4k.schema.prompts.ListPromptsRequest.Companion.
Parameters
REQ
The concrete request class that implements JsonRpcRequest.
RES
The paginated result class that implements PaginatedResult.
ITEMS
The type of items your application wants to consume or emit for each page.