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

    Interface MiddlewareDefinitionWithResult<TResult>

    Middleware definition with before/after hooks and result passing

    interface MiddlewareDefinitionWithResult<TResult> {
        after?: AfterHookWithResult<TResult>;
        before?: BeforeHookWithResult;
    }

    Type Parameters

    • TResult

      Type of result from the handler

    Index

    Properties

    Properties

    Runs after the middleware chain completes

    Receives the result and can optionally transform it.

    Runs before the middleware chain continues

    Use for setup, validation, or state preparation.