Use "sse" mode in MCP run method

Updated the `mcp.run` call to include the "sse" mode, ensuring proper handling of server events. This change improves the server's event loop management and prepares it for SSE-specific operations.
This commit is contained in:
ThomasTaroni 2025-04-26 18:48:51 +02:00
parent 7f7a6083f8
commit 0892ecdc8e

View file

@ -282,7 +282,7 @@ def run_server():
# Let FastMCP handle the event loop
try:
mcp.run()
mcp.run("sse")
# Note: If we reach here, the server has stopped
logger.info("MCP Server has stopped")
except Exception as e: