MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_missing_tools

Method get_missing_tools

server_capabilities.py:279–296  ·  view source on GitHub ↗

Get list of missing tools for a feature

(self, feature: str)

Source from the content-addressed store, hash-verified

277 caps.traffic_capable
278 and caps.total_ram_gb >= self.TRAFFIC_SIDECAR_MIN_RAM_GB
279 and caps.available_tools.get('tshark', False)
280 )
281
282 if caps.is_server_capable:
283 # Advanced Vuln: needs nmap (which Ragnar already uses)
284 caps.advanced_vuln_enabled = caps.available_tools.get('nmap', False)
285
286 # Parallel scanning: enabled on multi-core systems
287 caps.parallel_scanning_enabled = caps.cpu_cores >= 4
288
289 # Local AI: check for Ollama
290 caps.local_ai_enabled = shutil.which('ollama') is not None
291
292 # Large dictionaries: enabled on 7.5GB+ RAM (8GB devices report ~7.87GB)
293 caps.large_dictionaries_enabled = caps.total_ram_gb >= 7.5
294 else:
295 # Server-class features stay off on Pi Zero / low-spec systems.
296 # Traffic Analysis is deliberately not in this list - see above.
297 caps.advanced_vuln_enabled = False
298 caps.parallel_scanning_enabled = False
299 caps.local_ai_enabled = False

Callers 2

install_missing_toolsMethod · 0.95
install_server_toolsFunction · 0.80

Calls 3

appendMethod · 0.80
itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected