diff --git a/README.md b/README.md index 0f3c1bb1a..c5fb473ca 100644 --- a/README.md +++ b/README.md @@ -950,13 +950,12 @@ By default, SSE servers are mounted at `/sse` and Streamable HTTP servers are mo The following example shows how to use `streamable_http_app()`, a method that returns a `Starlette` application object. You can then append additional routes to that application as needed. -``` -from starlette.routing import Route - +```python mcp = FastMCP("My App") app = mcp.streamable_http_app() # Additional non-MCP routes can be added like so: +# from starlette.routing import Route # app.router.routes.append(Route("/", endpoint=other_route_function)) ```