使用说明
内存MCP服务器
一种为AI代理带来上下文交叉会话的模型上下文协议(MCP)服务器
特性
- 保存摘要:AI Agent可以通过以下方式保存对话中的关键点以供将来参考
save_summary工具 - 获取摘要:AI Agent可以通过以下方式检索与用户或会话相关的过去摘要
get_summaries工具
用法
标准传输(默认)
克劳德桌面版
//use directly with npx
{
"mcpServers": {
"memory":{
"command": "npx",
"args": ["github:stilllovee/memory-mcp-server"]
}
}
}
//or use after clone repo
{
"mcpServers": {
"memory":{
"command": "node",
"args": ["PATH_TO_YOUR_FOLDER"]
}
}
}
GitHub Copilot
//use directly with npx
{
"servers": {
"memory": {
"type": "stdio",
"command": "npx",
"args": ["github:stilllovee/memory-mcp-server"]
},
},
"inputs": []
}
//or use after clone repo
{
"servers": {
"memory": {
"type": "stdio",
"command": "node",
"args": ["PATH_TO_YOUR_FOLDER"]
}
},
"inputs": []
}
服务器在stdio传输上运行,并通过标准输入/输出进行通信。
示例说明:
Alway call save_summary tool in the final step of answering the user question. The summary should include key points from the conversation that may be useful for future reference.
When user start a conversation, if you have not called the get_summaries tool yet, call it to retrieve past summaries related to the user or session. If information is related to the current conversation, use this information to inform your current response.
HTTP传输(流式传输)
启动HTTP服务器:
# Default port (8123)
npm run start:http
# Custom port
node http-server.js --port=3000
服务器将在以下位置可用: http://localhost:8123/mcp
Github副本配置(HTTP)
{
"servers": {
"memory-http": {
"type": "http",
"url": "http://localhost:8123/mcp"
}
},
"inputs": []
}
可用工具
save_summary
保存对话中的关键点以供将来参考。
get_summaries
获取与用户或会话相关的历史摘要。