Skip to content

Commit dfed995

Browse files
committed
Fix: Stateless http additions were removed
1 parent ffab897 commit dfed995

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/snippets/servers/streamable_http_basic_mounting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from mcp.server.fastmcp import FastMCP
1414

1515
# Create MCP server
16-
mcp = FastMCP("My App", stateless_http=True)
16+
mcp = FastMCP("My App")
1717

1818

1919
@mcp.tool()

examples/snippets/servers/streamable_http_host_mounting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from mcp.server.fastmcp import FastMCP
1414

1515
# Create MCP server
16-
mcp = FastMCP("MCP Host App", stateless_http=True)
16+
mcp = FastMCP("MCP Host App")
1717

1818

1919
@mcp.tool()

examples/snippets/servers/streamable_http_multiple_servers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from mcp.server.fastmcp import FastMCP
1414

1515
# Create multiple MCP servers
16-
api_mcp = FastMCP("API Server", stateless_http=True)
17-
chat_mcp = FastMCP("Chat Server", stateless_http=True)
16+
api_mcp = FastMCP("API Server")
17+
chat_mcp = FastMCP("Chat Server")
1818

1919

2020
@api_mcp.tool()

examples/snippets/servers/streamable_http_path_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Configure streamable_http_path during initialization
1616
# This server will mount at the root of wherever it's mounted
17-
mcp_at_root = FastMCP("My Server", streamable_http_path="/", stateless_http=True)
17+
mcp_at_root = FastMCP("My Server", streamable_http_path="/")
1818

1919

2020
@mcp_at_root.tool()

0 commit comments

Comments
 (0)