Skip to content

Commit 5289d06

Browse files
authored
Minor tweaks to README for Streamable HTTP (#690)
1 parent f745d69 commit 5289d06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ mcp = FastMCP(name="MathServer", stateless_http=True)
426426

427427

428428
@mcp.tool(description="A simple add tool")
429-
def add_two(n: int) -> str:
429+
def add_two(n: int) -> int:
430430
return n + 2
431431
```
432432

@@ -462,6 +462,8 @@ The streamable HTTP transport supports:
462462

463463
> **Note**: SSE transport is being superseded by [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http).
464464
465+
By default, SSE servers are mounted at `/sse` and Streamable HTTP servers are mounted at `/mcp`. You can customize these paths using the methods described below.
466+
465467
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.
466468

467469
```python

0 commit comments

Comments
 (0)