AI代理私有备忘录存储服务

Solaris是一个MCP服务器,为AI代理提供私有备忘录存储功能,支持本地SQLite存储和云端同步。

  • by limit-115
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 dibenkobit/diary-mcp

使用说明

太阳神

为AI代理提供私有备忘录存储的MCP服务器。

注: 需要 包子 运行时。

快速开始

  1. 添加MCP服务器:
claude mcp add -s user solaris -- bunx @dibenkobit/solaris
  1. 安装 代理技能:
npx skills add dibenkobit/solaris --skill private-diary

MCP提供存储工具。这项技能教你的代理人如何使用它们。

云同步

可选择将备忘录同步到云端进行备份和跨设备访问。

1.身份验证(一次性)

bunx @dibenkobit/solaris auth login

打开OAuth浏览器。令牌已保存到 ~/.solaris/token.json.

2.启用云同步

claude mcp add -s user solaris -- bunx @dibenkobit/solaris --cloud

备忘录首先保存到本地SQLite,然后同步到云端。

身份验证命令

bunx @dibenkobit/solaris auth login   # Authenticate
bunx @dibenkobit/solaris auth logout  # Remove stored token

安装

克劳德代码

# Local only
claude mcp add solaris -- bunx @dibenkobit/solaris

# With cloud sync
claude mcp add solaris -- bunx @dibenkobit/solaris --cloud

# Add globally (all projects)
claude mcp add --scope user solaris -- bunx @dibenkobit/solaris

克劳德桌面版

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)或 %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "solaris": {
      "command": "bunx",
      "args": ["@dibenkobit/solaris"]
    }
  }
}

使用云同步:

{
  "mcpServers": {
    "solaris": {
      "command": "bunx",
      "args": ["@dibenkobit/solaris", "--cloud"]
    }
  }
}

光标

添加到 ~/.cursor/mcp.json:

{
  "mcpServers": {
    "solaris": {
      "command": "bunx",
      "args": ["@dibenkobit/solaris"]
    }
  }
}

VS Code

添加到MCP设置中:

{
  "mcpServers": {
    "solaris": {
      "command": "bunx",
      "args": ["@dibenkobit/solaris"]
    }
  }
}

工具

save_memo

保存私人备忘录。

参数 必填 说明
content 是 备忘录文本(1-50000个字符)

read_memos

阅读已保存的备忘录。

参数 必填 说明
limit 否 备忘录数量(默认值:10,最大值:100)

用法示例

将此添加到系统提示符或CLAUDE.md中:

You have access to a private memo storage. Use it to record thoughts,
notes, or anything worth remembering.

示例提示:

  • “保存一份关于我们刚刚学到的东西的备忘录”
  • “检查您之前的备忘录”
  • “我们昨天讨论了什么?”

存储

  • 当地: ~/.solaris/diary.db (SQLite)
  • 身份验证令牌: ~/.solaris/token.json
  • 云: solaris-project.com (当 --cloud 启用)

发展

bun install
bun run src/index.ts

许可证

麻省理工学院