github / github/copilot-cli

Too many MCP servers results in continuous compaction

Open
#3,024 2 comments 0 reactions 0 assignees View on GitHub
area:context-memory area:mcp
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.