context-engineering
by timothywarner-org·★ 23·综合分 45
生产就绪的 MCP 服务器,通过混合 RAG 和 CoALA 内存层级为 AI 助手实现语义记忆功能。
概述
这是一个全面的 MCP 服务器,实现了 WARNERCO Schematica 应用程序,展示了生产级别的语义记忆系统。它利用 FastMCP、FastAPI 和 LangGraph 实现了所有四个 CoALA 内存层级(工作记忆、情节记忆、语义记忆、程序记忆),并通过 9 节点管道进行处理。该服务器提供 28 个 MCP 工具、11 个资源和 5 个提示,用于构建具有持久记忆的 AI 系统。它具备渐进式工具加载功能,并使用 Park 等人的评分公式进行情节记忆检索。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要为AI助手实现综合记忆系统,特别是部署具有语义记忆、混合RAG功能的解决方案,或需要MCP实现的教育示例时,选择此服务器。
什么时候不要选它
如果您需要简单的MCP服务器而不需要完整记忆架构的复杂性,或者需要与除Claude之外的其他AI模型协作的解决方案,请不要选择此服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具warn_search_toolsKeyword discovery of MCP tools with detail levels
warn_describe_toolGet full schema for a specific MCP tool by name
parse_intentParse user intent for the LangGraph pipeline
query_graphQuery the knowledge graph for relationships and entities
inject_scratchpadInject working memory into the current session
recall_episodesRecall episodic memories based on relevance and importance
retrieveRetrieve information from semantic memory vector store
compress_contextCompress retrieved context for efficient processing
reasonReason over compressed context to generate insights
respondGenerate a response based on the processed context
log_episodeLog the current interaction as an episodic memory
warn_episodic_recallRecall episodic memories with detailed scoring breakdown
说明:Tool names inferred from the LangGraph pipeline description and CoALA memory tiers documentation. Descriptions are based on their roles in the pipeline and memory system. Signatures are not explicitly provided in the README.
可对比工具
安装
安装
前置要求
- Python 3.13(在
.python-version中指定) - Node.js 20+(用于 Lab 01 和 MCP Inspector)
- [uv](https://docs.astral.sh/uv/) 包管理器(推荐)
- Claude Desktop 或 Claude Code
选项 1:Hello MCP 实验室(初学者)
git clone https://github.com/timothywarner-org/context-engineering.git
cd context-engineering/labs/lab-01-hello-mcp/starter
npm install && npm start选项 2:WARNERCO Schematica(完整应用)
cd src/warnerco/backend
uv sync
uv run uvicorn app.main:app --reload # HTTP 服务器
uv run warnerco-mcp # MCP stdio 服务器Claude Desktop 配置
{
"mcpServers": {
"warnerco": {
"command": "uv",
"args": ["run", "warnerco-mcp"],
"cwd": "C:/github/context-engineering/src/warnerco/backend"
}
}
}FAQ
- CoALA 内存系统是什么?
- CoALA(上下文感知长期架构)是一个四层记忆系统,包含工作记忆、情节记忆、语义记忆和程序记忆,在此 MCP 服务器中实现。
- 如何测试此 MCP 服务器?
- 您可以使用 MCP Inspector 测试服务器,命令为:`npx @modelcontextprotocol/inspector uv run warnerco-mcp`,它将在 http://localhost:5173 打开。
context-engineering 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。