Skip to content

fix(mcp): allow scope=personal to search across projects#398

Open
rudi193-cmd wants to merge 1 commit into
Gentleman-Programming:mainfrom
rudi193-cmd:fix/mcp-personal-cross-project
Open

fix(mcp): allow scope=personal to search across projects#398
rudi193-cmd wants to merge 1 commit into
Gentleman-Programming:mainfrom
rudi193-cmd:fix/mcp-personal-cross-project

Conversation

@rudi193-cmd
Copy link
Copy Markdown

Summary

Fixes #391mem_search and mem_context with scope=personal were still filtered by the auto-detected project, so personal memories from project A were invisible from project B.

Changes

  • Add filterProjectForScope() — when scope=personal and no explicit project argument, omit the project SQL filter
  • Apply to handleSearch and handleContext only (saves still auto-fill project for authoring)
  • Tests: TestHandleSearchPersonalScopeCrossProject, TestHandleContextPersonalScopeCrossProject

Test plan

  • go test ./internal/mcp/ -run 'PersonalScopeCrossProject'

Made with Cursor

When callers pass scope=personal without an explicit project override,
do not apply the auto-detected project filter on mem_search and mem_context.

Fixes Gentleman-Programming#391

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(mcp): scope=personal still filters by current project, blocking cross-project memory visibility

1 participant