subscriptionId property

RequestId get subscriptionId

The JSON-RPC ID of the SubscriptionsListenRequest which opened the stream this message belongs to.

Every message on the stream carries it under the io.modelcontextprotocol/subscriptionId metadata key, so a client can tell its streams apart.

Implementation

RequestId get subscriptionId => meta.subscriptionId;