Skip to content

Leverage Streamable HTTP of MCP #8

@juliangrueber

Description

@juliangrueber

MCP provides an example to mount the FastMCP server as http streamable, see https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/streamable_starlette_mount.py

One could reuse it when hosting the server

with some code which looks roughly the following way:

routes = [
    Route('/health', healthcheck),
    Mount("/mcp", mcp.streamable_http_app()),

]

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