MCPcopy
hub / github.com/collabnix/kubetools / deduplicate_tools

Method deduplicate_tools

scripts/discover_tools.py:109–120  ·  view source on GitHub ↗

Remove duplicate tools

(self, tools)

Source from the content-addressed store, hash-verified

107 return tool['stars'] >= 3 and len(tool['description']) > 10 and has_k8s_relation
108
109 def deduplicate_tools(self, tools):
110 """Remove duplicate tools"""
111 seen = set()
112 unique_tools = []
113
114 for tool in tools:
115 key = tool['full_name']
116 if key not in seen:
117 seen.add(key)
118 unique_tools.append(tool)
119
120 return unique_tools
121
122 def save_results(self, tools):
123 """Save discovered tools to files"""

Callers 1

search_new_toolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected