Skip to content

421 Misdirected Request when invoking MCP Server via sse_client() #1642

@neerajagarwal041

Description

@neerajagarwal041

We have developed an MCP Server using the mcp.server.fastmcp Python SDK. The server works perfectly in our local environment. However, after deploying it as an Azure App Service, we consistently encounter the following error when invoking it using sse_client():

421 Misdirected Request

Any guidance on resolving this error or configuration changes required for Azure App Service would be appreciated.

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