Skip to content

Commit e754e09

Browse files
committed
chore: Make some private field in WebFluxSseClientTransport protected
Signed-off-by: He-Pin <hepin1989@gmail.com>
1 parent 80d0ad8 commit e754e09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,20 @@ public class WebFluxSseClientTransport implements McpClientTransport {
7272
* Event type for JSON-RPC messages received through the SSE connection. The server
7373
* sends messages with this event type to transmit JSON-RPC protocol data.
7474
*/
75-
private static final String MESSAGE_EVENT_TYPE = "message";
75+
protected static final String MESSAGE_EVENT_TYPE = "message";
7676

7777
/**
7878
* Event type for receiving the message endpoint URI from the server. The server MUST
7979
* send this event when a client connects, providing the URI where the client should
8080
* send its messages via HTTP POST.
8181
*/
82-
private static final String ENDPOINT_EVENT_TYPE = "endpoint";
82+
protected static final String ENDPOINT_EVENT_TYPE = "endpoint";
8383

8484
/**
8585
* Default SSE endpoint path as specified by the MCP transport specification. This
8686
* endpoint is used to establish the SSE connection with the server.
8787
*/
88-
private static final String DEFAULT_SSE_ENDPOINT = "/sse";
88+
protected static final String DEFAULT_SSE_ENDPOINT = "/sse";
8989

9090
/**
9191
* Type reference for parsing SSE events containing string data.
@@ -97,7 +97,7 @@ public class WebFluxSseClientTransport implements McpClientTransport {
9797
* WebClient instance for handling both SSE connections and HTTP POST requests. Used
9898
* for establishing the SSE connection and sending outbound messages.
9999
*/
100-
private final WebClient webClient;
100+
protected final WebClient webClient;
101101

102102
/**
103103
* JSON mapper for serializing outbound messages and deserializing inbound messages.
@@ -127,7 +127,7 @@ public class WebFluxSseClientTransport implements McpClientTransport {
127127
* The SSE endpoint URI provided by the server. Used for sending outbound messages via
128128
* HTTP POST requests.
129129
*/
130-
private String sseEndpoint;
130+
protected String sseEndpoint;
131131

132132
/**
133133
* Constructs a new SseClientTransport with the specified WebClient builder and

0 commit comments

Comments
 (0)