Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
|
@@ -97,4 +97,9 @@ async def update_status(command_id: str, update: StatusUpdate):
|
|
| 97 |
cmd["updated_at"] = now_iso()
|
| 98 |
return {"ok": True}
|
| 99 |
|
| 100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
cmd["updated_at"] = now_iso()
|
| 98 |
return {"ok": True}
|
| 99 |
|
| 100 |
+
# Disable slash redirects to avoid bad proxy redirects (http vs https)
|
| 101 |
+
app.router.redirect_slashes = False
|
| 102 |
+
|
| 103 |
+
# Mount both MCP transports
|
| 104 |
+
app.mount("/mcp", mcp.streamable_http_app()) # for streamable HTTP clients
|
| 105 |
+
app.mount("/sse", mcp.sse_app()) # for ChatGPT connector / SSE clients
|