Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

move stateless_http transport kwarg to http_app as FastMCP constructor no longer supports stateless_http as kwarg (#3510)

Matt Hallowell943af98b0db0
diff --git a/docs/deployment/http.mdx b/docs/deployment/http.mdx
index e961de9d1..dae10b47a 100644
--- a/docs/deployment/http.mdx
+++ b/docs/deployment/http.mdx
@@ -630,13 +630,13 @@ For horizontally scaled deployments, enable stateless HTTP mode. In stateless mo
```python
from fastmcp import FastMCP
-mcp = FastMCP("My Server", stateless_http=True)
+mcp = FastMCP("My Server")
@mcp.tool
def process(data: str) -> str:
return f"Processed: {data}"
-app = mcp.http_app()
+app = mcp.http_app(stateless_http=True)
```
**Option 2: Via `run()`**