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

    Type Alias AfterHookWithResult<TResult>

    AfterHookWithResult: (
        context: MiddlewareContext,
        result: TResult,
    ) => Promise<TResult | undefined> | TResult | undefined

    Hook that runs after the middleware chain completes (with result access)

    Can inspect and optionally transform the result.

    • Return a new result to transform it
    • Return void/undefined to keep the original result

    Type Parameters

    • TResult

      Type of result from the handler

    Type Declaration