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
fix: recent_activity dedup + pagination across MCP tools
A user reported that recent_activity returns only 1 distinct note even
though 9 were modified. Root cause: the API defaults to returning ALL
types (entity, observation, relation), so a single well-connected entity
fills the entire page with its observations and relations.
Changes:
- 🎯 Default to entity-only in recent_activity MCP tool when no type specified
- 📄 Expose page/page_size params on recent_activity (were hardcoded)
- ✅ Add has_more field to GraphContext and SearchResponse (N+1 trick)
- 📝 Show pagination guidance ("Use page=2 to see more") in text output
The API layer stays unchanged — it still accepts all types. This is
purely an MCP tool UX default so LLMs see distinct notes by default.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>
0 commit comments