Skip to content

McpClientConfig

type McpClientConfig = RuntimeConfig & {
transport: Transport;
disableMcpInstrumentation?: boolean;
tasksConfig?: TasksConfig;
elicitationCallback?: ElicitationCallback;
};

Defined in: src/mcp.ts:42

Arguments for configuring an MCP Client.

NameTypeDescriptionDefined in
transportTransport-src/mcp.ts:43
disableMcpInstrumentation?booleanDisable OpenTelemetry MCP instrumentation.src/mcp.ts:46
tasksConfig?TasksConfigConfiguration 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:53
elicitationCallback?ElicitationCallbackCallback 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:60