def revision

ezmcp@0.1.0.0 · src/web.bend:134

import ezmcp@0.1.0.0/src/web.bend as Web
import Base
import ezmcp@0.1.0.0/src/server.bend as Server

134# the revision a request is read by: its MCP-Protocol-Version, or 2025-03-26
135# when it has none (basic/transports#protocol-version-header)
136def revision(+val: String) -> String:
137  Bool.pick(String, String.is_empty(val), Server.oldest(), val)

Uses (4)

Used by (1)