Property StartupDelay
StartupDelay
Gets or sets the delay after starting the process before sending the first message.
public TimeSpan StartupDelay { get; set; }
Property Value
- TimeSpan
A delay to allow the subprocess to initialize. Default is 100 milliseconds.
Remarks
Some MCP servers need time to initialize (e.g., loading modules, establishing database connections). This delay prevents sending messages before the server is ready to receive them.
If your server is fast to start, you can reduce this to zero. If it's slow (e.g., heavy initialization), increase it accordingly.