Implement SEP-2663 Tasks Extension (#1579)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Pranav Senthilnathan 2026-06-11 13:10:45 -07:00 • committed by GitHub
commit dbb7a20176
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -197,23 +197,6 @@ public sealed class McpServerToolCreateOptions
/// </remarks>
public JsonObject? Meta { get; set; }
/// <summary>
/// Gets or sets the execution hints for this tool.
/// </summary>
/// <remarks>
/// <para>
/// Execution hints provide information about how the tool should be invoked, including
/// task support level (<see cref="ToolTaskSupport"/>).
/// </para>
/// <para>
/// If <see langword="null"/>, the tool's execution settings are determined automatically based on
/// the method signature (async methods get <see cref="ToolTaskSupport.Optional"/>; sync methods
/// get <see cref="ToolTaskSupport.Forbidden"/>).
/// </para>
/// </remarks>
[Experimental(Experimentals.Tasks_DiagnosticId, UrlFormat = Experimentals.Tasks_Url)]
public ToolExecution? Execution { get; set; }
/// <summary>
/// Creates a shallow clone of the current <see cref="McpServerToolCreateOptions"/> instance.
/// </summary>
@ -235,6 +218,5 @@ public sealed class McpServerToolCreateOptions
Metadata = Metadata,
Icons = Icons,
Meta = Meta,
Execution = Execution,
};
}