展示HN:Cursor IDE 现在通过 MCP 记住你的编码偏好设置

2作者: roseway423 天前原帖
你好,我是来自Zep的Daniel。我将Cursor IDE与Graphiti(我们的开源时间知识图谱框架)进行了整合,以便为Cursor提供跨会话的持久记忆。我们的目标很简单:帮助Cursor记住你的编码偏好、标准和项目规格,这样你就不必不断提醒它。 在这次整合之前,Cursor(许多人每天都在使用的AI辅助IDE)缺乏一种有效的方式来持久化用户上下文。为了解决这个问题,我使用了Graphiti的模型上下文协议(MCP)服务器,这使得IDE与Graphiti的时间知识图谱之间能够进行结构化数据交换。 以下是这一过程的关键点: - 自定义实体如“需求”、“偏好”和“程序”能够准确捕捉编码标准和项目规格。 - 实时更新使得Cursor能够即时适应——如果你更改框架或更新标准,记忆会立即更新。 - 持久检索确保Cursor始终能够记住你最新的偏好和项目决策,无论是在新的代理会话、项目中,还是在重启IDE后。 我非常希望能听到你的反馈,特别是关于这种方法以及它如何融入你的工作流程。 以下是详细的说明: [https://www.getzep.com/blog/cursor-adding-memory-with-graphiti-mcp](https://www.getzep.com/blog/cursor-adding-memory-with-graphiti-mcp) GitHub仓库:[https://github.com/getzep/graphiti](https://github.com/getzep/graphiti) - Daniel
查看原文
Hi, I&#x27;m Daniel from Zep. I&#x27;ve integrated the Cursor IDE with Graphiti, our open-source temporal knowledge graph framework, to provide Cursor with persistent memory across sessions. The goal was simple: help Cursor remember your coding preferences, standards, and project specs, so you don&#x27;t have to constantly remind it.<p>Before this integration, Cursor (an AI-assisted IDE many of us already use daily) lacked a robust way to persist user context. To solve this, I used Graphiti’s Model Context Protocol (MCP) server, which allows structured data exchange between the IDE and Graphiti&#x27;s temporal knowledge graph.<p>Key points of how this works:<p>- Custom entities like &#x27;Requirement&#x27;, &#x27;Preference&#x27;, and &#x27;Procedure&#x27; precisely capture coding standards and project specs.<p>- Real-time updates let Cursor adapt instantly—if you change frameworks or update standards, the memory updates immediately.<p>- Persistent retrieval ensures Cursor always recalls your latest preferences and project decisions, across new agent sessions, projects, and even after restarting the IDE.<p>I’d love your feedback—particularly on the approach and how it fits your workflow.<p>Here&#x27;s a detailed write-up: <a href="https:&#x2F;&#x2F;www.getzep.com&#x2F;blog&#x2F;cursor-adding-memory-with-graphiti-mcp&#x2F;">https:&#x2F;&#x2F;www.getzep.com&#x2F;blog&#x2F;cursor-adding-memory-with-graphi...</a><p>GitHub Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;getzep&#x2F;graphiti" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;getzep&#x2F;graphiti</a><p>-Daniel