id property

RequestId? id
final

The JSON-RPC ID of the subscriptions/listen request that opened this subscription.

Every message the server sends on the stream carries it under the io.modelcontextprotocol/subscriptionId metadata key. On legacy versions this is null, because no request is sent.

Implementation

final RequestId? id;