π The fast, Pythonic way to build MCP servers and clients.
Add test for SHTTP
Jeremiah Lowin38ae8de40473
diff --git a/tests/client/test_streamable_http.py b/tests/client/test_streamable_http.pyindex 18553976f..a388cc3cb 100644--- a/tests/client/test_streamable_http.py+++ b/tests/client/test_streamable_http.py@@ -106,7 +106,7 @@ async def test_http_headers(streamable_http_server: str):def run_nested_server(host: str, port: int) -> None:try:- mcp_app = fastmcp_server().http_app()+ mcp_app = fastmcp_server().http_app(path="/final/mcp")mount = Starlette(routes=[Mount("/nest-inner", app=mcp_app)])mount2 = Starlette(@@ -135,7 +135,7 @@ async def test_nested_streamable_http_server_resolves_correctly():with run_server_in_process(run_nested_server) as url:async with Client(- transport=StreamableHttpTransport(f"{url}/nest-outer/nest-inner/mcp")+ transport=StreamableHttpTransport(f"{url}/nest-outer/nest-inner/final/mcp")) as client:result = await client.ping()assert result is True