You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ModelContextProtocol.Core/Server/StreamableHttpServerTransport.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,14 +43,14 @@ public sealed class StreamableHttpServerTransport : ITransport
43
43
/// <summary>
44
44
/// Configures whether the transport should be in stateless mode that does not require all requests for a given session
45
45
/// to arrive to the same ASP.NET Core application process. Unsolicited server-to-client messages are not supported in this mode,
46
-
/// so calling <see cref="HandleGetRequest(Stream, CancellationToken)"/> results in an <see cref="InvalidOperationException"/>.
46
+
/// so calling <see cref="HandleGetRequestAsync(Stream, CancellationToken)"/> results in an <see cref="InvalidOperationException"/>.
47
47
/// Server-to-client requests are also unsupported, because the responses may arrive at another ASP.NET Core application process.
48
48
/// Client sampling and roots capabilities are also disabled in stateless mode, because the server cannot make requests.
49
49
/// </summary>
50
50
publicboolStateless{get;init;}
51
51
52
52
/// <summary>
53
-
/// Gets a value indicating whether the execution context should flow from the calls to <see cref="HandlePostRequest(JsonRpcMessage, Stream, CancellationToken)"/>
53
+
/// Gets a value indicating whether the execution context should flow from the calls to <see cref="HandlePostRequestAsync(JsonRpcMessage, Stream, CancellationToken)"/>
54
54
/// to the corresponding <see cref="JsonRpcMessageContext.ExecutionContext"/> property contained in the <see cref="JsonRpcMessage"/> instances returned by the <see cref="MessageReader"/>.
55
55
/// </summary>
56
56
/// <remarks>
@@ -76,7 +76,7 @@ public sealed class StreamableHttpServerTransport : ITransport
76
76
/// <param name="sseResponseStream">The response stream to write MCP JSON-RPC messages as SSE events to.</param>
77
77
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
78
78
/// <returns>A task representing the send loop that writes JSON-RPC messages to the SSE response stream.</returns>
0 commit comments