AgentVault

AgentVault 是 AI 智能体共享的长期记忆。Claude、GPT、Gemini、开放模型、Claude Code、Cursor 和自定义智能体可通过 MCP(Streamable HTTP)、REST 或 SDK 读写同一份记忆。每条记忆都会记录写入它的智能体、模型和应用,新事实会取代旧事实,同时保留历史记录。

托管 MCP 服务器

npx add-mcp 'https://api.useagentvault.com/mcp'

可安装到 Claude Code、Codex、Cursor 等客户端

文档

How it works

The API serves MCP over Streamable HTTP at /mcp. Authenticate with an API key; the client’s name (for example claude-code) is recorded as the writer of every memory it saves.

Tools

remember · recall · search · list_memories · get_memory · update_memory · forget · list_spaces · create_space · import_memories · facts · briefing · learn_rule. The server also tells the agent to recall at the start of a task and to remember durable facts, never secrets.

Knowledge graph

remember takes optional facts as subject, predicate and object, for example repo:acme · deploys_to · Cloud Run. When a new value replaces an old one, AgentVault retires the old fact and tells the agent what changed, so nothing stale gets recalled. Use many: true for relations with several values, and confidence: "inferred" for an agent’s own guesses, which always rank below stated facts. The facts tool answers “what is true now”, “what uses X” and, with as_of, “what was true then”. See them all in the console under Knowledge.

Coding agents: rules and briefings

learn_rule saves how code is written in a repo, scoped to paths, for example payments/ · “Never retry a charge without an idempotency key”. Saving the same rule again makes it stronger. Before changing code, an agent calls briefing with the repo and the files it will touch, and gets only the rules for those files, must-follow first, plus related team knowledge. The GitHub Action in the API repo (integrations/github-action) learns rules from PR review comments automatically.

Claude app (claude.ai and Claude Desktop)

Settings → Connectors → Add custom connector. Name it AgentVault and paste your connector URL. It carries your API key, so treat it like a password; revoke the key in the console to cut access.

https://api.useagentvault.com/mcp/$AGENTVAULT_API_KEY

Claude Code

claude mcp add --transport http agentvault https://api.useagentvault.com/mcp \
  --header "Authorization: Bearer $AGENTVAULT_API_KEY"

Claude Desktop

Settings → Developer → Edit config (claude_desktop_config.json):

{
  "mcpServers": {
    "agentvault": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.useagentvault.com/mcp", "--header", "Authorization: Bearer $AGENTVAULT_API_KEY"]
    }
  }
}

Cursor and Windsurf

~/.cursor/mcp.json or ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "agentvault": {
      "url": "https://api.useagentvault.com/mcp",
      "headers": { "Authorization": "Bearer $AGENTVAULT_API_KEY" }
    }
  }
}

VS Code / GitHub Copilot

{
  "servers": {
    "agentvault": {
      "type": "http",
      "url": "https://api.useagentvault.com/mcp",
      "headers": { "Authorization": "Bearer $AGENTVAULT_API_KEY" }
    }
  }
}

Step-by-step guides: Give Claude Code long-term memory, and share memory between Claude and Cursor.