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.
Type Declaration
Section titled “Type Declaration”| Name | Type | Description | Defined in |
|---|---|---|---|
transport | McpTransport | - | src/mcp.ts:62 |
disableMcpInstrumentation? | boolean | Disable OpenTelemetry MCP instrumentation. | src/mcp.ts:65 |
tasksConfig? | TasksConfig | Configuration 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? | ElicitationCallback | Callback 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? | boolean | When true, connection failures are logged as warnings instead of throwing. | src/mcp.ts:82 |
logHandler()? | (params) => void | Called when the server emits a log message. Defaults to routing through the Strands logger. | src/mcp.ts:85 |