MCP server giving AI coding agents offline, token-efficient persistent memory — recall decisions, patterns, and bugs across sessions with 68.5% fewer tokens than re-reading context. No LLM, no server; works with 15+ agents.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add toon-memory --env TOON_MEMORY_KEY='<TOON_MEMORY_KEY>' --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y toon-memory~/.codex/config.toml
[mcp_servers.toon-memory]
command = "npx"
args = ["-y", "toon-memory"]
env = { TOON_MEMORY_KEY = "<TOON_MEMORY_KEY>", GITHUB_TOKEN = "<GITHUB_TOKEN>" }
# codex mcp add toon-memory --env TOON_MEMORY_KEY='<TOON_MEMORY_KEY>' --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y toon-memory~/.cursor/mcp.json
{
"mcpServers": {
"toon-memory": {
"command": "npx",
"args": [
"-y",
"toon-memory"
],
"env": {
"TOON_MEMORY_KEY": "<TOON_MEMORY_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"toon-memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"toon-memory"
],
"env": {
"TOON_MEMORY_KEY": "<TOON_MEMORY_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"toon-memory": {
"command": "npx",
"args": [
"-y",
"toon-memory"
],
"env": {
"TOON_MEMORY_KEY": "<TOON_MEMORY_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"toon-memory": {
"command": "npx",
"args": [
"-y",
"toon-memory"
],
"env": {
"TOON_MEMORY_KEY": "<TOON_MEMORY_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"toon-memory": {
"command": "npx",
"args": [
"-y",
"toon-memory"
],
"env": {
"TOON_MEMORY_KEY": "<TOON_MEMORY_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}需要的环境变量
TOON_MEMORY_KEYGITHUB_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。