From f1827ced109c78685ca3348c9deee5d74715904a Mon Sep 17 00:00:00 2001 From: ihrpr Date: Tue, 8 Apr 2025 15:04:07 +0100 Subject: [PATCH] handle not implemented get --- src/client/streamableHttp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/streamableHttp.ts b/src/client/streamableHttp.ts index 9fa65c85..4ec89af8 100644 --- a/src/client/streamableHttp.ts +++ b/src/client/streamableHttp.ts @@ -121,7 +121,7 @@ export class StreamableHTTPClientTransport implements Transport { signal: this._abortController?.signal, }); - if (response.status === 405) { + if (response.status === 405 || response.status === 404) { // Server doesn't support GET for SSE, which is allowed by the spec // We'll rely on SSE responses to POST requests for communication return;