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
{{ message }}
Repository navigation
[feature request]: ability to dynamic turn on mcp server for specific agent #2953
Hmm, my motivation for this was to mitigate long startup times for tools that we only need when working on the front end portion of our repo. Is there a better way of doing that? My only other solution was to move my opencode configs down into the FE section but then I can't actually use them when working across the back and the front end having started opencode from a higher directory (or can I)?
I guess I could explicitly pass the config in the opencode command but no one's going to obey my complicated instructions if that's what I make them do.
@zelifish rn there isn't a better way of doing it tbh, in opentui version there will probably be a mechanism to enable and disable mcp servers on the fly but rn it isn't super easy
changed the title [-]Can't enable a disabled mcp server in an agent markdown definition[/-][+][feature request]: ability to dynamic turn on and off mcp server [/+]on Oct 3, 2025
changed the title [-][feature request]: ability to dynamic turn on and off mcp server [/-][+][feature request]: ability to dynamic turn on mcp server for specific agent[/+]on Oct 3, 2025
@benceferdinandy-signifyd if you need it specifically for this issue, i can't really give a timeline on when this will be addressed as it is a lower priority rn
As for opentui version shipping in general id say next week probs
Reacted by Bence Ferdinandy
benceferdinandy-signifyd commented on Oct 16, 2025
@rekram1-node the suggested approach doesn't seem to work for me. I have the GitHub MCP server set up and enabled, tools in the global configuration includes "github*": false and the subagent markdown includes tools: "github*": true, but the agent doesn't have access to the tools. If I comment out the global tools line everything works. What am I missing? 🤔
Edit:
Ah, it looks like configuring the agent tools in opencode.js works in the way described above. Is this a markdown limitation?
Activity
github-actions commentedon Oct 3, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case with disabled MCP servers not being accessible through agent tool configurations.
rekram1-node commentedon Oct 3, 2025
@zelifish so here is what you need to do:
enabledbeing false means the MCP server won't ever turn on at all so it isn't possible to give to llmzelifish commentedon Oct 3, 2025
Hmm, my motivation for this was to mitigate long startup times for tools that we only need when working on the front end portion of our repo. Is there a better way of doing that? My only other solution was to move my opencode configs down into the FE section but then I can't actually use them when working across the back and the front end having started opencode from a higher directory (or can I)?
I guess I could explicitly pass the config in the opencode command but no one's going to obey my complicated instructions if that's what I make them do.
rekram1-node commentedon Oct 3, 2025
@zelifish rn there isn't a better way of doing it tbh, in opentui version there will probably be a mechanism to enable and disable mcp servers on the fly but rn it isn't super easy
[-]Can't enable a disabled mcp server in an agent markdown definition[/-][+][feature request]: ability to dynamic turn on and off mcp server [/+][-][feature request]: ability to dynamic turn on and off mcp server [/-][+][feature request]: ability to dynamic turn on mcp server for specific agent[/+]benceferdinandy-signifyd commentedon Oct 16, 2025
@rekram1-node do you have an estimate for opentui release?
rekram1-node commentedon Oct 16, 2025
@benceferdinandy-signifyd if you need it specifically for this issue, i can't really give a timeline on when this will be addressed as it is a lower priority rn
As for opentui version shipping in general id say next week probs
benceferdinandy-signifyd commentedon Oct 16, 2025
Just generally opentui, thanks!
emilford commentedon Nov 21, 2025
@rekram1-node the suggested approach doesn't seem to work for me. I have the GitHub MCP server set up and enabled, tools in the global configuration includes
"github*": falseand the subagent markdown includestools: "github*": true, but the agent doesn't have access to the tools. If I comment out the global tools line everything works. What am I missing? 🤔Edit:
Ah, it looks like configuring the agent tools in opencode.js works in the way described above. Is this a markdown limitation?
rekram1-node commentedon Nov 24, 2025
@emilford this is what it'd look like in markdown:
lcswillems commentedon Dec 11, 2025
@rekram1-node The issue is that the MCP server will appear in all sessions for all agents even though the agents are not allowed to use it...
I've opened another issue that focuses on this context issue. This is very annoying...
#5373