| Name | Type | Description |
|---|---|---|
connections | dict[str, Connection] | None | Default: NoneA |
callbacks | Callbacks | None | Default: NoneOptional callbacks for handling notifications and events. |
tool_interceptors | list[ToolCallInterceptor] | None | Default: None |
tool_name_prefix | bool | Default: False |
| Name | Type |
|---|---|
| connections | dict[str, Connection] | None |
| callbacks | Callbacks | None |
| tool_interceptors | list[ToolCallInterceptor] | None |
| tool_name_prefix | bool |
Client for connecting to multiple MCP servers.
Loads LangChain-compatible tools, prompts and resources from MCP servers.
Optional list of tool call interceptors for modifying requests and responses.
If True, tool names are prefixed with the server name
using an underscore separator (e.g., "weather_search" instead of
"search"). This helps avoid conflicts when multiple servers have tools
with the same name. Defaults to False.