From 0a388b642ff98d488469482fa49f611f1b8dbcdf Mon Sep 17 00:00:00 2001 From: 5enxia Date: Thu, 15 May 2025 17:24:13 +0900 Subject: [PATCH] Add example for stateless server with JSON response (#704) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b281b551..57088f9b 100644 --- a/README.md +++ b/README.md @@ -402,6 +402,9 @@ mcp = FastMCP("StatefulServer") # Stateless server (no session persistence) mcp = FastMCP("StatelessServer", stateless_http=True) +# Stateless server (no session persistence, no sse stream with supported client) +mcp = FastMCP("StatelessServer", stateless_http=True, json_response=True) + # Run server with streamable_http transport mcp.run(transport="streamable-http") ```