Skip to content

refactor: consolidate MCP pagination guidance via shared/mcp-pagination.md - #49051

Merged
pelikhan merged 2 commits into
mainfrom
copilot/refactoring-consolidate-mcp-pagination
Jul 30, 2026
Merged

refactor: consolidate MCP pagination guidance via shared/mcp-pagination.md#49051
pelikhan merged 2 commits into
mainfrom
copilot/refactoring-consolidate-mcp-pagination

Conversation

Copilot AI commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

21 workflows were independently re-deriving pagination guidance for GitHub MCP tool calls (perPage values, oversized-response handling) without importing the existing shared/mcp-pagination.md component — leading to inconsistent thresholds and duplicated prose.

Changes

  • 19 workflow .md files: Added - shared/mcp-pagination.md as the first entry in the imports: section, establishing a single source of truth for the 25k-token MCP response limit and recommended perPage values
  • 19 workflow .lock.yml files: Recompiled to reflect updated imports

Example

imports:
  - shared/mcp-pagination.md       # ← added
  - shared/github-guard-policy.md
  - shared/reporting.md

Scope

Workflows with GitHub MCP toolsets configured and existing per_page/perPage references were updated. Excluded: agentic-token-optimizer.md (explicitly no MCP tools), copilot-centralization-optimizer.md and release.md (no GitHub toolsets), and smoke test workflows (test-specific perPage values are assertions, not guidance).

Existing workflow-specific perPage values (e.g. perPage: 5 in org-health-report, perPage=1 in github-mcp-structural-analysis) are retained — they are precise operational instructions, not general prose.

…oolsets

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor to consolidate MCP pagination guidance into shared file refactor: consolidate MCP pagination guidance via shared/mcp-pagination.md Jul 30, 2026
Copilot AI requested a review from pelikhan July 30, 2026 06:30
@pelikhan
pelikhan marked this pull request as ready for review July 30, 2026 06:31
Copilot AI review requested due to automatic review settings July 30, 2026 06:31
@pelikhan
pelikhan merged commit 9a9a67f into main Jul 30, 2026
@pelikhan
pelikhan deleted the copilot/refactoring-consolidate-mcp-pagination branch July 30, 2026 06:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The imports and generated lock-file updates are consistent, complete, and introduce no identified issues.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Centralizes MCP pagination guidance across 19 GitHub Agentic Workflows.

Changes:

  • Added shared/mcp-pagination.md as the first import.
  • Recompiled corresponding workflow lock files.
File summaries
File Description
.github/workflows/weekly-blog-post-writer.md Adds shared pagination guidance.
.github/workflows/weekly-blog-post-writer.lock.yml Updates compiled workflow.
.github/workflows/uk-ai-operational-resilience.md Adds shared pagination guidance.
.github/workflows/uk-ai-operational-resilience.lock.yml Updates compiled workflow.
.github/workflows/stale-repo-identifier.md Adds shared pagination guidance.
.github/workflows/stale-repo-identifier.lock.yml Updates compiled workflow.
.github/workflows/repo-audit-analyzer.md Adds shared pagination guidance.
.github/workflows/repo-audit-analyzer.lock.yml Updates compiled workflow.
.github/workflows/pr-sous-chef.md Adds shared pagination guidance.
.github/workflows/pr-sous-chef.lock.yml Updates compiled workflow.
.github/workflows/org-health-report.md Adds shared pagination guidance.
.github/workflows/org-health-report.lock.yml Updates compiled workflow.
.github/workflows/issue-monster.md Adds shared pagination guidance.
.github/workflows/issue-monster.lock.yml Updates compiled workflow.
.github/workflows/github-mcp-structural-analysis.md Adds shared pagination guidance.
.github/workflows/github-mcp-structural-analysis.lock.yml Updates compiled workflow.
.github/workflows/design-decision-gate.md Adds shared pagination guidance.
.github/workflows/design-decision-gate.lock.yml Updates compiled workflow.
.github/workflows/deployment-incident-monitor.md Adds shared pagination guidance.
.github/workflows/deployment-incident-monitor.lock.yml Updates compiled workflow.
.github/workflows/dependabot-burner.md Adds shared pagination guidance.
.github/workflows/dependabot-burner.lock.yml Updates compiled workflow.
.github/workflows/daily-cli-performance.md Adds shared pagination guidance.
.github/workflows/daily-cli-performance.lock.yml Updates compiled workflow.
.github/workflows/daily-ambient-context-optimizer.md Adds shared pagination guidance.
.github/workflows/daily-ambient-context-optimizer.lock.yml Updates compiled workflow.
.github/workflows/copilot-session-insights.md Adds shared pagination guidance.
.github/workflows/copilot-session-insights.lock.yml Updates compiled workflow.
.github/workflows/code-simplifier.md Adds shared pagination guidance.
.github/workflows/code-simplifier.lock.yml Updates compiled workflow.
.github/workflows/code-scanning-fixer.md Adds shared pagination guidance.
.github/workflows/code-scanning-fixer.lock.yml Updates compiled workflow.
.github/workflows/bot-detection.md Adds shared pagination guidance.
.github/workflows/bot-detection.lock.yml Updates compiled workflow.
.github/workflows/aw-failure-investigator.md Adds shared pagination guidance.
.github/workflows/aw-failure-investigator.lock.yml Updates compiled workflow.
.github/workflows/auto-triage-issues.md Adds shared pagination guidance.
.github/workflows/auto-triage-issues.lock.yml Updates compiled workflow.
Review details
  • Files reviewed: 38/38 changed files
  • Comments generated: 0
  • Review effort level: Medium

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.1

@github-actions github-actions Bot mentioned this pull request Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[refactoring] Consolidate manual MCP pagination guidance via shared/mcp-pagination.md

3 participants