Skip to content

Commit 88a28aa

Browse files
fix sse client failing when not connecting to root
1 parent babb477 commit 88a28aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/client/sse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def sse_reader(
6161
logger.debug(f"Received SSE event: {sse.event}")
6262
match sse.event:
6363
case "endpoint":
64-
endpoint_url = urljoin(url, sse.data)
64+
endpoint_url = url.rstrip("/sse") + sse.data
6565
logger.info(
6666
f"Received endpoint URL: {endpoint_url}"
6767
)

0 commit comments

Comments
 (0)