Skip to content

McpClientOptions

Defined in: src/mcp.ts:79

Behavioral options shared by all MCP client configurations.

  • RuntimeConfig
optional applicationName?: string;

Defined in: src/mcp.ts:33

RuntimeConfig.applicationName

optional applicationVersion?: string;

Defined in: src/mcp.ts:34

RuntimeConfig.applicationVersion

optional disableMcpInstrumentation?: boolean;

Defined in: src/mcp.ts:81

Disable OpenTelemetry MCP instrumentation.


optional tasksConfig?: TasksConfig;

Defined in: src/mcp.ts:88

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.


optional elicitationCallback?: ElicitationCallback;

Defined in: src/mcp.ts:95

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.


optional continueOnError?: boolean;

Defined in: src/mcp.ts:98

When true, connection failures are logged as warnings instead of throwing.


optional logHandler?: (params) => void;

Defined in: src/mcp.ts:101

Called when the server emits a log message. Defaults to routing through the Strands logger.

ParameterType
paramsLoggingMessageNotificationParams

void