- Using multiple
MCPTools
instances - Using a single
MultiMCPTools
instance
Using multiple MCPTools
instances
multiple_mcp_servers.py
Using a single MultiMCPTools
instance
multiple_mcp_servers.py
Allowing partial failures with MultiMCPTools
If you are connecting to multiple MCP servers using the MultiMCPTools
class, an error will be raised by default if connection to any MCP server fails.
If you want to avoid raising in that case, you can set the allow_partial_failures
parameter to True
.
This is useful if you are connecting to MCP servers that are not always available, and don’t want to exit your program if one of the servers is not available.