user-scoped long-term memory via Memcode MCP
cc @spring-projects for your thoughts on this integration.
@snicoll, Spring AI already has a strong ChatMemoryRepository abstraction for conversation history, so I am not proposing another transcript store. The separate use case is durable, user-approved facts and preferences that can be recalled across conversations and applications.
Expected Behavior
Would a small Memcode MCP integration example fit Spring AI's existing MCP client support? Memcode exposes personal memory tools through hosted MCP and OAuth with dynamic client registration. An example could show developers how to let an agent explicitly save or retrieve a selected fact, while keeping Spring AI's existing chat memory responsible for the current conversation.
Current Behavior
Spring AI can connect to MCP servers, and its chat memory repositories persist conversation messages. I could not find an example for connecting those capabilities to a separate, user-scoped long-term memory service without treating the complete conversation as memory.
Context
The integration would be opt-in and use the authenticated user's identity. It would not send full chat histories, system prompts, credentials, or caller-supplied attribution values. If useful, I can prepare a focused documentation and test PR. Would you prefer an MCP client example, or is there another extension point that better fits Spring AI?
Source: spring-projects/spring-ai