Skip to content

Compatibility with HTTP middlewares #336

Closed
@sinedied

Description

@sinedied

I'm looking into implementing a MCP server on top of Azure Functions, and its implementation works as a classic Node.js HTTP middleware, requiring an IncomingMessage as the input request and OutgoingMessage for the response.

With the previous Functions v3 runtime model, we could use workarounds by creating adapters like this, but I'm wondering if we can have a similar approach with the v4 model?

In the new model v4 model we can't access/manipulate the response object directly as it must be returned in the function handler.

Any idea if/how we could have a way to create a compatibility layer/adapter to use regular HTTP middleware with the new v4 model?

cc @ejizba

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions