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

    Prompt

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

    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

    PromptDefinition

    pub(all) struct PromptDefinition {
    name : String
    description : String?
    arguments : Array[
    PromptArgument
    ]?
    } derive(Eq,
    Debug
    )

    Prompt metadata definition (for protocol responses) Describes a prompt in the prompts/list response Note: This is separate from the Prompt trait which is for implementation Note: PromptArgument, PromptMessage, GetPromptResult are defined in @types package

    Source Files