Files
basicmachines-co-basic-memory/tests/mcp
claude[bot] f64f7b5cfc fix(mcp): remove hardcoded display cap of 5 in recent_activity formatter
The _format_project_output function was slicing entities[:5] and
relations[:5] (and observations[:10]) regardless of the page_size
parameter. Since the API already paginates by page_size, these caps
caused the formatter to silently drop results that the API returned,
producing misleading output (heading says N items, body shows only 5).

Remove the formatter-side slices entirely; the API is the canonical
source of truth on how many items to return per page.

Add regression test with 9 entities to prevent recurrence.

Fixes #784

Co-authored-by: Drew Cain <groksrc@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
2026-05-03 02:03:33 +00:00
..