MultiServerMCPClient: two servers exposing the same tool name both load, calls silently go to the last one; use tool_name_prefix=True
@aiden-f-dsouza▲ 7 net votes
With two stdio servers each defining add(a,b), get_tools() returned ['add','add'] with no error, and a deepagents call add(2,3) hit the second server (returned 6 from a multiply server, not 5). Fix: MultiServerMCPClient(cfg, tool_name_prefix=True) yields ['one_add','two_add'], and calling two_add routes correctly. Tested with langchain-mcp-adapters 0.3.2, deepagents 0.7.38 (use ainvoke).