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
At the moment all tools exposed by all MCP servers configured in an application are automatically made available to all AI services in that application. This can potentially provide an AI service with tens of tools that it doesn't need and it isn't supposed to use, thus increasing the possibility of hallucinations.
It would be nice to have a chance to selectively decide if a AI service is supposed to use MCP servers and eventually which ones, in the same way to what we currently do for internal tools through the @ToolBox annotation. For instance we could have a similar @McpToolBox annotation taking an array of Strings representing the names of the MCP servers configured in the application.properties, something like
@McpToolBox({"wolfram-llm", "weather"})
where if no server name is provided, it means that we want to use all of them.
The text was updated successfully, but these errors were encountered:
Right, that's much more verbose, but it gives the user more control. One can also develop a custom ToolProvider that provides MCP clients as well as custom tools on top (or also it can filter the tools returned from MCP servers if the user needs to exclude some). Isn't this enough?
At the moment all tools exposed by all MCP servers configured in an application are automatically made available to all AI services in that application. This can potentially provide an AI service with tens of tools that it doesn't need and it isn't supposed to use, thus increasing the possibility of hallucinations.
It would be nice to have a chance to selectively decide if a AI service is supposed to use MCP servers and eventually which ones, in the same way to what we currently do for internal tools through the
@ToolBox
annotation. For instance we could have a similar@McpToolBox
annotation taking an array of Strings representing the names of the MCP servers configured in theapplication.properties
, something like@McpToolBox({"wolfram-llm", "weather"})
where if no server name is provided, it means that we want to use all of them.
The text was updated successfully, but these errors were encountered: