From 943af98b0db0a879f384e5f91e9fc50c3dd54e9e Mon Sep 17 00:00:00 2001 From: Matt Hallowell <17804673+mhallo@users.noreply.github.com> Date: Sun, 15 Mar 2026 08:51:43 -0700 Subject: [PATCH] move stateless_http transport kwarg to http_app as FastMCP constructor no longer supports stateless_http as kwarg (#3510) --- docs/deployment/http.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()`**