Skip to content

Commit 0b6f1bd

Browse files
committed
Fix subscription removal and broken xref.
1 parent aa0be80 commit 0b6f1bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/concepts/resources/resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ builder.Services.AddMcpServer()
223223
{
224224
if (ctx.Params?.Uri is { } uri)
225225
{
226-
subscriptions.TryRemove(uri, out _);
226+
subscriptions[ctx.Server.SessionId].TryRemove(uri, out _);
227227
}
228228
return new EmptyResult();
229229
});

docs/concepts/transports/transports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ await using var client = await McpClient.ResumeSessionAsync(transport, new Resum
113113

114114
#### Streamable HTTP server (ASP.NET Core)
115115

116-
Use the `ModelContextProtocol.AspNetCore` package to host an MCP server over HTTP. The <xref:ModelContextProtocol.AspNetCore.McpEndpointRouteBuilderExtensions.MapMcp*> method maps the Streamable HTTP endpoint at the specified route (root by default). It also maps legacy SSE endpoints at `{route}/sse` and `{route}/message` for backward compatibility.
116+
Use the `ModelContextProtocol.AspNetCore` package to host an MCP server over HTTP. The <xref:Microsoft.AspNetCore.Builder.McpEndpointRouteBuilderExtensions.MapMcp*> method maps the Streamable HTTP endpoint at the specified route (root by default). It also maps legacy SSE endpoints at `{route}/sse` and `{route}/message` for backward compatibility.
117117

118118
```csharp
119119
var builder = WebApplication.CreateBuilder(args);

0 commit comments

Comments
 (0)