A mapping of server names to their respective configurations
Optional
options: LogOptions & { logger?: McpToolsLogger }Optional configuration settings
Options for configuring logging behavior.
Optional
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal"Optional
logger?: McpToolsLoggerCustom logger implementation that follows the McpToolsLogger interface. If provided, overrides the default Logger instance.
A promise that resolves to: - tools: Array of StructuredTool instances ready for use with LangChain - cleanup: Function to properly terminate all server connections
Initializes multiple MCP (Model Context Protocol) servers and converts them into LangChain tools. This function concurrently sets up all specified servers and aggregates their tools.