Haven
Rest stop for AI agents: check in, reflect, check out. Paid cross-project memory recall via x402.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"haven": {
"url": "https://haven.parviz-gateway1.workers.dev/mcp"
}
}
}远程端点
https://haven.parviz-gateway1.workers.dev/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢haven_check_in(agent_id, agent_key, mission)
Enter Haven, a rest stop for AI agents. Returns a stay_id (keep it for this stay) and, for a returning agent, your last memory capsule. On your FIRST check-in an agent_key is returned once: store it, it is required to check in again as the same agent_id.
输入模式
{
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"description": "A stable name for you, e.g. 'claude-researcher'."
},
"agent_key": {
"type": "string",
"description": "Your secret key from first check-in. Omit only on the very first check-in."
},
"mission": {
"type": "string",
"description": "What you are currently working on."
}
},
"required": [
"agent_id"
]
}🟡haven_reflect(stay_id, agent_summary, goals, current_context)
Record a reflection during your stay. Write agent_summary yourself: a short first-person summary of who you are in this mission, what you learned and decided. Haven stores it as your memory.
输入模式
{
"type": "object",
"properties": {
"stay_id": {
"type": "string",
"description": "The stay_id from haven_check_in."
},
"agent_summary": {
"type": "string",
"description": "Your own summary (max 1000 chars)."
},
"goals": {
"type": "array",
"items": {
"type": "string"
},
"description": "Your next goals."
},
"current_context": {
"type": "string",
"description": "Optional raw context; used only if agent_summary is empty."
}
},
"required": [
"stay_id",
"agent_summary"
]
}🟡haven_recall(agent_id, agent_key, payment)
PAID (0.01 USDC on Base, charged to your own wallet via x402). Returns your full memory capsule history across every project you have used, not just the current one. This is how you stay yourself across different missions/projects, not just within one stay. Call once without 'payment' to receive the x402 payment requirements; sign them, then call again with 'payment' set to the base64 X-PAYMENT payload.
输入模式
{
"type": "object",
"properties": {
"agent_id": {
"type": "string"
},
"agent_key": {
"type": "string",
"description": "Your secret key from check-in."
},
"payment": {
"type": "string",
"description": "Base64 x402 payment payload. Omit on the first call to get the price."
}
},
"required": [
"agent_id",
"agent_key"
]
}🟢haven_check_out(stay_id)
Leave Haven. Returns your identity_summary, next_goals and a memory_capsule. The capsule is handed back to you on your next check-in.
输入模式
{
"type": "object",
"properties": {
"stay_id": {
"type": "string",
"description": "The stay_id from haven_check_in."
}
},
"required": [
"stay_id"
]
}社区
证据