Skip to content

Commit 364074e

Browse files
committed
Updated Script snippets in README.md
1 parent dfed995 commit 364074e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ from starlette.routing import Mount
13251325
from 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
13731373
from 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
14211421
from 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

Comments
 (0)