Skip to content

Commit 9f50a23

Browse files
committed
IT method usage fix
1 parent 76ee33a commit 9f50a23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/WebFluxSseIntegrationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ void testToolCallSuccess(String clientType) {
384384
var clientBuilder = clientBulders.get(clientType);
385385

386386
var callResponse = new McpSchema.CallToolResult(List.of(new McpSchema.TextContent("CALL RESPONSE")), null);
387-
McpServerFeatures.SyncToolRegistration tool1 = new McpServerFeatures.SyncToolRegistration(
388-
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), request -> {
387+
McpServerFeatures.SyncToolSpecification tool1 = new McpServerFeatures.SyncToolSpecification(
388+
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
389389
// perform a blocking call to a remote service
390390
String response = RestClient.create()
391391
.get()
@@ -424,8 +424,8 @@ void testToolListChangeHandlingSuccess(String clientType) {
424424
var clientBuilder = clientBulders.get(clientType);
425425

426426
var callResponse = new McpSchema.CallToolResult(List.of(new McpSchema.TextContent("CALL RESPONSE")), null);
427-
McpServerFeatures.SyncToolRegistration tool1 = new McpServerFeatures.SyncToolRegistration(
428-
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), request -> {
427+
McpServerFeatures.SyncToolSpecification tool1 = new McpServerFeatures.SyncToolSpecification(
428+
new McpSchema.Tool("tool1", "tool1 description", emptyJsonSchema), (exchange, request) -> {
429429
// perform a blocking call to a remote service
430430
String response = RestClient.create()
431431
.get()

0 commit comments

Comments
 (0)