generated from amazon-archives/__template_MIT-0
-
Couldn't load subscription status.
- Fork 19
Open
Description
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
Line 133 in 42361bd
| if __name__ == '__main__': |
with some code which looks roughly the following way:
routes = [
Route('/health', healthcheck),
Mount("/mcp", mcp.streamable_http_app()),
]
Metadata
Metadata
Assignees
Labels
No labels