Skip to content

Commit 5725c21

Browse files
author
Scott Lewis
committed
Added toAsync as public.
1 parent 757d722 commit 5725c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities s
101101
* @return a specification which is protected from blocking calls specified by the
102102
* user.
103103
*/
104-
static Async fromSync(Sync syncSpec, boolean immediateExecution) {
104+
public static Async fromSync(Sync syncSpec, boolean immediateExecution) {
105105
List<McpServerFeatures.AsyncToolSpecification> tools = new ArrayList<>();
106106
for (var tool : syncSpec.tools()) {
107107
tools.add(AsyncToolSpecification.fromSync(tool, immediateExecution));

0 commit comments

Comments
 (0)