refactor: consolidate MCP pagination guidance via shared/mcp-pagination.md - #49051
Merged
Conversation
…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
pelikhan
marked this pull request as ready for review
July 30, 2026 06:31
Contributor
There was a problem hiding this comment.
🟢 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.mdas 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.
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdcomponent — leading to inconsistent thresholds and duplicated prose.Changes
.mdfiles: Added- shared/mcp-pagination.mdas the first entry in theimports:section, establishing a single source of truth for the 25k-token MCP response limit and recommendedperPagevalues.lock.ymlfiles: Recompiled to reflect updated importsExample
Scope
Workflows with GitHub MCP toolsets configured and existing
per_page/perPagereferences were updated. Excluded:agentic-token-optimizer.md(explicitly no MCP tools),copilot-centralization-optimizer.mdandrelease.md(no GitHub toolsets), and smoke test workflows (test-specific perPage values are assertions, not guidance).Existing workflow-specific
perPagevalues (e.g.perPage: 5inorg-health-report,perPage=1ingithub-mcp-structural-analysis) are retained — they are precise operational instructions, not general prose.