[Feature Request] Lazy-load MCPs with just-in-time context management and manual approval

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Dec 16, 2025 · closed Dec 17, 2025

Bug Description
We need a just-in-time lazy context loader for MCPs. These are of great use, but they immediately overwhelm the context window if kept loaded all the time. Claude Code should have an option to list available MCPs and only load the ones relevant for the job with prior approval, then once the job is done, ejecting the loaded context for the tool use, so a later re-load would be possible. (this way we can work with a higher context window while still taking advantage of MCPs)

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.70
  • Feedback ID: 535ad15e-ec0c-4ce5-b1a9-d14b37966206

View original on GitHub ↗

4 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/7336
  2. https://github.com/anthropics/claude-code/issues/13700
  3. https://github.com/anthropics/claude-code/issues/6638

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

WAY29 · 10 months ago

Are you looking for: claude-code-skills

cmin764 · 10 months ago

Nice suggestion, to keep in mind for such need in the future!

Meanwhile, this was sufficient for me. And indeed, we can close this issue as duplicate.

github-actions[bot] · 9 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.