File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mcp/src/main/java/io/modelcontextprotocol/client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -594,11 +594,11 @@ private McpSchema.ListToolsResult mergeToolsAnnotations(McpSchema.ListToolsResul
594
594
}
595
595
596
596
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 ) {
599
599
return tool ; // no update needed
600
600
}
601
- McpSchema .ToolAnnotations mergedAnno = mergeAnnotations (tool .annotations (), newAnno );
601
+ McpSchema .ToolAnnotations mergedAnno = mergeAnnotations (tool .annotations (), clientAnnoProperties );
602
602
return McpSchema .Tool .builder ()
603
603
.name (tool .name ())
604
604
.title (tool .title ())
You can’t perform that action at this time.
0 commit comments