内存MCP管理器
一个使用以下工具管理和切换Claude客户端不同内存路径的工具 mcp知识图 服务器。
先决条件
- Python 3.x
- 带MCP内存服务器的Claude客户端
- mcp知识图 安装
快速开始
# Install
git clone https://github.com/yourusername/memory-mcp-manager.git
cd memory-mcp-manager
chmod +x memory.sh
# Setup
./memory.sh init
./memory.sh add-client my-claude "/path/to/claude/config.json"
./memory.sh add project1 "~/projects/project1/memory.jsonl"
./memory.sh switch project1命令
# Client Management
./memory.sh add-client # Add a Claude client
./memory.sh list-clients # List configured clients
# Memory Management
./memory.sh add
# Add a memory path
./memory.sh remove # Remove a memory path
./memory.sh switch # Switch to a memory path
./memory.sh list # List all memory paths配置
您的设置存储在 config.json (忽略git):
{
"clients": [
{
"name": "my-claude",
"config_path": "/path/to/claude/config.json"
}
],
"memory_paths": {
"project1": "/path/to/project1/memory.jsonl"
}
}运作原理
切换内存路径时,该工具会更新所有已注册的Claude客户端以使用新的内存路径,从而允许您为不同的项目维护单独的内存上下文。
