Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.AspNetCore.dll Namespace: Microsoft.OData.Mcp.AspNetCore.Hosting

Syntax

Summary

Host completion source for an annotated action after URL elicitation is accepted.

Remarks

Register with WaitForAnnotatedAction<TWaiter>. Without a waiter, the task completes with the Started payload after elicitation (the URL was shown; the grant still finishes only in the browser). Decline, timeout, and tasks/cancel do not call CancellationToken).

Methods

WaitAsync Abstract

Waits for the host callback that finishes the annotated action.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<ModelContextProtocol.Protocol.CallToolResult?> The terminal tool result, or null to keep the Started payload.