Skip to content

bm_schema no-schema guidance tells cloud users to run bm reindex --search #1985

Closed

Description

@groksrc

bm_schema tells users with no schema note to "run bm reindex --search or wait for the file watcher". Cloud users have no CLI and no file watcher, so that step cannot be followed there.

What happens

Found in a 1.0 live MCP test against the hosted server (post-1.0), on v1.0.0 (c9bd187).

bm_schema(command="validate", note_type="smoketest"), with no schema note for that type, returns NOT_FOUND with these steps:

2. **Create a schema note** — write a markdown file with this frontmatter: ...
3. **Index** — run `bm reindex --search` or wait for the file watcher to pick up the new schema note
4. **Re-run** — call `bm_schema(command='validate', note_type='smoketest')` again

Why

_no_schema_guidance() in src/basic_memory/mcp/tools/note_schemas.py:230-265 hardcodes the local CLI step (lines 261-262). Step 2 also assumes the user edits files directly. Nothing checks the environment.

Expected

Steps that work in every environment, in tool terms:

  1. Create the schema note with bm_write(note_type="schema", metadata={"entity": "<type>", "schema": {...}}).
  2. A note saved with bm_write is indexed right away, so there is no separate index step.

Proposed fix

Rewrite steps 2–3 as above. If the CLI line stays, keep it as a footnote for notes edited outside Basic Memory.

🤖 Generated with Claude Code

Activity

  1. added
    bugSomething isn't working
    cloudBasic Memory Cloud
    on Oct 30, 2026
  2. claude commented on Oct 30, 2026

    @claude
    Contributor

    Claude finished @groksrc's task in 12s —— View job


    Triage

    • Type: Bug (misleading user guidance); labeled bug + cloud
    • Component: MCP tools (bm_schema, _no_schema_guidance() in src/basic_memory/mcp/tools/note_schemas.py), affecting Cloud users
    • Priority: Medium. Nothing breaks, but cloud users get steps they can't follow (no CLI, no file watcher).
    • Complexity: Simple. It's a text change in one function plus a matching test update.
    • Duplicates: I searched open and closed issues and found none.

    The report is clear and has a repro and a proposed fix. I need nothing more from the reporter. Triage only, so I haven't made any code changes.

  3. added a commit that references this issue on Oct 30, 2026
    4d58db0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcloudBasic Memory Cloud

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions