Enum ContextInclusion | MCP C# SDK

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Specifies the context inclusion options for a request in the Model Context Protocol (MCP).

[JsonConverter(typeof(JsonStringEnumConverter<ContextInclusion>))]
public enum ContextInclusion

Fields

[JsonStringEnumMemberName("allServers")] AllServers = 2

Context from all servers that the client is connected to should be included.

This value is soft-deprecated. Servers should only use this value if the client declares ClientCapabilities.Sampling.Context.

[JsonStringEnumMemberName("none")] None = 0

No context should be included.

[JsonStringEnumMemberName("thisServer")] ThisServer = 1

Context from the server that sent the request should be included.

This value is soft-deprecated. Servers should only use this value if the client declares ClientCapabilities.Sampling.Context.