You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic Memory has three entrypoints (API / MCP / CLI). Today, composition and runtime concerns (cloud/local/test, auth, transports) leak deep into modules. Composition roots make wiring explicit and reduce coupling.
Activity
claude commentedon Dec 31, 2025
Claude finished @phernandez's task in 5m 44s —— View job •
claude/issue-492-20251231-2159• Create PR ➔Issue #492: Add Composition Roots ✅
Implementation Complete
Containers Created:
api/container.py- API composition root (config + logging init)mcp/container.py- MCP composition root (config + logging + client factories)cli/container.py- CLI composition root (config + logging + client factories)Refactored Entrypoints:
api/app.py- Now usesAPIContainer.create()in lifespanmcp/server.py- Now usesMCPContainer.create()in lifespanmcp/async_client.py- Delegates toMCPContainerfor runtime mode selectionWhat This Achieves
Before:
ConfigManager().configAfter:
Container Responsibilities
Each container owns:
Testing Strategy
The implementation maintains backward compatibility:
Follow-up Work
This is foundational work that enables:
refactor: add composition roots for API, MCP, and CLI entrypoints (#492)