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

Method _check_tool_availability

server_capabilities.py:224–229  ·  view source on GitHub ↗

Check which security tools are available

(self)

Source from the content-addressed store, hash-verified

222 model = f.read().lower().strip('\x00')
223 logger.debug(f"Detected device model: {model}")
224
225 # Pi 4 and Pi 5 with sufficient RAM are server-capable
226 if 'raspberry pi 5' in model or 'raspberry pi 4' in model:
227 if self.capabilities.total_ram_gb >= 4.0:
228 logger.info(f"Detected capable Raspberry Pi: {model.strip()}")
229 self.capabilities.is_pi_zero = False
230 return
231
232 # Only mark as Pi Zero if explicitly a Zero model

Callers 2

detect_capabilitiesMethod · 0.95
install_missing_toolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected