mcp-use TypeScript API
    Preparing search index...

    Interface PendingSamplingRequest

    A server sampling request awaiting UI or application approval.

    interface PendingSamplingRequest {
        id: string;
        request: { method: "sampling/createMessage"; params: {} };
        serverName: string;
        timestamp: number;
    }
    Index
    id: string

    Unique request identifier generated by the provider.

    request: { method: "sampling/createMessage"; params: {} }

    Sampling request received from the server.

    Type Declaration

    • method: "sampling/createMessage"

      Sampling JSON-RPC method name.

    • params: {}

      Sampling request parameters.

    serverName: string

    Name of the server that issued the request.

    timestamp: number

    Unix timestamp in milliseconds when the request was received.