includeContext property
IncludeContext?
get
includeContext
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.
Implementation
IncludeContext? get includeContext {
var includeContext = _value[Keys.includeContext] as String?;
if (includeContext == null) return null;
// This package wrote `thisService` for the schema's `thisServer` up to
// 0.5.2. Treat it as an alias in case a server is still on that version.
if (includeContext == 'thisService') {
includeContext = IncludeContext.thisServer.name;
}
return IncludeContext.values.firstWhere(
(value) => value.name == includeContext,
);
}