fix: strip /mcp/mcp suffix from memory sync URL
This commit is contained in:
parent
4cb12b536b
commit
fdcde9d6c5
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def get_api_config():
|
||||||
headers = cm.get("headers", {})
|
headers = cm.get("headers", {})
|
||||||
auth = headers.get("Authorization", "")
|
auth = headers.get("Authorization", "")
|
||||||
key = auth.replace("Bearer ", "").strip()
|
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
|
return url, key
|
||||||
except Exception:
|
except Exception:
|
||||||
return None, None
|
return None, None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue