Pagination
Cursor and page-based pagination for MCP discovery methods, read_server_logs_and_analytics, and high-cardinality Discord guild listings.
MCP List Method Cursor Pagination
Standard MCP discovery calls (tools/list, resources/list, prompts/list) support opaque cursor pagination per the MCP specification. When a result spans multiple pages, the response includes a nextCursor string; clients pass that exact value back in params.cursor until nextCursor is omitted.
{
"jsonrpc": "2.0",
"id": 50,
"method": "tools/list",
"params": {
"cursor": "eyJvZmZzZXQiOjIwfQ"
}
}Currently Taicket MCP registers 31 tools, 2 resources, and 4 prompts, which typically fit inside a single response page. Clients should still inspect nextCursor rather than assuming single-page responses for forward compatibility.
Paginating Logs, Analytics, and Discovery Lists
Operational datasets queried by read_server_logs_and_analytics (moderation cases, AutoMod triggers, AutoBan logs, Anti-Nuke incidents, verification logs, interview records, ticket stats, and recent MCP audit logs) enforce bounded pagination to protect response latency and token budgets.
| Tool | Pagination Parameters | Default / Max Limit | Sort Order |
|---|---|---|---|
| read_server_logs_and_analytics | page (1-based) or cursor (opaque), limit, timeframe | Default 25, max 100 items per page | Newest first (timestamp desc, _id desc) |
| get_discord_servers | page, limit, search | Default 50, max 100 guilds per page | Bot-installed first, then alphabetical by guild name |
| get_server_topology | channelTypeFilter, includeRoles, includeEmojis | Full active guild topology (Discord cap: 500 channels, 250 roles) | Channels ascending by position; roles descending by hierarchy |
| get_setup_status | auditLimit | Default 15, max 50 recent MCP audit entries | Newest audit sequence first |
{
"jsonrpc": "2.0",
"id": 51,
"method": "tools/call",
"params": {
"name": "read_server_logs_and_analytics",
"arguments": {
"guildId": "1189452019384729600",
"category": "moderation_logs",
"page": 1,
"limit": 25
}
}
}{
"ok": true,
"guildId": "1189452019384729600",
"category": "moderation_logs",
"pagination": {
"page": 1,
"limit": 25,
"total": 142,
"hasMore": true,
"nextPage": 2,
"nextCursor": "eyJ0cyI6MTc2NDk5MDAwMDAwMCwiaWQiOiI2NzVhMWIyYzNkNGU1ZjYwNzE4MjkwMDEifQ"
},
"items": [
{
"caseId": "MOD-1042",
"action": "timeout",
"targetUserId": "901234567890123456",
"moderatorId": "701234567890123456",
"reason": "Repeated spam links in general chat",
"createdAt": "2026-12-05T12:15:00.000Z"
}
]
}Cursor Safety & Client Iteration Pattern
All cursors are treated as opaque base64url strings validated against strict schema fields (timestamp and ObjectId). Raw MongoDB query operators ($gt, $where, $regex, $ne) are never accepted from client input, and every returned page passes through field-level RBAC and privacy-safe DTO projections.
export async function fetchAllLogPages(
callTool: (name: string, args: Record<string, unknown>) => Promise<any>,
guildId: string,
category: string,
maxPages = 5
): Promise<unknown[]> {
const collected: unknown[] = [];
let cursor: string | undefined;
for (let pageIndex = 0; pageIndex < maxPages; pageIndex++) {
const result = await callTool('read_server_logs_and_analytics', {
guildId,
category,
limit: 50,
...(cursor ? { cursor } : { page: 1 }),
});
const payload = result.structuredContent;
if (!payload?.ok || !Array.isArray(payload.items)) {
break;
}
collected.push(...payload.items);
if (!payload.pagination?.hasMore || !payload.pagination?.nextCursor) {
break;
}
cursor = payload.pagination.nextCursor;
}
return collected;
}