colmugx/mcp/protocol/prompt does not have a README file

    PromptDefinition

    Prompt

    Core Prompt trait following MCP protocol
    • name: Prompt identifier (unique)
    • description: Human-readable description
    • arguments: Array of argument definitions (@types.PromptArgument)
    • get: Async operation that returns prompt messages based on provided arguments

    PromptMRTR

    pub(open) trait PromptMRTR {
    fn name(Self) -> String
    fn description(Self) -> String
    fn arguments(Self) -> Array[
    PromptArgument
    ]
    async fn get(Self,
    RequestContext
    ,
    Json
    ) -> Result[PromptGetOutcome,
    MCPError
    ]
    }

    MRTR-aware prompt trait. Implement this instead of Prompt when a prompts/get handler needs to suspend and ask the client for input before completing. The get method receives the full get params (after _mrtr_responses has been merged on retry).

    PromptGetOutcome

    The result of a prompts/get handler. Per the 2026-07-28 MRTR pattern, a handler may either complete normally (Complete) or request additional client input (InputRequired). On retry, the client resubmits with inputResponses and the echoed requestState; the handler receives those responses via _mrtr_responses in the get params.

    PromptGetOutcome::equal

    PromptGetOutcome::not_equal

    fn PromptGetOutcome::not_equal(x : PromptGetOutcome, y : PromptGetOutcome) -> Bool

    Source Files