mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-06 08:35:21 +08:00
Replace static 2GB default with platform-aware auto-detection: - Linux: syscall.Sysinfo - macOS: sysctl hw.memsize - Windows: GlobalMemoryStatusEx Falls back to 4GB if detection fails. User config still overrides. Prevents both OOM kills (upper clamp) and excessive GC pressure (lower clamp).