We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a6be18 commit c96a357Copy full SHA for c96a357
1 file changed
mcp/src/main/java/io/modelcontextprotocol/client/transport/ResponseSubscribers.java
@@ -12,7 +12,7 @@
12
import org.reactivestreams.FlowAdapters;
13
import org.reactivestreams.Subscription;
14
15
-import io.modelcontextprotocol.spec.McpError;
+import io.modelcontextprotocol.spec.McpTransportException;
16
import reactor.core.publisher.BaseSubscriber;
17
import reactor.core.publisher.FluxSink;
18
@@ -168,8 +168,7 @@ else if (line.startsWith("event:")) {
168
}
169
else {
170
// If the response is not successful, emit an error
171
- // TODO: This should be a McpTransportError
172
- this.sink.error(new McpError(
+ this.sink.error(new McpTransportException(
173
"Invalid SSE response. Status code: " + this.responseInfo.statusCode() + " Line: " + line));
174
175
0 commit comments