From 4d691b46b2faefef44bf1c0ccf6f2509dc404f7a Mon Sep 17 00:00:00 2001 From: ihrpr Date: Tue, 15 Jul 2025 11:48:13 +0100 Subject: [PATCH 1/2] fix markdown error in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f3c1bb1a..18e11ee96 100644 --- a/README.md +++ b/README.md @@ -950,7 +950,7 @@ 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. -``` +```python from starlette.routing import Route mcp = FastMCP("My App") From b9b1c6b1c10681d67767473fcb44607962c07987 Mon Sep 17 00:00:00 2001 From: ihrpr Date: Tue, 15 Jul 2025 11:59:23 +0100 Subject: [PATCH 2/2] fix test --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 18e11ee96..c5fb473ca 100644 --- a/README.md +++ b/README.md @@ -951,12 +951,11 @@ The following example shows how to use `streamable_http_app()`, a method that re You can then append additional routes to that application as needed. ```python -from starlette.routing import Route - 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)) ```