Skip to content

Commit 6c9246e

Browse files
committed
Added more public methods
1 parent a670754 commit 6c9246e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/server/McpServerFeatures.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public static Builder builder() {
354354
public record AsyncResourceSpecification(McpSchema.Resource resource,
355355
BiFunction<McpAsyncServerExchange, McpSchema.ReadResourceRequest, Mono<McpSchema.ReadResourceResult>> readHandler) {
356356

357-
static AsyncResourceSpecification fromSync(SyncResourceSpecification resource, boolean immediateExecution) {
357+
public static AsyncResourceSpecification fromSync(SyncResourceSpecification resource, boolean immediateExecution) {
358358
// FIXME: This is temporary, proper validation should be implemented
359359
if (resource == null) {
360360
return null;
@@ -394,7 +394,7 @@ static AsyncResourceSpecification fromSync(SyncResourceSpecification resource, b
394394
public record AsyncResourceTemplateSpecification(McpSchema.ResourceTemplate resourceTemplate,
395395
BiFunction<McpAsyncServerExchange, McpSchema.ReadResourceRequest, Mono<McpSchema.ReadResourceResult>> readHandler) {
396396

397-
static AsyncResourceTemplateSpecification fromSync(SyncResourceTemplateSpecification resource,
397+
public static AsyncResourceTemplateSpecification fromSync(SyncResourceTemplateSpecification resource,
398398
boolean immediateExecution) {
399399
// FIXME: This is temporary, proper validation should be implemented
400400
if (resource == null) {
@@ -442,7 +442,7 @@ static AsyncResourceTemplateSpecification fromSync(SyncResourceTemplateSpecifica
442442
public record AsyncPromptSpecification(McpSchema.Prompt prompt,
443443
BiFunction<McpAsyncServerExchange, McpSchema.GetPromptRequest, Mono<McpSchema.GetPromptResult>> promptHandler) {
444444

445-
static AsyncPromptSpecification fromSync(SyncPromptSpecification prompt, boolean immediateExecution) {
445+
public static AsyncPromptSpecification fromSync(SyncPromptSpecification prompt, boolean immediateExecution) {
446446
// FIXME: This is temporary, proper validation should be implemented
447447
if (prompt == null) {
448448
return null;
@@ -482,7 +482,7 @@ public record AsyncCompletionSpecification(McpSchema.CompleteReference reference
482482
* @return an asynchronous wrapper of the provided sync specification, or
483483
* {@code null} if input is null
484484
*/
485-
static AsyncCompletionSpecification fromSync(SyncCompletionSpecification completion,
485+
public static AsyncCompletionSpecification fromSync(SyncCompletionSpecification completion,
486486
boolean immediateExecution) {
487487
if (completion == null) {
488488
return null;

0 commit comments

Comments
 (0)