Skip to content

Commit 1d6c5c7

Browse files
Use IsAccepted for checks.
Co-authored-by: Stephen Toub <stoub@microsoft.com>
1 parent 444dea7 commit 1d6c5c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ModelContextProtocol.Core/Server/McpServerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public static async ValueTask<ElicitResult<T>> ElicitAsync<T>(
287287

288288
var raw = await server.ElicitAsync(request, cancellationToken).ConfigureAwait(false);
289289

290-
if (!string.Equals(raw.Action, "accept", StringComparison.OrdinalIgnoreCase) || raw.Content is null)
290+
if (!raw.IsAccepted || raw.Content is null)
291291
{
292292
return new ElicitResult<T> { Action = raw.Action, Content = default };
293293
}

0 commit comments

Comments
 (0)