You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option to Mount SSE Server to Existing ASGI Server #311
The SSE server in fastmcp currently operates as a Starlette app. In addition to running it as a standalone server, it would be beneficial to provide an option to mount it to an existing ASGI server.
Suggested solution
Currently, the run(transport="sse") method and the run_sse_async() method include the code for actually serving the application. It would be better to separate this functionality and allow users to obtain an instance of the SSE server app via a method like mcp.sse_app() or mcp.starlette_app().
Activity
Option to mount SSE server to existing ASGI server
Option to mount SSE server to existing ASGI server (modelcontextproto…