feat: Add MCP tool for searching cached documents #115
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#115
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
The
documentstable caches external documentation from Context7 (query-docs,resolve-library-id) and potentially WebFetch results. However, this cached content is not accessible via MCP tools.Currently, users can only access documents via direct database queries:
This means Claude cannot recall previously fetched documentation without re-querying Context7.
Proposed Solution
Add a new MCP tool
search_documents(or extendsearchwith asourceparameter):Option A: New dedicated tool
Option B: Extend existing search
Use Cases
Current Documents Schema
Implementation Notes
contentfield for full-text searchaccess_countandlast_accessed_epochon retrievalRelated
observation_idfield suggests documents can be linked to observationsVereinfachung: Keine Source-Unterscheidung
Nach Überlegung: Die
source-Filterung ist wahrscheinlich unnötig komplex.Einfacherer Ansatz:
Sucht einfach in allen gecachten Documents - egal ob Context7, WebFetch oder andere Quellen.
Vorteile:
Die
sourceundsource_toolFelder bleiben in der Response erhalten, sodass der User sieht woher das Ergebnis stammt - aber filtern muss man nicht danach.