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

Function get_server_capabilities

server_capabilities.py:353–358  ·  view source on GitHub ↗

Get or create the global ServerCapabilities instance

(shared_data=None)

Source from the content-addressed store, hash-verified

351 if caps.architecture not in self.SUPPORTED_ARCHS:
352 return False, (
353 f"Traffic Analysis does not support this architecture "
354 f"({caps.architecture or 'unknown'})."
355 )
356 # A RAM read of 0 means psutil and /proc/meminfo both failed. Fail
357 # closed rather than start a capture on a box we cannot measure.
358 if ram_gb <= 0:
359 return False, "Traffic Analysis could not read this system's RAM size."
360 if ram_gb < self.TRAFFIC_MIN_RAM_GB:
361 return False, (

Callers 9

is_availableMethod · 0.90
__init__Method · 0.90
is_availableMethod · 0.90
__init__Method · 0.90
is_availableMethod · 0.90
install_server_toolsFunction · 0.90
is_server_modeFunction · 0.85

Calls 1

ServerCapabilitiesClass · 0.85

Tested by

no test coverage detected