Spaces:
Paused
Paused
Update calculator_server.py
Browse files- calculator_server.py +2 -2
calculator_server.py
CHANGED
|
@@ -40,8 +40,8 @@ if __name__ == "__main__":
|
|
| 40 |
logger.info(f"Starting FastMCP server on host 0.0.0.0 port {port}")
|
| 41 |
|
| 42 |
try:
|
| 43 |
-
#
|
| 44 |
-
mcp.run(transport="http", host="0.0.0.0", port=port)
|
| 45 |
except Exception as e:
|
| 46 |
logger.error(f"Failed to start server: {e}")
|
| 47 |
raise
|
|
|
|
| 40 |
logger.info(f"Starting FastMCP server on host 0.0.0.0 port {port}")
|
| 41 |
|
| 42 |
try:
|
| 43 |
+
# FastMCP only supports streamable-http transport
|
| 44 |
+
mcp.run(transport="streamable-http", host="0.0.0.0", port=port)
|
| 45 |
except Exception as e:
|
| 46 |
logger.error(f"Failed to start server: {e}")
|
| 47 |
raise
|