McpClientOptions
Defined in: src/mcp/client.ts:99
Behavioral options shared by all MCP client configurations.
Extends
Section titled “Extends”RuntimeConfig
Properties
Section titled “Properties”applicationName?
Section titled “applicationName?”optional applicationName?: string;Defined in: src/mcp/client.ts:34
Inherited from
Section titled “Inherited from”RuntimeConfig.applicationNameapplicationVersion?
Section titled “applicationVersion?”optional applicationVersion?: string;Defined in: src/mcp/client.ts:35
Inherited from
Section titled “Inherited from”RuntimeConfig.applicationVersiondisableMcpInstrumentation?
Section titled “disableMcpInstrumentation?”optional disableMcpInstrumentation?: boolean;Defined in: src/mcp/client.ts:101
Disable OpenTelemetry MCP instrumentation.
prefix?
Section titled “prefix?”optional prefix?: string;Defined in: src/mcp/client.ts:104
Prefix for agent-facing tool names, applied as <prefix>_<toolName>.
toolFilters?
Section titled “toolFilters?”optional toolFilters?: McpToolFilters;Defined in: src/mcp/client.ts:107
Filters controlling which tools this client exposes.
tasksConfig?
Section titled “tasksConfig?”optional tasksConfig?: TasksConfig;Defined in: src/mcp/client.ts:115
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.
elicitationCallback?
Section titled “elicitationCallback?”optional elicitationCallback?: ElicitationCallback;Defined in: src/mcp/client.ts:122
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.
continueOnError?
Section titled “continueOnError?”optional continueOnError?: boolean;Defined in: src/mcp/client.ts:125
When true, connection failures and overlong prefixed names during tool listing are skipped with warnings.
logHandler?
Section titled “logHandler?”optional logHandler?: (params) => void;Defined in: src/mcp/client.ts:128
Called when the server emits a log message. Defaults to routing through the Strands logger.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
params | LoggingMessageNotificationParams |
Returns
Section titled “Returns”void