From fbea833384c097a46927624f1f7cbb9562c15e74 Mon Sep 17 00:00:00 2001 From: Christian Tzolov Date: Wed, 9 Apr 2025 16:17:16 +0200 Subject: [PATCH] Fix compilation issue introduced by the previous commit Signed-off-by: Christian Tzolov --- .../server/WebMvcSseIntegrationTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mcp-spring/mcp-spring-webmvc/src/test/java/io/modelcontextprotocol/server/WebMvcSseIntegrationTests.java b/mcp-spring/mcp-spring-webmvc/src/test/java/io/modelcontextprotocol/server/WebMvcSseIntegrationTests.java index 420f4b9..c203e3b 100644 --- a/mcp-spring/mcp-spring-webmvc/src/test/java/io/modelcontextprotocol/server/WebMvcSseIntegrationTests.java +++ b/mcp-spring/mcp-spring-webmvc/src/test/java/io/modelcontextprotocol/server/WebMvcSseIntegrationTests.java @@ -388,8 +388,8 @@ public class WebMvcSseIntegrationTests { new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> { // perform a blocking call to a remote service String response = RestClient.create() - .get()https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md - .uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md") + .get() + .uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md") .retrieve() .body(String.class); assertThat(response).isNotBlank(); @@ -424,9 +424,9 @@ public class WebMvcSseIntegrationTests { McpServerFeatures.SyncToolSpecification tool1 = new McpServerFeatures.SyncToolSpecification( new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> { // perform a blocking call to a remote service - String https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md + String response = RestClient.create() .get() - .uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md") + .uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md") .retrieve() .body(String.class); assertThat(response).isNotBlank(); @@ -441,9 +441,9 @@ public class WebMvcSseIntegrationTests { AtomicReference> rootsRef = new AtomicReference<>(); var mcpClient = clientBuilder.toolsChangeConsumer(toolsUpdate -> { // perform a blocking call to a remote service - String https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md + String response = RestClient.create() .get() - .uri("https://github.com/modelcontextprotocol/specification/blob/main/README.md") + .uri("https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/refs/heads/main/README.md") .retrieve() .body(String.class); assertThat(response).isNotBlank();