Fix fastmcp stateless_http deprecation warning (#12108)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Rohit Malhotra <rohitvinodmalhotra@gmail.com>
This commit is contained in:
Graham Neubig
2025-12-20 09:45:52 -05:00
committed by GitHub
parent 0677cebb25
commit 6605070d05
3 changed files with 35 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ from openhands.server.shared import conversation_manager, server_config
from openhands.server.types import AppMode
from openhands.version import get_version
mcp_app = mcp_server.http_app(path='/mcp')
mcp_app = mcp_server.http_app(path='/mcp', stateless_http=True)
def combine_lifespans(*lifespans):