Enum ContextInclusion
- 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 = 2Context 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 = 0No context should be included.
[JsonStringEnumMemberName("thisServer")] ThisServer = 1Context 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.
Remarks
See the schema for details.
ContextInclusion, and in particular ThisServer and AllServers, are deprecated. Servers should only use these values if the client declares Sampling with Context set. These values might be removed in future spec releases.