Language

ToolOptions.McpClientInitializationTimeoutSeconds Property

Definition

Gets or sets the timeout in seconds for MCP client initialization. This includes the time for the MCP protocol handshake (initialize/initialized exchange) and the underlying HTTP connection. Increase this value if the MCP server performs slow operations during initialization (e.g., token exchanges in test environments). When null, the MCP SDK default timeout is used. Valid range: 1 to 600 seconds. Values outside this range will throw ArgumentOutOfRangeException.

public int? McpClientInitializationTimeoutSeconds { get; set; }
member this.McpClientInitializationTimeoutSeconds : Nullable<int> with get, set
Public Property McpClientInitializationTimeoutSeconds As Nullable(Of Integer)

Property Value

Applies to