Skip to content

McpClientConfig

type McpClientConfig = RuntimeConfig & {
transport: McpTransport;
disableMcpInstrumentation?: boolean;
tasksConfig?: TasksConfig;
elicitationCallback?: ElicitationCallback;
failOpen?: boolean;
logHandler?: (params) => void;
};

Defined in: src/mcp.ts:61

Arguments for configuring an MCP Client.

NameTypeDescriptionDefined in
transportMcpTransport-src/mcp.ts:62
disableMcpInstrumentation?booleanDisable OpenTelemetry MCP instrumentation.src/mcp.ts:65
tasksConfig?TasksConfigConfiguration for task-augmented tool execution (experimental). When provided (even as empty object), enables MCP task-based tool invocation. When undefined, tools are called directly without task management.src/mcp.ts:72
elicitationCallback?ElicitationCallbackCallback to handle server-initiated elicitation requests. When provided, the client advertises elicitation support (form + url modes) and routes incoming elicitation requests to this callback.src/mcp.ts:79
failOpen?booleanWhen true, connection failures are logged as warnings instead of throwing.src/mcp.ts:82
logHandler()?(params) => voidCalled when the server emits a log message. Defaults to routing through the Strands logger.src/mcp.ts:85