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
Copy file name to clipboardexpand all lines: README.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -352,16 +352,24 @@ mcp run server.py
352
352
You can mount the SSE server to an existing ASGI server using the `sse_app` method. This allows you to integrate the SSE server with other ASGI applications.
353
353
354
354
```python
355
-
from fastapi import FastAPI
355
+
from starlette.applications import Starlette
356
+
from starlette.routes import Mount, Host
356
357
from mcp.server.fastmcp import FastMCP
357
358
358
-
app = FastAPI()
359
+
359
360
mcp = FastMCP("My App")
360
361
361
362
# Mount the SSE server to the existing ASGI server
0 commit comments