Content-Length: 282317 | pFad | http://github.com/modelcontextprotocol/python-sdk/commit/5289d0686aa54c8deb5d495cb9ed3cf29186a188

82 Minor tweaks to README for Streamable HTTP (#690) · modelcontextprotocol/python-sdk@5289d06 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/modelcontextprotocol/python-sdk/commit/5289d0686aa54c8deb5d495cb9ed3cf29186a188

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy