[FEATURE]: Add parameter to not run any MCP server #2605

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

Originally created by @kud on GitHub (Nov 5, 2025).

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

It would be great to be able to pass a parameter to disable mcp servers while running a command, as using MCP servers could be overwhelming for specific tasks.

I would like to be able to run like opencode --disable-mcp run "say hello" for instance.

Originally created by @kud on GitHub (Nov 5, 2025). ### 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 It would be great to be able to pass a parameter to disable mcp servers while running a command, as using MCP servers could be overwhelming for specific tasks. I would like to be able to run like `opencode --disable-mcp run "say hello"` for instance.
yindo added the discussion label 2026-02-16 17:36:25 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 5, 2025):

yeah i think there is something to this, I remember Adam was making an alias for opencode on his machine so he could do things like:

“oc kill :3003 process”

and itd do it really fast but the mcp and other bootstrapping actions caused startup and tear down to take needlessly long

I think we have an environment var you can use

@rekram1-node commented on GitHub (Nov 5, 2025): yeah i think there is something to this, I remember Adam was making an alias for opencode on his machine so he could do things like: “oc kill :3003 process” and itd do it really fast but the mcp and other bootstrapping actions caused startup and tear down to take needlessly long I think we have an environment var you can use
Author
Owner

@kud commented on GitHub (Nov 29, 2025):

This is how copilot deals with that:

  # Allow all but one specific tool from MCP server with name "MyMCP"
  $ copilot --deny-tool 'MyMCP(denied_tool)' --allow-tool 'MyMCP'
@kud commented on GitHub (Nov 29, 2025): This is how copilot deals with that: ``` # Allow all but one specific tool from MCP server with name "MyMCP" $ copilot --deny-tool 'MyMCP(denied_tool)' --allow-tool 'MyMCP' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2605