Skip to content

[BUG] recent_activity prompt always returns "0 projects" regardless of actual activity #526

@InquisitiveBadger

Description

@InquisitiveBadger

[BUG] recent_activity prompt always returns "0 projects" regardless of actual activity

recent_activity MCP prompt always returns "0 projects" regardless of actual activity

Description

The recent_activity MCP prompt returns "Found activity across 0 projects" even when the recent_activity MCP tool returns valid
results for the same timeframe.

Steps to Reproduce

  1. Have existing activity in Basic Memory (notes, observations, etc.)
  2. Invoke the MCP prompt via Claude Code: /basic-memory:recent_activity 4d
  3. Observe the output shows "Found activity across 0 projects"
  4. Call the MCP tool with the same timeframe: recent_activity(timeframe="4d")
  5. Observe the tool correctly returns activity data

Expected Behavior

The recent_activity prompt should display the same activity data that the tool returns, formatted for the conversation context.

Actual Behavior

The prompt always returns:
Found activity across 0 projects. Most active: Unknown

...followed by a template suggesting the user create a cross-project summary, rather than showing actual activity.

Environment

  • Basic Memory version: 0.16.2
  • Client: Claude Code CLI
  • OS: macOS (Darwin 25.2.0)

Additional Context

Method Timeframe Result
Prompt 1d "0 projects" ❌
Prompt 4d "0 projects" ❌
Tool 4d 10 items found ✅
Tool 7d 10 items found ✅

The tool correctly finds activity in the "main" project, but the prompt appears to not be receiving or rendering this data.

Possibly related: the prompt also fails with "Error rendering prompt recent_activity" when timeframe is omitted, even though the tool
handles missing timeframe gracefully (defaults to 7d).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions