Skip to content

Commit d5674ab

Browse files
committed
refactor: modify variable name
1 parent 2550491 commit d5674ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcp/src/main/java/io/modelcontextprotocol/client/McpAsyncClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,11 +594,11 @@ private McpSchema.ListToolsResult mergeToolsAnnotations(McpSchema.ListToolsResul
594594
}
595595

596596
List<McpSchema.Tool> mergedTools = listToolsResult.tools().stream().map(tool -> {
597-
McpSchema.ToolAnnotations newAnno = this.toolAnnotationsHandler.apply(tool.name());
598-
if (newAnno == null) {
597+
McpSchema.ToolAnnotations clientAnnoProperties = this.toolAnnotationsHandler.apply(tool.name());
598+
if (clientAnnoProperties == null) {
599599
return tool; // no update needed
600600
}
601-
McpSchema.ToolAnnotations mergedAnno = mergeAnnotations(tool.annotations(), newAnno);
601+
McpSchema.ToolAnnotations mergedAnno = mergeAnnotations(tool.annotations(), clientAnnoProperties);
602602
return McpSchema.Tool.builder()
603603
.name(tool.name())
604604
.title(tool.title())

0 commit comments

Comments
 (0)