ToolOptions.McpClientInitializationTimeoutSeconds Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)