Skip to content

FastMCP + Streamable Http : Session Management #1180

@bluedog13

Description

@bluedog13

Question

Does FastMCP with the below setting support Session Management? I am using the below, otherwise it does not work when deployed in K8s (BrokenResourceError)
mcp = FastMCP( "MCP Server", stateless_http=True, json_response=True )

I am observing that when stateless_http=True, my deployed MCP server (running in Kubernetes) no longer supports session management as no session Id is returned.

Is this the intended behavior? If so, is there a recommended solution or workaround to enable session management with this configuration?

Much appreciated.
Thanks

Additional Context

mcp==1.12.0
python==3.11.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions