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

    Type Alias WrapMiddleware

    WrapMiddleware: (
        context: MiddlewareContext,
        next: () => Promise<void>,
    ) => Promise<void>

    Full middleware function with type enforcement

    Must return Promise. TypeScript will help ensure next() is called or an error is thrown.

    Type Declaration