@@ -459,7 +459,7 @@ static AsyncToolRegistration fromSync(SyncToolRegistration tool) {
459
459
map -> Mono .fromCallable (() -> tool .call ().apply (map )).subscribeOn (Schedulers .boundedElastic ()));
460
460
}
461
461
462
- AsyncToolSpecification toSpecification () {
462
+ public AsyncToolSpecification toSpecification () {
463
463
return new AsyncToolSpecification (tool (), (exchange , map ) -> call .apply (map ));
464
464
}
465
465
}
@@ -505,7 +505,7 @@ static AsyncResourceRegistration fromSync(SyncResourceRegistration resource) {
505
505
.subscribeOn (Schedulers .boundedElastic ()));
506
506
}
507
507
508
- AsyncResourceSpecification toSpecification () {
508
+ public AsyncResourceSpecification toSpecification () {
509
509
return new AsyncResourceSpecification (resource (), (exchange , request ) -> readHandler .apply (request ));
510
510
}
511
511
}
@@ -554,7 +554,7 @@ static AsyncPromptRegistration fromSync(SyncPromptRegistration prompt) {
554
554
.subscribeOn (Schedulers .boundedElastic ()));
555
555
}
556
556
557
- AsyncPromptSpecification toSpecification () {
557
+ public AsyncPromptSpecification toSpecification () {
558
558
return new AsyncPromptSpecification (prompt (), (exchange , request ) -> promptHandler .apply (request ));
559
559
}
560
560
}
@@ -597,7 +597,7 @@ AsyncPromptSpecification toSpecification() {
597
597
@ Deprecated
598
598
public record SyncToolRegistration (McpSchema .Tool tool ,
599
599
Function <Map <String , Object >, McpSchema .CallToolResult > call ) {
600
- SyncToolSpecification toSpecification () {
600
+ public SyncToolSpecification toSpecification () {
601
601
return new SyncToolSpecification (tool , (exchange , map ) -> call .apply (map ));
602
602
}
603
603
}
@@ -632,7 +632,7 @@ SyncToolSpecification toSpecification() {
632
632
@ Deprecated
633
633
public record SyncResourceRegistration (McpSchema .Resource resource ,
634
634
Function <McpSchema .ReadResourceRequest , McpSchema .ReadResourceResult > readHandler ) {
635
- SyncResourceSpecification toSpecification () {
635
+ public SyncResourceSpecification toSpecification () {
636
636
return new SyncResourceSpecification (resource , (exchange , request ) -> readHandler .apply (request ));
637
637
}
638
638
}
@@ -670,7 +670,7 @@ SyncResourceSpecification toSpecification() {
670
670
@ Deprecated
671
671
public record SyncPromptRegistration (McpSchema .Prompt prompt ,
672
672
Function <McpSchema .GetPromptRequest , McpSchema .GetPromptResult > promptHandler ) {
673
- SyncPromptSpecification toSpecification () {
673
+ public SyncPromptSpecification toSpecification () {
674
674
return new SyncPromptSpecification (prompt , (exchange , request ) -> promptHandler .apply (request ));
675
675
}
676
676
}
0 commit comments