fix: strip /mcp/mcp suffix from memory sync URL

This commit is contained in:
Viktor Barzin 2026-04-10 00:04:02 +01:00
parent 4cb12b536b
commit fdcde9d6c5
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -28,7 +28,7 @@ def get_api_config():
headers = cm.get("headers", {})
auth = headers.get("Authorization", "")
key = auth.replace("Bearer ", "").strip()
url = cm.get("url", "").replace("/mcp/sse", "")
url = cm.get("url", "").replace("/mcp/sse", "").replace("/mcp/mcp", "")
return url, key
except Exception:
return None, None