-
|
Hi, within my workflow I'm trying to set up a dedicated Kubernetes subagent that has access to an MCP server that provides it tools to query information about my Kubernetes clusters. But I want to enable the MCP globally since it's not useful for the other agents (code, plan, explorer, etc). Currently the
Is there a pattern that I'm missing, otherwise I could put in a feature request for this. Thanks in advance for your time and attention! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
@nineluj you could have something like: {
"agent": {
"code": {"toolCall": {"approval": {"deny": {"k8s-mcp": {}}}}},
"plan": {"toolCall": {"approval": {"deny": {"k8s-mcp": {}}}}},
"kubernetes": {"mode": "subagent", ...} // sees k8s-mcp normally
}
}That would still offer the tool but when used it would be denied, but I get is not the ideal c/c @zikajk |
Beta Was this translation helpful? Give feedback.
-
|
Done, next release will support MCP server names and regexes in {
"agent": {
"code": {"disabledTools": ["k8s-mcp"]},
"plan": {"disabledTools": ["k8s-mcp"]}
}
}You still set it per agent, but a server name entry covers all its tools, current and future. |
Beta Was this translation helpful? Give feedback.
Done, next release will support MCP server names and regexes in
disabledTools, anddisabledToolsin agent markdown frontmatter:{ "agent": { "code": {"disabledTools": ["k8s-mcp"]}, "plan": {"disabledTools": ["k8s-mcp"]} } }You still set it per agent, but a server name entry covers all its tools, current and future.