Checks if a protocol version is modern by comparing against the first modern version threshold. Used widely to gate modern protocol behavior.
// Source: https://github.com/modelcontextprotocol/typescript-sdk | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
export function isModernProtocolVersion(version: string): boolean {
return version >= FIRST_MODERN_PROTOCOL_VERSION;
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key