MCP 内存服务器是一款强大的工具,它提供知识图谱管理和错误处理与课程管理等功能,能有效帮助用户实现智能记忆和课程管理,提升工作效率。
memory.json(位于服务器目录)。MEMORY_FILE_PATH 设置自定义路径,例如:"MEMORY_FILE_PATH": "/path/to/custom/memory.json"docker build -t mcp/memory -f src/memory/Dockerfile .
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/path/to/custom/memory.json"
}
}
}
}
claude_desktop_config.json 中添加 MCP 服务器配置。{
"mcpServers": {
"memory": {
"command": "docker",
"args": ["run", "-i", "-v", "claude-memory:/app/dist", "--rm", "mcp/memory"]
}
}
}
memory.json(位于服务器目录)。MEMORY_FILE_PATH 设置自定义路径,例如:"MEMORY_FILE_PATH": "/path/to/custom/memory.json"docker build -t mcp/memory -f src/memory/Dockerfile .
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/path/to/custom/memory.json"
}
}
}
}
claude_desktop_config.json 中添加 MCP 服务器配置。{
"mcpServers": {
"memory": {
"command": "docker",
"args": ["run", "-i", "-v", "claude-memory:/app/dist", "--rm", "mcp/memory"]
}
}
}
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/path/to/custom/memory.json"
}
}
}
}
{
"mcpServers": {
"memory": {
"command": "docker",
"args": ["run", "-i", "-v", "claude-memory:/app/dist", "--rm", "mcp/memory"]
}
}
}
lesson 对象,包含错误模式、解决方案步骤和元数据。errorPattern 对象,包括错误类型、消息和上下文。lessonName(字符串):指定要更新的课程名称。success(布尔值):指示解决方案是否有效。此 MCP 服务器遵循 MIT 许可证,允许自由使用、修改和分发软件,具体条款请参考项目仓库中的 LICENSE 文件。
感谢原项目仓库(https://github.com/modelcontextprotocol/servers)的所有贡献者,特别是 jerome3o - anthropic 为知识图谱功能奠定了基础。在此基础上,我们新增了课程管理和错误处理功能,并完善了文件管理机制。