isReservedMetaPrefix

Whether a _meta key's prefix is reserved for MCP use, applying the rule for the 2025-11-25 / draft revisions: the SECOND dot-separated label of the prefix is modelcontextprotocol or mcp (e.g. io.modelcontextprotocol/, com.mcp/). com.example.mcp/ is NOT reserved. Such prefixes MUST NOT be used by non-protocol code.

This version-agnostic overload preserves the 2025-11-25 / draft semantics. Use the (string, ProtocolVersion) overload when an effective protocol version is known, since 2025-06-18 uses a broader rule (see below).

  1. bool isReservedMetaPrefix(string key)
    @safe @safe pure nothrow
    bool
    isReservedMetaPrefix
    (
    string key
    )
  2. bool isReservedMetaPrefix(string key, ProtocolVersion v)