@@ -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