Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
|
@@ -13,7 +13,7 @@ logging.basicConfig(
|
|
| 13 |
logger = logging.getLogger("MathServer")
|
| 14 |
|
| 15 |
# Initialize FastMCP server
|
| 16 |
-
mcp = FastMCP("Math-Education-Server"
|
| 17 |
|
| 18 |
# Use Path for cross-platform compatibility
|
| 19 |
current_dir = Path(__file__).parent
|
|
@@ -62,4 +62,4 @@ if __name__ == "__main__":
|
|
| 62 |
|
| 63 |
# Use SSE transport for Hugging Face Spaces
|
| 64 |
# FastMCP handles host validation automatically
|
| 65 |
-
mcp.run(transport="sse", host=host, port=port)
|
|
|
|
| 13 |
logger = logging.getLogger("MathServer")
|
| 14 |
|
| 15 |
# Initialize FastMCP server
|
| 16 |
+
mcp = FastMCP("Math-Education-Server")
|
| 17 |
|
| 18 |
# Use Path for cross-platform compatibility
|
| 19 |
current_dir = Path(__file__).parent
|
|
|
|
| 62 |
|
| 63 |
# Use SSE transport for Hugging Face Spaces
|
| 64 |
# FastMCP handles host validation automatically
|
| 65 |
+
mcp.run(transport="sse", host=host, port=port, stateless_http=True)
|