includeContext property

A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.

Default is "none". The values "thisServer" and "allServers" are deprecated (SEP-2596): servers SHOULD omit this field or use "none", and SHOULD only use the deprecated values if the client declares ClientCapabilities.sampling.context.

Implementation

CreateMessageRequestParamsIncludeContext? get includeContext => $optional('includeContext', $enum(CreateMessageRequestParamsIncludeContext.of));