最近在折腾MCP(Model Context Protocol),想给AI助手接个长期记忆。看了下官方文档,发现MCP可以对接向量数据库,用embedding存对话历史,然后通过retrieve工具召回相关上下文。