mirror of
https://github.com/akitaonrails/ai-memory.git
synced 2026-10-02 03:24:46 +08:00
The README Docker quick-start produced a non-working native-agent setup on macOS. Three independent breakages are fixed here: 1. The macOS wrapper baked the container-only host.docker.internal URL into the *host* agent config (the MCP url + AI_MEMORY_HOOK_URL on every hook), so MCP and capture failed silently. install-mcp, install-hooks and setup-agent now render the host-reachable http://127.0.0.1:49374, decoupled from the host.docker.internal URL the wrapper still uses for its own in-container thin-client commands. 2. Those thin-client commands (status, ...) were rejected with "403 forbidden host" because the server's loopback-only Host allowlist excluded host.docker.internal. The Docker image now ships it in the default AI_MEMORY_ALLOWED_HOSTS; native installs stay loopback-only and exposed deployments still override the env entirely. 3. setup-agent/install-hooks could not locate the hooks bundle that ships beside the binary in the release tarball (the probe derived a bogus /private/hooks/...). The binary-sibling hooks/ dir is now on the search path, so --source is no longer required. Issue point 1 (:latest single-arch) is already fixed on main: the release manifest job publishes :latest as a multi-arch list; it ships with the next tagged release.