@@ -1325,7 +1325,7 @@ from starlette.routing import Mount
13251325from mcp.server.fastmcp import FastMCP
13261326
13271327# Create MCP server
1328- mcp = FastMCP(" My App" , stateless_http = True )
1328+ mcp = FastMCP(" My App" )
13291329
13301330
13311331@mcp.tool ()
@@ -1373,7 +1373,7 @@ from starlette.routing import Host
13731373from mcp.server.fastmcp import FastMCP
13741374
13751375# Create MCP server
1376- mcp = FastMCP(" MCP Host App" , stateless_http = True )
1376+ mcp = FastMCP(" MCP Host App" )
13771377
13781378
13791379@mcp.tool ()
@@ -1421,8 +1421,8 @@ from starlette.routing import Mount
14211421from mcp.server.fastmcp import FastMCP
14221422
14231423# Create multiple MCP servers
1424- api_mcp = FastMCP(" API Server" , stateless_http = True )
1425- chat_mcp = FastMCP(" Chat Server" , stateless_http = True )
1424+ api_mcp = FastMCP(" API Server" )
1425+ chat_mcp = FastMCP(" Chat Server" )
14261426
14271427
14281428@api_mcp.tool ()
@@ -1486,7 +1486,7 @@ from mcp.server.fastmcp import FastMCP
14861486
14871487# Configure streamable_http_path during initialization
14881488# This server will mount at the root of wherever it's mounted
1489- mcp_at_root = FastMCP(" My Server" , streamable_http_path = " /" , stateless_http = True )
1489+ mcp_at_root = FastMCP(" My Server" , streamable_http_path = " /" )
14901490
14911491
14921492@mcp_at_root.tool ()
0 commit comments