Mark RunSessionHandler experimental (MCPEXP002) (#1383)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: halter73 <54385+halter73@users.noreply.github.com> Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
This commit is contained in:
parent
4e68a4e9ec
commit
84cd6917bb
1 changed files with 82 additions and 4 deletions
|
|
@ -24,7 +24,20 @@ public class HttpServerTransportOptions
|
|||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This callback is useful for running logic before a session starts and after it completes.
|
||||
/// <para>
|
||||
/// The <see cref="HttpContext"/> parameter comes from the request that initiated the session (e.g., the
|
||||
/// initialize request) and may not be usable after <see cref="McpServer.RunAsync"/> starts, since that
|
||||
/// request will have already completed.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Consider using <see cref="ConfigureSessionOptions"/> instead, which provides access to the
|
||||
/// <see cref="HttpContext"/> of the initializing request with fewer known issues.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This API is experimental and may be removed or change signatures in a future release.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[System.Diagnostics.CodeAnalysis.Experimental(Experimentals.RunSessionHandler_DiagnosticId, UrlFormat = Experimentals.RunSessionHandler_Url)]
|
||||
public Func<HttpContext, McpServer, CancellationToken, Task>? RunSessionHandler { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue