Class McpRestartPolicy

Assembly: redb.Route.Llm.Mcp.dll

Restart policy for an MCP stdio server.

public sealed class McpRestartPolicy

Inheritance

Object→McpRestartPolicy

Properties

Backoff

Backoff schedule applied between restarts. Default: 1s, 3s, 10s.

public IReadOnlyList<TimeSpan> Backoff { get; init; }

Default

Default policy: 3 attempts at 1s, 3s, 10s.

public static McpRestartPolicy Default { get; }

MaxAttempts

How many auto-restart attempts before giving up. Default 3.

public int MaxAttempts { get; init; }

None

Disable auto-restart entirely.

public static McpRestartPolicy None { get; }