@@ -94,7 +94,7 @@ public Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities s
9494 * @return a specification which is protected from blocking calls specified by the
9595 * user.
9696 */
97- static Async fromSync (Sync syncSpec , boolean immediateExecution ) {
97+ public static Async fromSync (Sync syncSpec , boolean immediateExecution ) {
9898 List <McpStatelessServerFeatures .AsyncToolSpecification > tools = new ArrayList <>();
9999 for (var tool : syncSpec .tools ()) {
100100 tools .add (AsyncToolSpecification .fromSync (tool , immediateExecution ));
@@ -136,7 +136,7 @@ static Async fromSync(Sync syncSpec, boolean immediateExecution) {
136136 * @param prompts The map of prompt specifications
137137 * @param instructions The server instructions text
138138 */
139- record Sync (McpSchema .Implementation serverInfo , McpSchema .ServerCapabilities serverCapabilities ,
139+ public record Sync (McpSchema .Implementation serverInfo , McpSchema .ServerCapabilities serverCapabilities ,
140140 List <McpStatelessServerFeatures .SyncToolSpecification > tools ,
141141 Map <String , McpStatelessServerFeatures .SyncResourceSpecification > resources ,
142142 Map <String , McpStatelessServerFeatures .SyncResourceTemplateSpecification > resourceTemplates ,
@@ -154,7 +154,7 @@ record Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities se
154154 * @param prompts The map of prompt specifications
155155 * @param instructions The server instructions text
156156 */
157- Sync (McpSchema .Implementation serverInfo , McpSchema .ServerCapabilities serverCapabilities ,
157+ public Sync (McpSchema .Implementation serverInfo , McpSchema .ServerCapabilities serverCapabilities ,
158158 List <McpStatelessServerFeatures .SyncToolSpecification > tools ,
159159 Map <String , McpStatelessServerFeatures .SyncResourceSpecification > resources ,
160160 Map <String , McpStatelessServerFeatures .SyncResourceTemplateSpecification > resourceTemplates ,
@@ -199,11 +199,11 @@ record Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities se
199199 public record AsyncToolSpecification (McpSchema .Tool tool ,
200200 BiFunction <McpTransportContext , CallToolRequest , Mono <McpSchema .CallToolResult >> callHandler ) {
201201
202- static AsyncToolSpecification fromSync (SyncToolSpecification syncToolSpec ) {
202+ public static AsyncToolSpecification fromSync (SyncToolSpecification syncToolSpec ) {
203203 return fromSync (syncToolSpec , false );
204204 }
205205
206- static AsyncToolSpecification fromSync (SyncToolSpecification syncToolSpec , boolean immediate ) {
206+ public static AsyncToolSpecification fromSync (SyncToolSpecification syncToolSpec , boolean immediate ) {
207207
208208 // FIXME: This is temporary, proper validation should be implemented
209209 if (syncToolSpec == null ) {
@@ -291,7 +291,7 @@ public static Builder builder() {
291291 public record AsyncResourceSpecification (McpSchema .Resource resource ,
292292 BiFunction <McpTransportContext , McpSchema .ReadResourceRequest , Mono <McpSchema .ReadResourceResult >> readHandler ) {
293293
294- static AsyncResourceSpecification fromSync (SyncResourceSpecification resource , boolean immediateExecution ) {
294+ public static AsyncResourceSpecification fromSync (SyncResourceSpecification resource , boolean immediateExecution ) {
295295 // FIXME: This is temporary, proper validation should be implemented
296296 if (resource == null ) {
297297 return null ;
@@ -330,7 +330,7 @@ static AsyncResourceSpecification fromSync(SyncResourceSpecification resource, b
330330 public record AsyncResourceTemplateSpecification (McpSchema .ResourceTemplate resourceTemplate ,
331331 BiFunction <McpTransportContext , McpSchema .ReadResourceRequest , Mono <McpSchema .ReadResourceResult >> readHandler ) {
332332
333- static AsyncResourceTemplateSpecification fromSync (SyncResourceTemplateSpecification resource ,
333+ public static AsyncResourceTemplateSpecification fromSync (SyncResourceTemplateSpecification resource ,
334334 boolean immediateExecution ) {
335335 // FIXME: This is temporary, proper validation should be implemented
336336 if (resource == null ) {
@@ -362,7 +362,7 @@ static AsyncResourceTemplateSpecification fromSync(SyncResourceTemplateSpecifica
362362 public record AsyncPromptSpecification (McpSchema .Prompt prompt ,
363363 BiFunction <McpTransportContext , McpSchema .GetPromptRequest , Mono <McpSchema .GetPromptResult >> promptHandler ) {
364364
365- static AsyncPromptSpecification fromSync (SyncPromptSpecification prompt , boolean immediateExecution ) {
365+ public static AsyncPromptSpecification fromSync (SyncPromptSpecification prompt , boolean immediateExecution ) {
366366 // FIXME: This is temporary, proper validation should be implemented
367367 if (prompt == null ) {
368368 return null ;
@@ -400,7 +400,7 @@ public record AsyncCompletionSpecification(McpSchema.CompleteReference reference
400400 * @return an asynchronous wrapper of the provided sync specification, or
401401 * {@code null} if input is null
402402 */
403- static AsyncCompletionSpecification fromSync (SyncCompletionSpecification completion ,
403+ public static AsyncCompletionSpecification fromSync (SyncCompletionSpecification completion ,
404404 boolean immediateExecution ) {
405405 if (completion == null ) {
406406 return null ;
0 commit comments