Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with HTTP middlewares #336

Open
sinedied opened this issue Mar 12, 2025 · 0 comments
Open

Compatibility with HTTP middlewares #336

sinedied opened this issue Mar 12, 2025 · 0 comments

Comments

@sinedied
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant