Skip to content

Commit 9e660d1

Browse files
committed
feat: add WebFlux transport support to WebMVC integration tests
- Enhance McpStreamableServerSession error handling with proper JSON-RPC error responses - Add mcp-spring-webflux test dependency to webmvc module - Refactor WebMvcStreamableIntegrationTests to use parameterized tests - Support testing with both HttpClient and WebFlux transports - Add WebClientStreamableHttpTransport integration - Improve error handling in McpStreamableServerSession - Add proper timeout configurations for test clients - Clean up test structure and imports organization This enables comprehensive testing of WebMVC functionality with multiple transport mechanisms, ensuring compatibility across different client types. Signed-off-by: Christian Tzolov <[email protected]>
1 parent 925be06 commit 9e660d1

File tree

3 files changed

+158
-75
lines changed

3 files changed

+158
-75
lines changed

mcp-spring/mcp-spring-webmvc/pom.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,24 @@
2828
<version>0.11.0-SNAPSHOT</version>
2929
</dependency>
3030

31+
<dependency>
32+
<groupId>org.springframework</groupId>
33+
<artifactId>spring-webmvc</artifactId>
34+
<version>${springframework.version}</version>
35+
</dependency>
36+
3137
<dependency>
3238
<groupId>io.modelcontextprotocol.sdk</groupId>
3339
<artifactId>mcp-test</artifactId>
3440
<version>0.11.0-SNAPSHOT</version>
3541
<scope>test</scope>
3642
</dependency>
3743

38-
<dependency>
39-
<groupId>org.springframework</groupId>
40-
<artifactId>spring-webmvc</artifactId>
41-
<version>${springframework.version}</version>
44+
<dependency>
45+
<groupId>io.modelcontextprotocol.sdk</groupId>
46+
<artifactId>mcp-spring-webflux</artifactId>
47+
<version>0.11.0-SNAPSHOT</version>
48+
<scope>test</scope>
4249
</dependency>
4350

4451

0 commit comments

Comments
 (0)