MCP Apps Kit - v0.5.0
    Preparing search index...

    Type Alias WrapMiddlewareWithResult<TResult>

    WrapMiddlewareWithResult: (
        context: MiddlewareContext,
        next: () => Promise<TResult>,
    ) => Promise<TResult>

    Full middleware function with result passing

    Must return Promise. Can inspect and transform results.

    Type Parameters

    • TResult

      Type of result from the handler

    Type Declaration