How can I disable a specific MCP service for a specific model? #7057

Open
opened 2026-02-16 18:06:02 -05:00 by yindo · 1 comment
Owner

Originally created by @just-ads on GitHub (Jan 21, 2026).

Originally assigned to: @thdxr on GitHub.

Question

I've added the IDEA MCP server, and most models work fine; I can refactor the code using IDEA MCP.
However, when I use google/antigravity-gemini-3-pro, it returns the error only allowed for STRING type.
It only works correctly after disabling IDEA MCP, but this also prevents other models from using IDEA MCP.
So, how should I configure it to disable IDEA MCP only for google/antigravity-gemini-3-pro?

Originally created by @just-ads on GitHub (Jan 21, 2026). Originally assigned to: @thdxr on GitHub. ### Question I've added the IDEA MCP server, and most models work fine; I can refactor the code using IDEA MCP. However, when I use google/antigravity-gemini-3-pro, it returns the error `only allowed for STRING type`. It only works correctly after disabling IDEA MCP, but this also prevents other models from using IDEA MCP. So, how should I configure it to disable IDEA MCP only for google/antigravity-gemini-3-pro?
Author
Owner

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

This issue is related to several existing feature requests and issues. Please check these for additional context:

  • #6024: [FEATURE]: Provider/Model-specific MCP servers - Directly addresses enabling MCP servers conditionally based on selected model or provider
  • #7399: [FEATURE]: Filter which tools are loaded from MCP servers (includeTools/excludeTools) - Allows selective loading of specific MCP tools
  • #8277: [FEATURE]: Lazy/dynamic loading for mcp tools - Addresses context bloat from loading all MCP tools globally

These issues describe the broader architectural feature needed to solve your specific problem of disabling IDEA MCP for google/antigravity-gemini-3-pro while keeping it enabled for other models.

You may want to check if any of these issues have workarounds or follow their progress for a solution.

@github-actions[bot] commented on GitHub (Jan 21, 2026): This issue is related to several existing feature requests and issues. Please check these for additional context: - **#6024**: [FEATURE]: Provider/Model-specific MCP servers - Directly addresses enabling MCP servers conditionally based on selected model or provider - **#7399**: [FEATURE]: Filter which tools are loaded from MCP servers (includeTools/excludeTools) - Allows selective loading of specific MCP tools - **#8277**: [FEATURE]: Lazy/dynamic loading for mcp tools - Addresses context bloat from loading all MCP tools globally These issues describe the broader architectural feature needed to solve your specific problem of disabling IDEA MCP for google/antigravity-gemini-3-pro while keeping it enabled for other models. You may want to check if any of these issues have workarounds or follow their progress for a solution.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7057