Skip to content

McpClientOptions

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

Behavioral options shared by all MCP client configurations.

  • RuntimeConfig
optional applicationName?: string;

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

RuntimeConfig.applicationName

optional applicationVersion?: string;

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

RuntimeConfig.applicationVersion

optional disableMcpInstrumentation?: boolean;

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

Disable OpenTelemetry MCP instrumentation.


optional prefix?: string;

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

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


optional toolFilters?: McpToolFilters;

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

Filters controlling which tools this client exposes.


optional tasksConfig?: TasksConfig;

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

Enables automatic execution for legacy task tools. Experimental: subject to change.


optional elicitationCallback?: ElicitationCallback;

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

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:203

When true, connection failures and overlong prefixed names during tool listing are skipped with warnings.


optional logHandler?: (params) => void;

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

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

ParameterType
paramsLoggingMessageNotificationParams

void