intellibrix v1.0.0
    Preparing search index...

    Type Alias McpToolContext

    Extra capabilities the MCP server wrapper adds to a tool's ctx while it runs behind serveMcp. Both are absent outside an MCP call (e.g. when the same tool runs inside a plain agent loop).

    type McpToolContext = {
        elicit?: (request: ElicitationRequest) => Promise<ElicitationResult>;
        sample?: (request: SamplingRequest) => Promise<SamplingResult>;
    }
    Index
    elicit?: (request: ElicitationRequest) => Promise<ElicitationResult>

    Asks the connected MCP client's user for structured input. Rejects if the client didn't opt in.

    sample?: (request: SamplingRequest) => Promise<SamplingResult>

    Asks the connected MCP client's LLM for a completion. Rejects if the client didn't opt in.