Spaces:
Paused
Paused
Update calculator_server.py
Browse files- calculator_server.py +3 -1
calculator_server.py
CHANGED
|
@@ -41,7 +41,9 @@ if __name__ == "__main__":
|
|
| 41 |
|
| 42 |
try:
|
| 43 |
# FastMCP only supports streamable-http transport
|
| 44 |
-
mcp.run(transport="streamable-http", host="0.0.0.0",
|
|
|
|
|
|
|
| 45 |
except Exception as e:
|
| 46 |
logger.error(f"Failed to start server: {e}")
|
| 47 |
raise
|
|
|
|
| 41 |
|
| 42 |
try:
|
| 43 |
# FastMCP only supports streamable-http transport
|
| 44 |
+
mcp.run(transport="streamable-http", host="0.0.0.0",
|
| 45 |
+
port=7860,
|
| 46 |
+
path="/mcp")
|
| 47 |
except Exception as e:
|
| 48 |
logger.error(f"Failed to start server: {e}")
|
| 49 |
raise
|