Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/concepts/resources/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageProjectUrl>https://csharp.sdk.modelcontextprotocol.io</PackageProjectUrl>
<RepositoryUrl>https://github.com/modelcontextprotocol/csharp-sdk</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionPrefix>2.1.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Authors>ModelContextProtocol</Authors>
<Copyright>© Model Context Protocol a Series of LF Projects, LLC.</Copyright>
Expand All @@ -18,7 +18,7 @@
<AssemblyOriginatorKeyFile>$(RepoRoot)\Open.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>1.4.1</PackageValidationBaselineVersion>
<PackageValidationBaselineVersion>2.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading