Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(mcp-server): disable redirect for /mcp endpoint (#935)

Fizza Mukhtarafdc1a3050c7
diff --git a/libs/python/computer-server/computer_server/main.py b/libs/python/computer-server/computer_server/main.py
index 887fa8e035..894d5b9453 100644
--- a/libs/python/computer-server/computer_server/main.py
+++ b/libs/python/computer-server/computer_server/main.py
@@ -72,6 +72,7 @@ app = FastAPI(
version="0.1.0",
websocket_max_size=WEBSOCKET_MAX_SIZE,
lifespan=_mcp_http_app.lifespan if _mcp_http_app else None,
+ redirect_slashes=False,
)
# CORS configuration