feat: agent memory MVP — 4 MCP tools, 3 visibility levels, dashboard#72
Merged
matthiastjong merged 9 commits intomainfrom May 1, 2026
Merged
feat: agent memory MVP — 4 MCP tools, 3 visibility levels, dashboard#72matthiastjong merged 9 commits intomainfrom
matthiastjong merged 9 commits intomainfrom
Conversation
Three-tier visibility (org/user/token), index+detail retrieval pattern, 4 MCP tools, defaultUser identity binding on tokens, read-only dashboard. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 tasks: schema, tokens service, memories service with TDD, MCP tools, discovery integration, defaultUser UI, dashboard page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ultUser Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements addMemory, listMemories, readMemory, deleteMemory, and countMemories with org/user/token visibility scoping and full integration test coverage. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…memory_delete) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
memory_list(compact index),memory_read(full content),memory_add,memory_deletedefaultUseron tokens: server-side identity binding — personal tokens always resolve to correct user/memoriespage with search, visibility filters, click-to-expand detailmemoryCountin discover responseDesign decisions
memory_listreturns summaries only,memory_readfetches full content on demandhasMoreflag — signals when V2 (semantic search) is neededFiles
src/lib/server/db/schema.tsmemoriestable +defaultUseron tokenssrc/lib/server/services/memories.tssrc/lib/server/services/tokens.tsdefaultUserin queries +updateDefaultUsersrc/lib/server/mcp/tools/memories.tsresolveUsersrc/lib/server/mcp/server.tssrc/lib/server/mcp/tools/discover.tsmemoryCountsrc/routes/(app)/memories/src/routes/(app)/api-keys/[id]/defaultUserfield on token detailsrc/lib/components/app-sidebar.sveltetests/integration/memories.test.tsCloses DEA-4116
Test plan
vite build)svelte-check— 0 errors)🤖 Generated with Claude Code