[FEATURE]: Let LLM enable MCP on demand, default all MCPs off #4515

Open
opened 2026-02-16 17:44:26 -05:00 by yindo · 2 comments
Owner

Originally created by @imqqmi on GitHub (Jan 9, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

MCPs can increase the agent prompt significantly while oftentimes they're not even used in all sessions. Similar to skills, add (generate?) short descriptions of the MCPs and let the LLM enable them for the current session so that disabled MCPs can be activated on demand. Custom agent prompts by users and skills can also instruct the LLM to enable and use a certain MCP when the situation calls for it.

ie:

  • a user tasks the LLM to create unit tests for laravel 12 using pest.
  • LLM doesn't know pest so it creates an older version of PHPUnit compatible tests
  • Deprecation warnings ensue
  • User prompts to fix the deprecation issues with context7, but it's as yet disabled.
  • LLM enables context7, reads the instructions from the MCP and queries it for PHPUnit to Pest migration instructions
  • LLM fixes issues and the tests are now best practice compliant.

This way, having a large set of MCP servers doesn't give you the penalty of a overly large system prompt, saving costly tokens and making more efficient use of the context so that the LLM doesn't get confused, improving the general coding experience and code quality.

Originally created by @imqqmi on GitHub (Jan 9, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request MCPs can increase the agent prompt significantly while oftentimes they're not even used in all sessions. Similar to skills, add (generate?) short descriptions of the MCPs and let the LLM enable them for the current session so that disabled MCPs can be activated on demand. Custom agent prompts by users and skills can also instruct the LLM to enable and use a certain MCP when the situation calls for it. ie: - a user tasks the LLM to create unit tests for laravel 12 using pest. - LLM doesn't know pest so it creates an older version of PHPUnit compatible tests - Deprecation warnings ensue - User prompts to fix the deprecation issues with context7, but it's as yet disabled. - LLM enables context7, reads the instructions from the MCP and queries it for PHPUnit to Pest migration instructions - LLM fixes issues and the tests are now best practice compliant. This way, having a large set of MCP servers doesn't give you the penalty of a overly large system prompt, saving costly tokens and making more efficient use of the context so that the LLM doesn't get confused, improving the general coding experience and code quality.
yindo added the discussion label 2026-02-16 17:44:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7406: [FEATURE]: Support MCP-CLI for on-demand loading of MCP tools for reduced token consumption - This directly addresses the same concern about reducing token consumption by enabling MCP tools on demand instead of loading them all by default.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #7406: [FEATURE]: Support MCP-CLI for on-demand loading of MCP tools for reduced token consumption - This directly addresses the same concern about reducing token consumption by enabling MCP tools on demand instead of loading them all by default. Feel free to ignore if none of these address your specific case.
Author
Owner

@imqqmi commented on GitHub (Jan 9, 2026):

It's the same as #7406, though in my issue, the description is in the issue itself, not a link to a reddit post.

@imqqmi commented on GitHub (Jan 9, 2026): It's the same as #7406, though in my issue, the description is in the issue itself, not a link to a reddit post.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4515