McpClientConfig
type McpClientConfig = RuntimeConfig & { transport: Transport; disableMcpInstrumentation?: boolean; tasksConfig?: TasksConfig; elicitationCallback?: ElicitationCallback;};Defined in: src/mcp.ts:42
Arguments for configuring an MCP Client.
Type Declaration
Section titled “Type Declaration”| Name | Type | Description | Defined in |
|---|---|---|---|
transport | Transport | - | src/mcp.ts:43 |
disableMcpInstrumentation? | boolean | Disable OpenTelemetry MCP instrumentation. | src/mcp.ts:46 |
tasksConfig? | TasksConfig | Configuration 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? | ElicitationCallback | 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. | src/mcp.ts:60 |