Table of Contents

Method WithAutoRestart

Namespace
LMKit.Mcp.Client
Assembly
LM-Kit.NET.dll

WithAutoRestart(int, TimeSpan?)

Enables automatic restart on unexpected process termination (stdio transport only).

public McpClientBuilder WithAutoRestart(int maxAttempts = 3, TimeSpan? restartDelay = null)

Parameters

maxAttempts int

Maximum restart attempts (0 for unlimited).

restartDelay TimeSpan?

Delay between restart attempts.

Returns

McpClientBuilder

This builder instance for method chaining.