Skip to content

McpClientOptions

Defined in: src/mcp/client.ts:97

Behavioral options shared by all MCP client configurations.

  • RuntimeConfig
optional applicationName?: string;

Defined in: src/mcp/client.ts:32

RuntimeConfig.applicationName

optional applicationVersion?: string;

Defined in: src/mcp/client.ts:33

RuntimeConfig.applicationVersion

optional disableMcpInstrumentation?: boolean;

Defined in: src/mcp/client.ts:99

Disable OpenTelemetry MCP instrumentation.


optional prefix?: string;

Defined in: src/mcp/client.ts:102

Prefix for agent-facing tool names, applied as <prefix>_<toolName>.


optional toolFilters?: McpToolFilters;

Defined in: src/mcp/client.ts:105

Filters controlling which tools this client exposes.


optional tasksConfig?: TasksConfig;

Defined in: src/mcp/client.ts:113

Configuration for task-augmented tool execution (experimental).

Temporarily unavailable while task support is rebuilt on the MCP tasks extension (https://github.com/strands-agents/harness-sdk/issues/1659). When set, callTool throws.


optional elicitationCallback?: ElicitationCallback;

Defined in: src/mcp/client.ts:120

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/client.ts:123

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


optional logHandler?: (params) => void;

Defined in: src/mcp/client.ts:126

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

ParameterType
paramsLoggingMessageNotificationParams

void