Skip to content

Reduce Repo Assist GitHub MCP tool scope#7794

Merged
lpcox merged 3 commits into
mainfrom
copilot/aw-increase-ai-credits-limit
Jun 19, 2026
Merged

Reduce Repo Assist GitHub MCP tool scope#7794
lpcox merged 3 commits into
mainfrom
copilot/aw-increase-ai-credits-limit

Conversation

Copilot AI commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Repo Assist exceeded its per-run AI credit budget because the workflow was loading the full GitHub MCP tool surface into context. This change narrows the workflow to the GitHub toolsets Repo Assist actually uses, reducing ambient context without changing its intended capabilities.

  • Scope reduction

    • Replace toolsets: [all] in the Repo Assist workflow source with a targeted set:
      • default
      • search
      • discussions
      • actions
  • Compiled workflow alignment

    • Update the generated lock file so the runtime MCP configuration matches the narrowed source configuration.
    • The compiled GitHub MCP toolset list now expands default explicitly instead of requesting all.
  • Effect

    • Keeps issue, PR, repo, search, discussion, and Actions access available to Repo Assist.
    • Removes unrelated GitHub tool definitions from the workflow context to lower token/AI credit overhead.
tools:
  github:
    toolsets: [default, search, discussions, actions]
    allowed-repos: ["github/*"]
    min-integrity: unapproved

GitHub Advanced Security started work on behalf of lpcox June 19, 2026 15:36 View session
GitHub Advanced Security finished work on behalf of lpcox June 19, 2026 15:37
GitHub Advanced Security started work on behalf of lpcox June 19, 2026 15:41 View session
GitHub Advanced Security finished work on behalf of lpcox June 19, 2026 15:43
GitHub Advanced Security started work on behalf of lpcox June 19, 2026 15:43 View session
Copilot AI changed the title [WIP] Increase max AI credits in workflow Reduce Repo Assist GitHub MCP tool scope Jun 19, 2026
Copilot AI requested a review from lpcox June 19, 2026 15:44
Copilot finished work on behalf of lpcox June 19, 2026 15:44
GitHub Advanced Security finished work on behalf of lpcox June 19, 2026 15:45
@lpcox lpcox marked this pull request as ready for review June 19, 2026 16:20
Copilot AI review requested due to automatic review settings June 19, 2026 16:20

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.

Pull request overview

This PR narrows the GitHub MCP tool surface available to the Repo Assist workflow to reduce per-run AI credit usage, while preserving the set of GitHub capabilities Repo Assist relies on.

Changes:

  • Updated Repo Assist workflow source to replace toolsets: [all] with toolsets: [default, search, discussions, actions].
  • Updated the compiled lock workflow to align runtime MCP configuration by expanding toolsets explicitly (via GITHUB_TOOLSETS) instead of requesting all.
Show a summary per file
File Description
.github/workflows/repo-assist.md Restricts the GitHub MCP toolsets loaded into context for Repo Assist.
.github/workflows/repo-assist.lock.yml Aligns compiled/runtime MCP env (GITHUB_TOOLSETS) with the narrower toolset selection.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@lpcox lpcox merged commit f57e286 into main Jun 19, 2026
46 checks passed
@lpcox lpcox deleted the copilot/aw-increase-ai-credits-limit branch June 19, 2026 18:45
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.

3 participants