mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
move stateless_http transport kwarg to http_app as FastMCP constructor no longer supports stateless_http as kwarg (#3510)
This commit is contained in:
parent
32dfe50f39
commit
943af98b0d
1 changed files with 2 additions and 2 deletions
|
|
@ -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()`**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue