Friendly interaction helpers built on top of FastestMCP.Context.
The helpers keep the transport and task semantics in Context, while exposing
an Elixir-native API for common prompts:
case FastestMCP.Interact.confirm(ctx, "Proceed?") do
{:ok, true} -> :approved
{:ok, false} -> :rejected
:declined -> :declined
:cancelled -> :cancelled
end
Summary
Functions
Requests an approval response.
Selects one option from an elicitation result.
Requests a confirmation response.
Requests a structured form response.
Runs a sampling request from this context.
Extracts or requests plain text for this interaction.
Types
Functions
Requests an approval response.
Selects one option from an elicitation result.
Requests a confirmation response.
Requests a structured form response.
Runs a sampling request from this context.
Extracts or requests plain text for this interaction.