Table of Contents

Property GracefulShutdown

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

GracefulShutdown

Gets or sets whether to gracefully terminate the process on close.

public bool GracefulShutdown { get; set; }

Property Value

bool

If true, attempts graceful termination before forceful kill. Default is true.

Remarks

When closing the transport:

  1. Stdin is closed to signal EOF to the subprocess
  2. Wait up to GracefulShutdownTimeout for normal exit
  3. If still running, forcefully terminate the process

Set to false if you need immediate termination (not recommended for servers that need cleanup time).