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.