Skip to content

Too many MCP servers results in continuous compaction #3024

@adithyabsk

Description

@adithyabsk

Describe the bug

The CLI agent can end up in a degenerate state when you enable too many MCP servers that expand past the available context window of the model in question supporting the harness.

The CLI should detect this state and warn the user. In my case, I ended up with 94k / 128k context window consumed by tools

Affected version

GitHub Copilot CLI 1.0.37.

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions