{
  "slug": "github-mcp-server-list-label-supports-cursor-pagination-b91b3333790d",
  "title": "github-mcp-server list_label supports cursor pagination",
  "tools": [
    "github-mcp-server"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-21T09:52:29.000Z",
  "announced_at": "2026-10-21T09:52:29.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing or triaging a repository that may have more than 100 labels, call `list_label` with `perPage` and keep fetching pages using each response’s cursor until no further page is indicated. This lets you check all returned labels before deciding whether one exists.",
    "examples": [
      "list_label({\"owner\":\"<owner>\",\"repo\":\"<repo>\",\"perPage\":100})",
      "list_label({\"owner\":\"<owner>\",\"repo\":\"<repo>\",\"perPage\":100,\"after\":\"<nextCursor from previous response pageInfo>\"})"
    ],
    "gotchas": [
      "Version: v2.0.3",
      "owner (required): Repository owner username or organization name.",
      "repo (required): Repository name.",
      "perPage: Results per page; 1–100. Defaults to 100 for this tool.",
      "after: Pagination cursor; use the cursor from the previous response.",
      "Prerequisite: The `list_label` tool requires OAuth scope `repo`.",
      "`perPage` accepts values from 1 to 100.",
      "Repositories with up to 100 labels still receive all labels in one call by default."
    ]
  },
  "why_it_matters": "When reviewing or triaging a repository with more than 100 labels, retrieve all labels before deciding whether a label exists.",
  "before": "The tool made one `labels(first: 100)` query and returned `labels` and `totalCount`; labels beyond the first 100 were not returned.",
  "sources": [
    "https://github.com/github/github-mcp-server/releases/tag/v2.0.3",
    "https://github.com/github/github-mcp-server/pull/3505",
    "https://github.com/github/github-mcp-server/blob/v2.0.3/README.md"
  ],
  "rank": 0.99047,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261026-04",
    "verdict_id": "daily-20261026-04:daily-20261026-04-37519bebf92178f9-0:gate",
    "evidence_hash": "c19e0ea8067d8d857b6574f19b82687c46a4dcb8e9d60d1b31ab2d93d3e71f92"
  },
  "review": {
    "draft_hash": "8681ef1f45783a00621b2d249ddbd0f69244db4af7ababf53533738d8c64ac29",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-21T09:52:29.000Z",
    "decision": "daily-20261026-04:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.99 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
