You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove stateless_http=True from examples to avoid going "all-in" on
stateless before it's properly documented in the MCP spec. Keep
json_response=True for client compatibility.
Changes:
- Remove stateless_http from quickstart and other examples
- Keep json_response=True as recommended option
- Update note to focus on JSON compatibility vs scalability
- Reorder streamable_config.py to show recommended option first
@@ -901,7 +901,6 @@ class SimpleTokenVerifier(TokenVerifier):
901
901
# Create FastMCP instance as a Resource Server
902
902
mcp = FastMCP(
903
903
"Weather Service",
904
-
stateless_http=True,
905
904
json_response=True,
906
905
# Token verifier for authentication
907
906
token_verifier=SimpleTokenVerifier(),
@@ -1118,7 +1117,7 @@ Note that `uv run mcp run` or `uv run mcp dev` only supports server using FastMC
1118
1117
1119
1118
### Streamable HTTP Transport
1120
1119
1121
-
> **Note**: Streamable HTTP transport is the recommended transport for production deployments. Use `stateless_http=True` and `json_response=True` for optimal scalability.
1120
+
> **Note**: Streamable HTTP transport is the recommended transport for production deployments. Consider using `json_response=True` for compatibility with clients that prefer JSON over SSE.
0 commit comments