Skip to content

McpClientConfig

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

Defined in: src/mcp.ts:52

Arguments for configuring an MCP Client.

NameTypeDescriptionDefined in
transportMcpTransport-src/mcp.ts:53
disableMcpInstrumentation?booleanDisable OpenTelemetry MCP instrumentation.src/mcp.ts:56
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:63
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:70