statelessagent
by sgx-labs·★ 17·综合分 43
SAME 通过 MCP 为 AI 编程代理提供持久化记忆,实现跨会话上下文保持。
概述
SAME 是一个本地优先的 MCP 服务器,解决了 AI 助手在会话间遗忘上下文的问题。它索引 markdown 笔记,自动提供相关上下文,并通过 SQLite 存储维护决策历史。服务器提供 19 个 MCP 工具用于搜索、内存管理和会话交接,可与 Claude Code、Cursor、Windsurf 等 MCP 客户端协同工作,无需 API 密钥或云端依赖。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你需要为独立开发者或小型团队在AI编码会话间保持持久化记忆时,特别是同时使用多个AI工具(如Claude Code、Cursor或Windsurf)且希望无需云依赖地维持上下文时,选择SAME。
什么时候不要选它
如果你需要基于云的协作功能、企业级认证/SSO,或者更喜欢基于网络的知识管理解决方案而非本地优先方法,不要选择SAME。
此 server 暴露的工具
从 README 抽取出 12 个工具search_notesSemantic search across your knowledge base
search_notes_filteredSearch with domain/tag/agent filters
get_noteRead full note content by path
save_noteCreate or update a note
save_decisionLog a structured project decision
create_handoffWrite a session handoff
get_session_contextPinned notes + latest handoff + git state
mem_consolidateConsolidate related notes via LLM
mem_healthVault health with trust analysis
mem_forgetSuppress a note from search results
mem_restoreUndo mem_forget (unsuppress a note)
index_statsIndex health and statistics
可对比工具
安装
# macOS / Linux
curl -fsSL https://statelessagent.com/install.sh | bash
# Windows (PowerShell)
irm https://statelessagent.com/install.ps1 | iex也可通过 npm 安装(所有平台):npm install -g @sgx-labs/same
对于 Claude Desktop,添加到你的 claude_desktop_config.json 文件:
{
"mcpServers": {
"same": {
"command": "npx",
"args": ["-y", "@sgx-labs/same", "mcp", "--vault", "/path/to/your/notes"]
}
}
}FAQ
- SAME 是否需要互联网连接或云服务?
- 不需要,SAME 是完全本地优先的,可以在没有互联网连接的情况下运行。所有数据都保留在你的机器上。
- 哪些 AI 编程工具可与 SAME 协同工作?
- SAME 与 Claude Code(推荐)、Cursor、Windsurf、Codex CLI、Gemini CLI 以及任何 MCP 客户端集成,提供 19 个用于内存管理的 MCP 工具。
statelessagent 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。