Proactively initialize connections to all servers. This will be called automatically when methods requiring an active connection (like getTools or getClient) are called, but you can call it directly to ensure all connections are established before using the tools.
When a server fails to connect, the client will throw an error if onConnectionError is "throw",
otherwise it will skip the server and continue with the remaining servers.
initializeConnections(
customTransportOptions: CustomHTTPTransportOptions
): Promise<Record<string, DynamicStructuredTool<ToolInputSchemaBase, any, any, any, string>[]>>| Name | Type | Description |
|---|---|---|
customTransportOptions | CustomHTTPTransportOptions |