[MCP] Prefix MCP tools names with mcp__ (#5309)
This should make it more clear that specific tools come from MCP servers. #4806 requested that we add the server name but we already do that. Fixes #4806
This commit is contained in:
@@ -1001,7 +1001,7 @@ pub(crate) fn new_mcp_tools_output(
|
||||
}
|
||||
|
||||
for (server, cfg) in config.mcp_servers.iter() {
|
||||
let prefix = format!("{server}__");
|
||||
let prefix = format!("mcp__{server}__");
|
||||
let mut names: Vec<String> = tools
|
||||
.keys()
|
||||
.filter(|k| k.starts_with(&prefix))
|
||||
|
||||
Reference in New Issue
Block a user