feat(mcp-search): add compact mode for search results #299
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#299
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Search results can become very large when returning many items, causing output to exceed token limits:
A search with 44 items generated ~115k characters because each item includes all fields:
text(full observation text)narrative(detailed narrative)concepts(JSON array)facts(JSON array)files_read(JSON array)files_modified(JSON array)Proposed Solution
Add a
compactorfieldsparameter to the search endpoint:Option A: Compact Mode
Returns only essential fields:
idtitlesubtitletypecreated_atprojectOption B: Field Selection
Allows explicit field selection.
Benefits
get_observationsfor specific IDsImplementation Notes
compact: truethe default for large result sets (e.g., >20 items)