McpServer.setPageSize

Set the maximum number of items returned per */list page (server/utilities/pagination). When size > 0, tools/list, resources/list, resources/templates/list and prompts/list return at most size items per response and emit an opaque nextCursor whenever more results remain; the client passes that cursor back as params.cursor to fetch the next page (the bundled McpClient list helpers follow these cursors automatically). A size of 0 (the default) disables pagination: each list returns its full contents in a single response with no cursor.

class McpServer
@safe
void
setPageSize
(
size_t size
)