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
{{ message }}
Repository navigation
[BUG] write_note MCP tool ignores entity_type parameter and forces all entities to type "note" #144
The write_note MCP tool hardcodes entity_type="note" in the source code, ignoring any entity_type parameter that could be passed and preventing creation of other entity types like "guide", "config", "report", etc.
Expected Behavior
write_note should accept an optional entity_type parameter to create different entity types:
write_note(title="My Guide", content="...", entity_type="guide") should create type "guide"
write_note(title="My Report", content="...", entity_type="report") should create type "report"
Current Behavior
All entities created via write_note are forced to type: note regardless of intention.
Evidence
In the v0.13.0 source code at /basic_memory/mcp/tools/write_note.py line 77:
Activity
phernandez commentedon Jun 18, 2025
@claude this looks like a good bug find. can you make a PR with a test and a fix?
claude commentedon Jun 18, 2025
Claude finished @phernandez's task —— View job •
claude/issue-144-20250618_141005• Create PR ➔✅ Fixed Issue #144: write_note entity_type parameter bug
Created a PR with test and fix as requested.
Todo List:
Run linting and formatting(No Bash permissions)Run tests to ensure no regressions(No Bash permissions)✅ Solution Summary:
Fixed the hardcoded
entity_type="note"bug by:entity_type: str = "note"parameter towrite_note()function🧪 Tests Added:
🚀 Changes Committed:
src/basic_memory/mcp/tools/write_note.py- Implementation fixtests/mcp/test_tool_write_note.py- Comprehensive tests7817ea8- "fix: add entity_type parameter to write_note MCP tool"Cannot run linting/formatting/tests due to missing Bash permissions. Please run these commands to verify:
just test(oruv run pytest -p pytest_mock -v)just lint(orruff check . --fix)just format(oruv run ruff format .)fix: add entity_type parameter to write_note MCP tool
fix: respect frontmatter entity_type in write_note operations
fix: add entity_type parameter to write_note MCP tool
fix: respect frontmatter entity_type in write_note operations