Advertise the resources subscribe capability and accept
resources/subscribe + resources/unsubscribe.
resources/subscribe correlates more than one HTTP call (a
subscription set up on one call is honoured by a `notifications/resources/
updated pushed on another), so it is per-peer state a stateless` server
must not keep. In stateless mode this opt-in is therefore INERT: the
subscribe capability is not advertised and resources/subscribe /
resources/unsubscribe answer -32601 (method not found). Construct the
server with McpServer.stateful() to actually enable subscriptions (keyed
on Mcp-Session-Id). See effectiveResourceSubscriptions.
Advertise the resources subscribe capability and accept resources/subscribe + resources/unsubscribe.
resources/subscribe correlates more than one HTTP call (a subscription set up on one call is honoured by a `notifications/resources/ updated pushed on another), so it is per-peer state a stateless` server must not keep. In stateless mode this opt-in is therefore INERT: the subscribe capability is not advertised and resources/subscribe / resources/unsubscribe answer -32601 (method not found). Construct the server with McpServer.stateful() to actually enable subscriptions (keyed on Mcp-Session-Id). See effectiveResourceSubscriptions.