Class McpLimits
The bounds a McpToolServer keeps.
public sealed record McpLimits : IEquatable<McpLimits>
- Inheritance
-
McpLimits
- Implements
- Inherited Members
Properties
Default
The bounds a server keeps unless it is given others: a wait of 60 seconds for the platform, and messages of at most 4 MiB.
public static McpLimits Default { get; }
Property Value
MaxMessageLength
The longest message read, in bytes of UTF-8. A longer one is skipped to its end of line and answered with the JSON-RPC error -32600.
public int MaxMessageLength { get; init; }
Property Value
ReadyTimeout
How long a tools/list or tools/call request waits for the platform to be ready (WaitForReadyAsync(CancellationToken))
before it fails with the JSON-RPC error -32603. initialize does not wait.
public TimeSpan ReadyTimeout { get; init; }