From 59eae34deea492eac0d3ff6c18a661e2bb6e7b4b Mon Sep 17 00:00:00 2001 From: phernandez Date: Fri, 8 Aug 2025 15:25:33 -0500 Subject: [PATCH] fix: Update function name in error messages to use correct search_notes Corrects error message templates to reference the actual search_notes function name for consistency. --- src/basic_memory/mcp/tools/read_note.py | 4 ++-- tests/mcp/test_tool_read_note.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic_memory/mcp/tools/read_note.py b/src/basic_memory/mcp/tools/read_note.py index 3e6629a2..1d1adec8 100644 --- a/src/basic_memory/mcp/tools/read_note.py +++ b/src/basic_memory/mcp/tools/read_note.py @@ -111,7 +111,7 @@ def format_not_found_message(identifier: str) -> str: ## Search Instead Try searching for related content: ``` - search(query="{identifier}") + search_notes(query="{identifier}") ``` ## Recent Activity @@ -172,7 +172,7 @@ def format_related_results(identifier: str, results) -> str: ## Search For More Results To see more related content: ``` - search(query="{identifier}") + search_notes(query="{identifier}") ``` ## Create New Note diff --git a/tests/mcp/test_tool_read_note.py b/tests/mcp/test_tool_read_note.py index fb82216d..831e9888 100644 --- a/tests/mcp/test_tool_read_note.py +++ b/tests/mcp/test_tool_read_note.py @@ -267,7 +267,7 @@ async def test_read_note_text_search_fallback(mock_call_get, mock_search): assert "Related Note 1" in result assert "Related Note 2" in result assert 'read_note("notes/related-note-1")' in result - assert "search(query=" in result + assert "search_notes(query=" in result assert "write_note(" in result