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:
parent
7f7a6083f8
commit
0892ecdc8e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue