You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two parts to it - tool permissions and context management.
Tool Permisions: pretty much the same as the built in tools but with the ones provided from MCPs instead.
Context Management: There's probably a lot that could be done to provide the minimum amount of information needed at all time. In this case, I wouldn't want to have all of the tool descriptions of all my MCP servers provided in all modes.
Can think of many modes I would like to make (like git/gh, research, security, debug, deploy, etc...) that would use different sets of MCPs, and having each mode only have the tool descriptions for what I need it to do sounds really smooth.
Reacted by KiKaraage, Matt Klich, Maximilian Bode, Simon Hackler, sroidl-airup and Axel H.
You can do this now, say I want an agent that does research with context7 but I dont want that mcp to be available for other agents
You can do something like:
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"research": {
"description": "use this agent for reading docs or researching stuff",
"tools": {
"context7*": true
}
}
},
"tools": {
"context7*": false
}
}
So in this configuration I am disabling the context7 tools for all agents besides research
Since this issue was made "modes" have become "agents" so there is a bit of change but this should accomplish what you've requested, lmk if you need further assistance
Activity
[-]Add MCP to modes config[/-][+]Feature Request: Add MCP to modes config[/+]elementalvoid commentedon Aug 4, 2025
This would be wonderful for both Modes and Agents.
rekram1-node commentedon Aug 29, 2025
You can do this now, say I want an agent that does research with context7 but I dont want that mcp to be available for other agents
You can do something like:
{ "$schema": "https://opencode.ai/config.json", "agent": { "research": { "description": "use this agent for reading docs or researching stuff", "tools": { "context7*": true } } }, "tools": { "context7*": false } }So in this configuration I am disabling the context7 tools for all agents besides
researchSince this issue was made "modes" have become "agents" so there is a bit of change but this should accomplish what you've requested, lmk if you need further assistance