Skip to content

Commit e2d4a51

Browse files
committed
jsonrpc-connection-send: dont do sse connection when it is streamable http
1 parent 4ec47b8 commit e2d4a51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mcp.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ The message is sent differently based on connection type:
307307
(setf (mcp--session-id connection)
308308
session-id))
309309
;; connect sse
310-
(unless (jsonrpc--process connection)
310+
(when (and (mcp--sse connection)
311+
(not (jsonrpc--process connection)))
311312
(mcp--connect-sse connection))
312313
(unless (mcp--sse connection)
313314
(let (data json)

0 commit comments

Comments
 (0)