Skip to content

Commit f8dc0d2

Browse files
fix: array-to-List bug and clarify synchronous usage in “Async” classes
Signed-off-by: kimsunghyun <[email protected]>
1 parent 3756e16 commit f8dc0d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mcp/common/src/main/java/org/springframework/ai/mcp/McpToolUtils.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.ai.mcp;
1818

19+
import java.util.Arrays;
1920
import java.util.List;
2021
import java.util.Map;
2122
import java.util.Optional;
@@ -323,7 +324,7 @@ public static List<ToolCallback> getToolCallbacksFromSyncClients(List<McpSyncCli
323324
if (CollectionUtils.isEmpty(mcpClients)) {
324325
return List.of();
325326
}
326-
return List.of((new SyncMcpToolCallbackProvider(mcpClients).getToolCallbacks()));
327+
return Arrays.asList(new SyncMcpToolCallbackProvider(mcpClients).getToolCallbacks());
327328
}
328329

329330
/**

0 commit comments

Comments
 (0)