Checks whether this request declares a top-level client capability.
Capability name such as sampling, elicitation,
roots, or extensions.
true when the current request advertises the capability.
Returns the capabilities declared by the client for this request.
The returned object is a shallow copy. Requests without the modern metadata envelope return an empty object.
Returns one extension settings object declared for this request.
Namespaced extension identifier, such as
io.modelcontextprotocol/ui.
A shallow copy of the extension settings, or undefined when the
current request does not advertise the extension.
Returns the client implementation metadata declared for this request.
Valid modern requests include name and version. The partial return
type preserves v1 ergonomics for legacy requests without an envelope.
The returned object is a shallow copy.
Whether this request's client advertises MCP Apps / UI support.
True when the client declares the io.modelcontextprotocol/ui extension
with text/html;profile=mcp-app in mimeTypes. Legacy (non-envelope)
requests always return false.
Returns normalized OpenAI-specific end-user hints for this request.
The data comes from ordinary request _meta, not the MCP client-info
envelope. It is client-reported and must not be used for authentication
or authorization. Each call returns a fresh object, including a fresh
location object. Requests without recognized metadata return undefined.
Per-request client metadata and capability queries.
Reads only the current request's metadata — never session state.