sessionsApply

Decide whether protocol-level sessions apply to a POST request (basic/transports §Backward Compatibility / §Earlier Streamable HTTP Revisions). The stable revisions (2025-03-26 / 2025-06-18 / 2025-11-25) carry protocol-level sessions: the server mints an Mcp-Session-Id on the InitializeResult and requires the client to echo it on every later request. The draft removed protocol-level sessions (revision 2026-07-28: "Removal of protocol-level sessions"), so a draft-only server "SHOULD respond as follows: ... An Mcp-Session-Id header on a request: ignore it, and do not mint or echo session IDs."

Returns true when POST session minting/requiring applies (stable revisions), false when the server must neither mint nor require a session id (the draft) — mirroring the version gates getOpensSseStream (GET) and deleteTerminatesSession (DELETE) already apply.

@safe
bool
sessionsApply