Release v2.1.0 (#1792)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5a733baf-670e-4850-934e-57f2821d671f
This commit is contained in:
parent
5144f6c61c
commit
3be47ee31e
1 changed files with 15 additions and 2189 deletions
|
|
@ -231,6 +231,16 @@ builder.Services.AddMcpServer()
|
|||
});
|
||||
```
|
||||
|
||||
#### Customizing a subscriptions/listen stream
|
||||
|
||||
For the `2026-07-28` protocol version and later, a server can fully own a long-lived
|
||||
`subscriptions/listen` stream by registering `WithSubscriptionsListenHandler`. This replaces the
|
||||
SDK's built-in listen handling. The handler must send one
|
||||
`notifications/subscriptions/acknowledged` notification before other events, tag every streamed
|
||||
notification with the listen request ID in `_meta.subscriptionId`, and remain active until its
|
||||
cancellation token is cancelled. It must also configure only the server capabilities that the
|
||||
handler actually supports; this extension does not advertise capabilities automatically.
|
||||
|
||||
#### Sending resource update notifications
|
||||
|
||||
When a resource's content changes, the server notifies subscribed clients:
|
||||
|
|
|
|||
Loading…
Reference in a new issue