You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/server/transport/WebFluxSseServerTransportProvider.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,10 @@ public WebFluxSseServerTransportProvider(ObjectMapper objectMapper, String baseU
154
154
Assert.notNull(messageEndpoint, "Message endpoint must not be null");
155
155
Assert.notNull(sseEndpoint, "SSE endpoint must not be null");
Copy file name to clipboardExpand all lines: mcp-spring/mcp-spring-webmvc/src/main/java/io/modelcontextprotocol/server/transport/WebMvcSseServerTransportProvider.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
7
7
importjava.io.IOException;
8
8
importjava.time.Duration;
9
+
importjava.util.Collections;
9
10
importjava.util.Map;
10
11
importjava.util.UUID;
11
12
importjava.util.concurrent.ConcurrentHashMap;
@@ -152,7 +153,13 @@ public WebMvcSseServerTransportProvider(ObjectMapper objectMapper, String baseUr
152
153
Assert.notNull(objectMapper, "ObjectMapper must not be null");
153
154
Assert.notNull(baseUrl, "Message base URL must not be null");
154
155
Assert.notNull(messageEndpoint, "Message endpoint must not be null");
156
+
Assert.hasText(messageEndpoint, "Message endpoint must not be empty");
155
157
Assert.notNull(sseEndpoint, "SSE endpoint must not be null");
158
+
Assert.hasText(sseEndpoint, "SSE endpoint must not be empty");
Copy file name to clipboardExpand all lines: mcp-spring/mcp-spring-webmvc/src/test/java/io/modelcontextprotocol/server/WebMvcSseCustomContextPathTests.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,8 @@ public void before() {
49
49
thrownewRuntimeException("Failed to start Tomcat", e);
0 commit comments